> Ok, another quick question for the masses.. > > Looking for a quick way to (1) respawn monsters at round-restart (2) > when a monster dies, the corpse > does not hang around nor does it gib. > > I was thinking of a ReSpawn() in CBaseMonster, then muck with the > Killed() function ?? > > -Ron
Do you want them to slowly fade like they do in single player, then respawn when the next round begins? For the fading, CBaseMonster::FadeMonster() in combat.cpp sets that up (SUB_StartFadeout in the same file sets up the Think function). When the fade is done, don't set the Think function to SUB_Remove (else the monster entity will be removed). The monster will be invisible and dormant, then when you want to restart the round you can loop through the monsters using UTIL_FindEntityByClassname() and call the respawn() function to bring them back to life. Jeffrey "botman" Broome _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders

