set g_nades_heal_foe -2 "Multiplier of health given to enemies"
// Pokenade (7)
-set g_nades_pokenade_monster_lifetime 20 "How long pokenade monster will survive"
+set g_nades_pokenade_monster_lifetime 150 "How long pokenade monster will survive"
set g_nades_pokenade_monster_type "zombie" "Monster to spawn"
float autocvar_g_nades_heal_friend;
float autocvar_g_nades_heal_foe;
string autocvar_g_nades_pokenade_monster_type;
-//float autocvar_g_nades_pokenade_monster_lifetime;
+float autocvar_g_nades_pokenade_monster_lifetime;
float autocvar_g_campcheck_damage;
float autocvar_g_campcheck_distance;
float autocvar_g_campcheck_interval;
vector locout = self.origin + '0 0 1' * (1 - self.realowner.mins_z - 24);
tracebox(locout, self.realowner.mins, self.realowner.maxs, locout, MOVE_NOMONSTERS, self.realowner);
- locout = trace_endpos
+ locout = trace_endpos;
makevectors(self.realowner.angles);
{
entity e = spawnmonster(self.pokenade_type, 0, self.realowner, self.realowner, self.origin, FALSE, FALSE, 1);
- //e.monster_lifetime = time + autocvar_g_nades_pokenade_monster_lifetime;
+ if(autocvar_g_nades_pokenade_monster_lifetime > 0)
+ e.monster_lifetime = time + autocvar_g_nades_pokenade_monster_lifetime;
e.monster_skill = MONSTER_SKILL_INSANE;
}