SERVER: Fix teddy_spawn not having support for noise

This commit is contained in:
Steam Deck User 2023-01-24 20:58:33 -05:00
parent 1d48d374d9
commit 5df73e8431
2 changed files with 7 additions and 1 deletions

View file

@ -662,6 +662,9 @@ void() teddy_spawn =
self.takedamage = DAMAGE_YES;
self.health = 0;
self.th_die = teddy_react;
if (self.noise)
precache_sound (self.noise);
};
/* ==================

View file

@ -304,7 +304,10 @@ void() teddy_react =
remove(t);
}
remove(self); //this was present in the patch, i like it.
if (self.noise)
sound (self, CHAN_ITEM, self.noise, 1, ATTN_NORM);
remove(self);
}
/*