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
difference between has_ball[ball->ident], ball->carrie

 
Post new topic   Reply to topic Printable version
 View previous topic  MERVBot CTF plugin Post :: Post merv and pb?  View next topic  
Author Message
tikiman
Newbie


Joined: Jan 25 2003
Posts: 14
Offline

PostPosted: Sat Feb 01, 2003 5:16 pm    Post subject: difference between has_ball[ball->ident], ball->carrie Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List
SOS
Server Help Squatter


Joined: Dec 02 2002
Posts: 329
Offline

PostPosted: Sun Feb 02, 2003 4:26 am    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List Send email
VampZ
Guest


Offline

PostPosted: Fri Feb 07, 2003 12:22 am    Post subject: Reply to topic Reply with quote

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:Gender:Male
Joined: Jan 12 2003
Posts: 297
Location: Germany
Offline

PostPosted: Thu Jun 12, 2003 2:42 am    Post subject: Reply to topic Reply with quote

Would EVENT_BallMove be an example of an event that provides a ball identifier?
Back to top
View users profile Send private message Add User to Ignore List Send email AIM Address
ExplodyThingy
Server Help Squatter


Age:38
Gender:Gender:Male
Joined: Dec 15 2002
Posts: 528
Location: Washington DC
Offline

PostPosted: Thu Jun 12, 2003 3:10 am    Post subject: Reply to topic Reply with quote

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
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: 67 page(s) served in previous 5 minutes.

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