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
Powerball

 
Post new topic   Reply to topic Printable version
 View previous topic  Messaging Problems Post :: Post Retard Quetion  View next topic  
Author Message
CypherJF
I gargle nitroglycerin


Gender:Gender:Male
Joined: Aug 14 2003
Posts: 2582
Location: USA
Offline

PostPosted: Sat Feb 28, 2004 11:28 pm    Post subject: Powerball Reply to topic Reply with quote

MervBot: what would be the best way to determine if a player is carrying the ball for like # seconds?
_________________
Performance is often the art of cheating carefully. - James Gosling
Back to top
View users profile Send private message Add User to Ignore List
SuSE
Me measures good


Joined: Dec 02 2002
Posts: 2307
Offline

PostPosted: Sun Feb 29, 2004 12:16 am    Post subject: Reply to topic Reply with quote

um, start a timer for x seconds when they pickup the ball? sa_tongue.gif
Back to top
View users profile Send private message Add User to Ignore List Send email Visit posters website
CypherJF
I gargle nitroglycerin


Gender:Gender:Male
Joined: Aug 14 2003
Posts: 2582
Location: USA
Offline

PostPosted: Sun Feb 29, 2004 1:40 am    Post subject: Reply to topic Reply with quote

What if they throw it :/ and what if theres 2 more balls or w/e :/ LOl akai... im not _that_ dumb icon_smile.gif
Back to top
View users profile Send private message Add User to Ignore List
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: Sun Feb 29, 2004 10:52 am    Post subject: Reply to topic Reply with quote

Well I'm not sure about this (I've never used the soccer functions of MERV), but the PBall struct has a 'carrier' member. Possibly have the bot check every EVENT_BallMove and see if there is a carrier.
_________________
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
50% Packetloss
Server Help Squatter


Age:40
Gender:Gender:Male
Joined: Sep 09 2003
Posts: 561
Location: Santa Clarita, California
Offline

PostPosted: Mon Mar 01, 2004 1:47 am    Post subject: Reply to topic Reply with quote

Code: Show/Hide

struct PBall
{
   Uint16 x, y;
   Sint16 xvel, yvel;
   Uint16 team;
   Uint16 ident;
   Uint16 carrier;
   Uint32 time;         // Local timestamp on event (not constant)
   Uint32 hosttime;      // Remote timestamp on event (constant until new event)
   Uint32 lastrecv;      // Last update recv time (for timeout)
};


test out some of those time variables, i have no idea what catid's comments mean so its trial and error. If worse comes to worse, you can keep track of EVENT_BallMove , the ball->carrier will be ==0xFFFF if the ball is uncarried. Else it will be the p->ident of the player
Back to top
View users profile Send private message Add User to Ignore List Send email AIM Address
Smong
Server Help Squatter


Joined: 1043048991
Posts: 0x91E
Offline

PostPosted: Mon Mar 01, 2004 11:30 am    Post subject: Reply to topic Reply with quote

Also I think if the ball is being carried, time will be 0.
Back to top
View users profile Send private message Add User to Ignore List Visit posters website MSN Messenger
Mr Ekted
Movie Geek


Gender:Gender:Male
Joined: Feb 09 2004
Posts: 1379
Offline

PostPosted: Mon Mar 01, 2004 6:01 pm    Post subject: Reply to topic Reply with quote

Code: Show/Hide
PID   TIME      MEANING
FFFF  00000000  ball removed from play
FFFF  xxxxxxxx  ball set/spawned
xxxx  00000000  ball carried by pid
xxxx  xxxxxxxx  ball passed by pid

_________________
4,691 irradiated haggis!
Back to top
View users profile Send private message Add User to Ignore List
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: 121 page(s) served in previous 5 minutes.

phpBB Created this page in 0.503948 seconds : 31 queries executed (93.3%): GZIP compression disabled