Which function issues bot commands for each bot?
Posted: Wed Mar 25, 2020 10:12 pm
BOTCMD_RunCommand() does not seem to be it. I have the following code:
Taken from here: https://bitbucket.org/sosleepy/zandronu ... #lines-553
I've also been posting notes in the tracker https://zandronum.com/tracker/view.php?id=3769
Code: Select all
void BOTCMD_RunCommand( BOTCMD_e Command, CSkullBot *pBot )
{
SDWORD sdwNumArgs;
// LONG lExpectedStackPosition;
if (Command >= (BOTCMD_e)BOTCMD_SAY && Command <= (BOTCMD_e)BOTCMD_GETCHATFREQUENCY && Command >= (BOTCMD_e)BOTCMD_SAYFROMLUMP && Command <= (BOTCMD_e)BOTCMD_CHATSECTIONEXISTSINCHATLUMP )
return;
if ( Command >= (BOTCMD_e)BOTCMD_JUMP && Command <= (BOTCMD_e)BOTCMD_STOPJUMPING )
return;
pBot->GetRawScriptData( )->Read( &sdwNumArgs, sizeof( SDWORD ));
pBot->IncrementScriptPosition( sizeof( SDWORD ));
[...]
I've also been posting notes in the tracker https://zandronum.com/tracker/view.php?id=3769