Author |
Message |
tikiman Newbie
Joined: Jan 25 2003 Posts: 14 Offline
|
Posted: 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. |
|
Back to top |
|
 |
SOS Server Help Squatter
Joined: Dec 02 2002 Posts: 329 Offline
|
Posted: 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 _________________ 3y3 4m l33t h4x0r
j0! 3y3 4m t4lking to j00!
fux0red 5cr1pt k1dd13.
-"l33t h41ku" |
|
Back to top |
|
 |
VampZ Guest
Offline
|
Posted: 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. |
|
Back to top |
|
 |
Doggeti Server Help Squatter

Age:40 Gender: Joined: Jan 12 2003 Posts: 297 Location: Germany Offline
|
Posted: Thu Jun 12, 2003 2:42 am Post subject: |
 |
|
|
|
Would EVENT_BallMove be an example of an event that provides a ball identifier? |
|
Back to top |
|
 |
ExplodyThingy Server Help Squatter
Age:38 Gender: Joined: Dec 15 2002 Posts: 528 Location: Washington DC Offline
|
Posted: 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. _________________ There are no stupid question, but there are many inquisitive idiots.
Loot
Dr Brain> I hate clean air and clean water. I'm a member of Evil Conservitive Industries |
|
Back to top |
|
 |
|