Server Help Forum Index Server Help
Community forums for Subgame, ASSS, and bots
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   StatisticsStatistics   RegisterRegister 
 ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin (SSL) 

Server Help | ASSS Wiki (0) | Shanky.com
I need a ball plugin...

 
Post new topic   Reply to topic Printable version
 View previous topic  grr, bot crap Post :: Post Ballmover  View next topic  
Author Message
Black Dracula
Guest


Offline

PostPosted: Thu Mar 17, 2005 11:41 am    Post subject: I need a ball plugin... Reply to topic Reply with quote

I need a ball plugin that will make the ball spawn in one particular area that i choose. please help me icon_smile.gif
Back to top
Cerium
Server Help Squatter


Age:42
Gender:Gender:Male
Joined: Mar 05 2005
Posts: 807
Location: I will stab you.
Offline

PostPosted: Thu Mar 17, 2005 4:47 pm    Post subject: Reply to topic Reply with quote

Cant you do that with arena settings? I remember reading about some pseudo-undocumented arena settings that let you specify where the ball spawns or something.

In any event, have you attempted to make the bot yourself first? Its really not that hard, just need to have the bot jump in a ship, pickup the ball move to where you want it to spawn and spec. Hell you could have a spawn radius with 1 or 2 extra lines of code and a 5th grade understanding of geometry.

Also, your name would be much cooler if it were simply 'blacula'.
Back to top
View users profile Send private message Add User to Ignore List AIM Address
Cyan~Fire
I'll count you!
I'll count you!


Age:37
Gender:Gender:Male
Joined: Jul 14 2003
Posts: 4608
Location: A Dream
Offline

PostPosted: Thu Mar 17, 2005 5:19 pm    Post subject: Reply to topic Reply with quote

You can only specify the ball's spawn separately on asss.
_________________
This help is informational only. No representation is made or warranty given as to its content. User assumes all risk of use. Cyan~Fire assumes no responsibility for any loss or delay resulting from such use.
Wise men STILL seek Him.
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
Purge
Episode I > Eposide III
Jar-Jar is kool


Age:35
Gender:Gender:Male
Joined: Sep 08 2004
Posts: 2019
Offline

PostPosted: Thu Mar 17, 2005 6:08 pm    Post subject: Reply to topic Reply with quote

I was trying to work with Black on doing this, but another way of doing this is far complicated and isn't effective as ASSS is.

I was using the ballmover plugin for MERV and eliminating squares from the map for where the ball will not go. Then the bot can just simply pick up the ball and place it at the desired coord. A little bit of work, but that seems like the only alternative. icon_wink.gif
Back to top
View users profile Send private message Add User to Ignore List
Maverick
broken record


Age:40
Gender:Gender:Male
Joined: Feb 26 2005
Posts: 1521
Location: The Netherlands
Offline

PostPosted: Fri Mar 18, 2005 10:30 am    Post subject: Reply to topic Reply with quote

Its not hard to make the ball spawn at a different location using a bot.
All the bot coder needs to do is to have a plugin detect if a goal has been scored (check for the arena message), then wait until the ball appears then have the bot move the ball to the desired location.
However, you need a bot in order for all this to work.

Oh cerium already said this. Oh well... icon_surprised.gif
_________________
Nickname: Maverick (I changed my name!)
TWCore developer | Subspace statistics
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
Underlord
Novice


Gender:Gender:Male
Joined: Feb 17 2004
Posts: 55
Offline

PostPosted: Fri Mar 18, 2005 3:58 pm    Post subject: Reply to topic Reply with quote

Code: Show/Hide

void botInfo::MoveBall(int ident, int x, int y)
{
   tell(makeFollowing(false));//makes the bot stop following people
   tell(makeFlying(true));//makes the bot stop sending it's own position 
   tell(makeSendPosition(false));

   tell(makeShip(SHIP_Warbird));//sc to ship 1
   tell(makeGrabBall(ident));//ball's ident

   me->move(x*16,y*16);//tells the bot the coords you want
   tell(makeSendPosition(true));//makes the bot actually go there
      
   tell(makeShip(SHIP_Spectator));//ball is dropped
}


Code: Show/Hide

// #include "time.h"
// to get an area for ball to be placed in. this range would be in 450-550 x 500-600

   srand(time(NULL));
   rand();

        int coordx = (int) (100 * ((float)rand()/RAND_MAX)) + 450;
        int coordy = (int) (100 * ((float)rand()/RAND_MAX)) + 500;
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> Bot Questions All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum
View online users | View Statistics | View Ignored List


Software by php BB © php BB Group
Server Load: 342 page(s) served in previous 5 minutes.

phpBB Created this page in 0.508671 seconds : 30 queries executed (94.9%): GZIP compression disabled