Server Help

Bot Questions - difference between has_ball[ball->ident], ball->carrie

tikiman - Sat Feb 01, 2003 5:16 pm
Post subject: difference between has_ball[ball->ident], ball->carrie
Theres a bunch of things which all look like they might have the same meaning but obviously don't since they are used in different contexts.

What's the difference between has_ball[ball->ident], ball->carrier, and last_carrier[ball->ident]? I guess I can understand last_carrier but sometimes the other two are used in places where I would think last_carrier would be used. I think the differences are subtle but I have no idea what they are. Thanks in advance for the help.
SOS - Sun Feb 02, 2003 4:26 am
Post subject:
has_ball = basically same as ball->carrier
last_carrier = the last player that carried the ball before the current one, I think
Anonymous - Fri Feb 07, 2003 12:22 am
Post subject:
ball->ident is the ball identifier(if you are using multiple balls it tells you which ball the event occured to)
ball->carrier is the ident of the player carring the ball. This could be used to find the player object associated with ballcarrier.

last_carrier is useful because when a player shoots the ball the event correctly says that there is no carrier of the ball. using last_carrier->ident one could find who shot the ball.
Doggeti - Thu Jun 12, 2003 2:42 am
Post subject:
Would EVENT_BallMove be an example of an event that provides a ball identifier?
ExplodyThingy - Thu Jun 12, 2003 3:10 am
Post subject:
Yes.



How does one scroll thorugh the ball list? I assume its just like the flag and playerlist, but i cant find the equivalent of playerlist->head.
All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group