diff --git a/source/server/damage.qc b/source/server/damage.qc index 8894710..c76d359 100644 --- a/source/server/damage.qc +++ b/source/server/damage.qc @@ -28,6 +28,7 @@ void (float achievement_id, optional entity who) GiveAchievement; void() Barrel_Hit; +void() teddy_react; void() EndGame_Restart = { @@ -634,6 +635,16 @@ void(entity inflictor, entity attacker, float damage2, float mindamage, float ra Barrel_Hit(); self = oldself; } + else if (ent.classname == "teddy_spawn") + { + entity oldself2; + oldself2 = self; + self = ent; + teddy_react(); + self = oldself2; + //ent.th_die(); + //bprint(PRINT_HIGH, "hello????\n"); + } else if (ent.takedamage && ent.classname != "ai_zombie_head" && ent.classname != "ai_zombie_larm" && ent.classname != "ai_zombie_rarm") { // verify we aren't doin anything with a bmodel