View Single Post
Re: Resurrected bots
Old
  (#5)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 46°43'60N 0°43'0W 0.187A
Default 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."
  
Reply With Quote