View Single Post
Resurrected bots
Old
  (#1)
ukfreethinker
Member
 
Status: Offline
Posts: 6
Join Date: May 2004
Default Resurrected bots - 12-05-2004

I want my bots to have a lower health when they enter the world. If I put

pBot->pEdict->v.health = 8;

into the BotSpawnInit() function they are very easy to kill in their first incarnation. But when they respawn they have full health. I tried putting the same line into BotThink() where the bot clicks "Fire" to respawn but somewhere this is getting overridden. Can anyone suggest where this initialisation code should go?

Thanks very much

Paul
  
Reply With Quote