]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Now tesla turret is owner's nade friend :) No longer attacks him in non-team gamemodes
authorLegendaryGuard <rootuser999@gmail.com>
Thu, 7 Jul 2022 21:20:08 +0000 (23:20 +0200)
committerLegendaryGuard <rootuser999@gmail.com>
Thu, 7 Jul 2022 21:20:08 +0000 (23:20 +0200)
qcsrc/common/turrets/turret/tesla.qc

index 4c27bc9acce8cd112e0426e0062a0cceee1e115e..f90672b65df3ec6998b6289347e18c9ba868d983 100644 (file)
@@ -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;
     }