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
struct BotEvent contents explanation

 
Post new topic   Reply to topic Printable version
 View previous topic  Sighage with bot vars. Post :: Post Some questions about mervbot  View next topic  
Author Message
Helicon
Server Help Squatter


Joined: Dec 03 2002
Posts: 771
Location: GNU Doldrums
Offline

PostPosted: Sat Feb 01, 2003 8:22 pm    Post subject: struct BotEvent contents explanation Reply to topic Reply with quote

Please explain/ document the contents of BotEvent
Quote:

struct BotEvent
{
CALL_HANDLE handle;

int code;

void *p[8];

BotEvent(BotEvent &b);
BotEvent();
};

What exactly is
int code;
used for?

the array *p usually contains event-specific data, right?
What exactly is BotEvent()?

An example:
Quote:

case EVENT_FlagVictory:
{
int team = *(int*)&event.p[0];
int reward = *(int*)&event.p[1];
}

Correct me if i am wrong:
the int team now contains the freq number of the winning team
the int reward now equals the total points each player on team received

Another round:
Where exactly is the list of players stored (var array?) that is always accessable?
_________________
Signatures just seem so quaint.
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:30 am    Post subject: Re: struct BotEvent contents explanation Reply to topic Reply with quote

Helicon wrote:
What exactly is
int code;
used for?


The ID of the event

Helicon wrote:

the array *p usually contains event-specific data, right?


Yes

Helicon wrote:

What exactly is BotEvent()?


The constructor

Helicon wrote:

Correct me if i am wrong:
the int team now contains the freq number of the winning team
the int reward now equals the total points each player on team received


Yes

Helicon wrote:

Another round:
Where exactly is the list of players stored (var array?) that is always accessable?


Where? In memory sa_tongue.gif
It's called playerlist in the DLL
_________________
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
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: 660 page(s) served in previous 5 minutes.

phpBB Created this page in 0.538862 seconds : 27 queries executed (84.6%): GZIP compression disabled