Server Help

Bot Questions - struct BotEvent contents explanation

Helicon - Sat Feb 01, 2003 8:22 pm
Post subject: struct BotEvent contents explanation
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?
SOS - Sun Feb 02, 2003 4:30 am
Post subject: Re: struct BotEvent contents explanation
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
All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group