Update Trigger.cpp

This commit is contained in:
RC 2021-11-29 10:05:36 +08:00 committed by LightCat
parent 61c984fdba
commit 69f0418896

View File

@ -158,6 +158,9 @@ bool ShouldShoot()
if (!g_pLocalPlayer->bZoomed && !(current_user_cmd->buttons & IN_ATTACK))
return false;
}
// Check if player is bonked
if (HasCondition<TFCond_Bonked>(g_pLocalPlayer->entity))
return false;
// Check if player is taunting
if (HasCondition<TFCond_Taunting>(g_pLocalPlayer->entity))
return false;