Well here is what I want to do. Make the grenade classname take some damage.
This is what I've already tried but it only works when I damage them by hegrenade, not when I shoot them ...
PHP Code:
set_pev(ent, pev_dmg, 2.0)
set_pev(ent, pev_takedamage, 2.0)
set_pev(ent, pev_health, 100.0)
I've also tried to set the max_health but it also didn't work...
If it isn't possible, it is a good idea to try to create func_brakeable entities asociated with the grenades and when they are dead to make them explode? Is it a good idea to try this when I have for example 1000 grenade entities on the map?
__________________