SERVER: Fix player explosives hurting non-owners

This commit is contained in:
cypress 2023-11-11 07:59:13 -05:00
parent 8cc1f70e7a
commit 30de102ee3
2 changed files with 3 additions and 1 deletions

View file

@ -581,7 +581,7 @@ void(entity inflictor, entity attacker, float damage2, float mindamage, float ra
while (ent != world)
{
if(ent.classname == "player" && ent == attacker) // we don't want OUR explosives to harm other players..
if(ent.classname == "player" && inflictor.owner == ent) // we don't want OUR explosives to harm other players..
{
if (ent.perks & P_FLOP) // PhD Flopper makes us immune to any explosive damage
final_damage = 0;

View file

@ -79,6 +79,8 @@ void() Rocket_Impact =
#endif // FTE
CallExplosion(self.origin);
CallExplosion(self.origin);
CallExplosion(self.origin);
// Clean up!
SUB_Remove ();