]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Player typehit sound if the player shoots another player in tower defense
authorMario <mario.mario@y7mail.com>
Thu, 18 Apr 2013 07:00:57 +0000 (17:00 +1000)
committerMario <mario.mario@y7mail.com>
Thu, 18 Apr 2013 07:00:57 +0000 (17:00 +1000)
qcsrc/server/mutators/gamemode_towerdefense.qc

index 1037aa25ea5050f979daf6529203a9593db11ecb..20365eaeeefa6d8022d44e13115881945f8b02df 100644 (file)
@@ -727,7 +727,10 @@ MUTATOR_HOOKFUNCTION(td_PlayerDamage)
                frag_damage = 0;
                
        if(!autocvar_g_td_pvp && frag_attacker != frag_target && IS_PLAYER(frag_target) && IS_PLAYER(frag_attacker))
+       {
+               frag_attacker.typehitsound += 1;
                frag_damage = 0;
+       }
                
        if(frag_attacker.turrcaps_flags & TFL_TURRCAPS_ISTURRET && IS_PLAYER(frag_target))
                frag_damage = 0;