From d7f47c01a44afbaa4e5289671c2b2fd334df0545 Mon Sep 17 00:00:00 2001 From: drjaska Date: Fri, 20 May 2022 00:01:54 +0300 Subject: [PATCH] fix #2690 by making sure mines aren't proximity exploded by independent players --- qcsrc/common/weapons/weapon/minelayer.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcsrc/common/weapons/weapon/minelayer.qc b/qcsrc/common/weapons/weapon/minelayer.qc index f25859e05..8a8d4839c 100644 --- a/qcsrc/common/weapons/weapon/minelayer.qc +++ b/qcsrc/common/weapons/weapon/minelayer.qc @@ -192,7 +192,7 @@ void W_MineLayer_Think(entity this) head = findradius(this.origin, WEP_CVAR(minelayer, proximityradius)); while(head) { - if(IS_PLAYER(head) && !IS_DEAD(head) && !STAT(FROZEN, head)) + if(IS_PLAYER(head) && !IS_DEAD(head) && !STAT(FROZEN, head) && !IS_INDEPENDENT_PLAYER(head)) if(head != this.realowner && DIFF_TEAM(head, this.realowner)) // don't trigger for team mates if(!this.mine_time) { -- 2.39.2