]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
hitsound for turrets
authorJakob MG <jakob_mg@hotmail.com>
Tue, 28 Jun 2011 21:15:59 +0000 (23:15 +0200)
committerJakob MG <jakob_mg@hotmail.com>
Tue, 28 Jun 2011 21:15:59 +0000 (23:15 +0200)
qcsrc/server/g_damage.qc

index 0fdeb1354607b160844d0a19bf49f92ec7848eca..98bf87f5aca0b6e803bed9262289a44b2d99c8a2 100644 (file)
@@ -788,7 +788,7 @@ void Damage (entity targ, entity inflictor, entity attacker, float damage, float
                        else
                                victim = targ;
 
-                       if(victim.classname == "player")
+                       if(victim.classname == "player" || victim.turrcaps_flags & TFL_TURRCAPS_ISTURRET)
                        {
                                if(IsDifferentTeam(victim, attacker))
                                {