Skip to content

Commit 0fa98ea

Browse files
Fix error from taunt related to class switch
1 parent 22a18a3 commit 0fa98ea

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scripting/randomizer/dhook.sp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,9 @@ public MRESReturn DHook_TauntPost(int iClient, DHookParam hParams)
424424
if (!g_cvFixTaunt.BoolValue)
425425
return MRES_Ignored;
426426

427+
if (TF2_IsPlayerInCondition(iClient, TFCond_Disguising) || TF2_IsPlayerInCondition(iClient, TFCond_Disguised) || TF2_IsPlayerInCondition(iClient, TFCond_Cloaked))
428+
return MRES_Supercede;
429+
427430
int iWeapon = GetEntPropEnt(iClient, Prop_Send, "m_hActiveWeapon");
428431
if (iWeapon == INVALID_ENT_REFERENCE)
429432
return MRES_Ignored;

0 commit comments

Comments
 (0)