From: Jakob MG Date: Tue, 28 Jun 2011 21:15:59 +0000 (+0200) Subject: hitsound for turrets X-Git-Tag: xonotic-v0.5.0~159^2~15^2~2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=7a5ca11805da59e24e72e503f051086963668a7e;p=xonotic%2Fxonotic-data.pk3dir.git hitsound for turrets --- diff --git a/qcsrc/server/g_damage.qc b/qcsrc/server/g_damage.qc index 0fdeb1354..98bf87f5a 100644 --- a/qcsrc/server/g_damage.qc +++ b/qcsrc/server/g_damage.qc @@ -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)) {