From: LegendaryGuard Date: Thu, 7 Jul 2022 21:20:08 +0000 (+0200) Subject: Now tesla turret is owner's nade friend :) No longer attacks him in non-team gamemodes X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=6cbb59170bed59d5466bac927e5995b02a0d41b1;p=xonotic%2Fxonotic-data.pk3dir.git Now tesla turret is owner's nade friend :) No longer attacks him in non-team gamemodes --- diff --git a/qcsrc/common/turrets/turret/tesla.qc b/qcsrc/common/turrets/turret/tesla.qc index 4c27bc9acc..f90672b65d 100644 --- a/qcsrc/common/turrets/turret/tesla.qc +++ b/qcsrc/common/turrets/turret/tesla.qc @@ -62,6 +62,7 @@ bool turret_tesla_firecheck(entity this) if (turret_validate_target(this, this.enemy, this.target_validate_flags) <= 0) { this.enemy = NULL; + if(turret_select_target(this) == this.realowner) return false; this.target_validate_time = time + 0.5; do_target_scan = 1; }