Closed nosoop closed 5 years ago
This is what the bot command calls internally, and returns an CSDKPlayer*. Avoids hacking around with invoking server commands.
bot
CSDKPlayer*
Implementations are mod-specific; TF2 uses the following prototype:
CTFPlayer * BotPutInServer(bool bTargetDummy,bool bFrozen,int desiredTeam,int desiredClass,char *name);
Other games might have similar functions, which may be worth looking into.
Turns out g_pBotManager is already a supported thing; probably just had to get the plugin built against the game-specific SDK for it to work.
g_pBotManager
This is what the
bot
command calls internally, and returns anCSDKPlayer*
. Avoids hacking around with invoking server commands.Implementations are mod-specific; TF2 uses the following prototype:
Other games might have similar functions, which may be worth looking into.