SERVER: Prevent non-enemies from activating Bouncy Betty

This commit is contained in:
Ian 2023-09-09 14:12:23 -04:00
parent cf1421b943
commit 925662c384

View file

@ -1449,7 +1449,8 @@ void() betty_do_rise =
void() betty_touch =
{
if (other.classname == "grenade")
// Only trigger if an enemy is making contact.
if (other.classname != "ai_zombie" && other.classname != "ai_dog")
return;
if (other == self.owner || other.solid == SOLID_TRIGGER)