SERVER: Allow spawn_teddy to be damaged via explosives

This commit is contained in:
cypress 2023-07-17 12:57:03 -04:00
parent 941891499c
commit 27066a33c7

View file

@ -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