From: Mario Date: Thu, 5 Sep 2024 10:36:48 +0000 (+1000) Subject: Give kill credit to the monster's owner if they're a player X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=7715f5eee89b1b104348199657059fdbf56a406f;p=xonotic%2Fxonotic-data.pk3dir.git Give kill credit to the monster's owner if they're a player --- diff --git a/qcsrc/server/player.qc b/qcsrc/server/player.qc index da2c48ded..060f68541 100644 --- a/qcsrc/server/player.qc +++ b/qcsrc/server/player.qc @@ -309,6 +309,11 @@ void PlayerDamage(entity this, entity inflictor, entity attacker, float damage, attacker = this.pusher; this.pushltime = max(this.pushltime, time + 0.6); } + else if(IS_MONSTER(attacker) && IS_PLAYER(attacker.realowner)) + { + attacker = attacker.realowner; + this.istypefrag = 0; + } else { this.pushltime = 0;