mirror of
https://github.com/nzp-team/quakec.git
synced 2024-11-22 11:51:11 +00:00
SERVER: Allow spawn_teddy to be damaged via explosives
This commit is contained in:
parent
941891499c
commit
27066a33c7
1 changed files with 11 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue