Re: Resurrected bots -
12-05-2004
Which MOD is this for ?
If this is HLDM, all a bot needs to do to respawn is to press the FIRE key. Pressing this key to respawn will also make the bot trigger a call in CBasePlayer::Spawn in the game DLL. Hence if you want the bots to reset their structure AFTER pressing the fire key and not BEFORE it, call BotSpawnInit() one frame after the bot has set his pEdict->v.button to IN_ATTACK.
The code that makes the bot press IN_ATTACK when dead is in BotThink(), if I remember well.
RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."
|