From 2738fc852d3dfdb4ab0334fbda1843f716b567de Mon Sep 17 00:00:00 2001 From: Nathan TIEN YOU Date: Thu, 3 Feb 2022 22:09:39 +0100 Subject: [PATCH] fix holo spam when in phase --- mod/scripts/vscripts/weapons/mp_ability_holopilot.nut | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mod/scripts/vscripts/weapons/mp_ability_holopilot.nut b/mod/scripts/vscripts/weapons/mp_ability_holopilot.nut index eefb09c..174ccb9 100644 --- a/mod/scripts/vscripts/weapons/mp_ability_holopilot.nut +++ b/mod/scripts/vscripts/weapons/mp_ability_holopilot.nut @@ -382,7 +382,8 @@ bool function PlayerCanUseDecoy( entity ownerPlayer ) //For holopilot and HoloPi if(ownerPlayer.GetOffhandWeapon(1).GetWeaponClassName() == "mp_ability_holopilot" && ownerPlayer.GetOffhandWeapon(1).GetWeaponPrimaryClipCount()<200 && !(ownerPlayer in playerDecoyList)) return false //Do we need to check isPhaseShifted here? Re-examine when it's possible to get both Phase and Decoy (maybe through burn cards?) - + if(player.IsPhaseShifted()) + return false return true }