Author |
Message |
Helicon Server Help Squatter
Joined: Dec 03 2002 Posts: 771 Location: GNU Doldrums Offline
|
Posted: 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? _________________ Signatures just seem so quaint. |
|
Back to top |
|
|
SOS Server Help Squatter
Joined: Dec 02 2002 Posts: 329 Offline
|
Posted: 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
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 |
|
|
|