mirror of
https://github.com/nzp-team/quakec.git
synced 2024-11-10 14:42:05 +00:00
SERVER: Fix player explosives hurting non-owners
This commit is contained in:
parent
8cc1f70e7a
commit
30de102ee3
2 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
|
|
@ -79,6 +79,8 @@ void() Rocket_Impact =
|
|||
#endif // FTE
|
||||
|
||||
CallExplosion(self.origin);
|
||||
CallExplosion(self.origin);
|
||||
CallExplosion(self.origin);
|
||||
|
||||
// Clean up!
|
||||
SUB_Remove ();
|
||||
|
|
Loading…
Reference in a new issue