Skip to content

Commit

Permalink
Fix error from taunt related to class switch
Browse files Browse the repository at this point in the history
  • Loading branch information
FortyTwoFortyTwo committed Jun 9, 2024
1 parent 22a18a3 commit 0fa98ea
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripting/randomizer/dhook.sp
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,9 @@ public MRESReturn DHook_TauntPost(int iClient, DHookParam hParams)
if (!g_cvFixTaunt.BoolValue)
return MRES_Ignored;

if (TF2_IsPlayerInCondition(iClient, TFCond_Disguising) || TF2_IsPlayerInCondition(iClient, TFCond_Disguised) || TF2_IsPlayerInCondition(iClient, TFCond_Cloaked))
return MRES_Supercede;

int iWeapon = GetEntPropEnt(iClient, Prop_Send, "m_hActiveWeapon");
if (iWeapon == INVALID_ENT_REFERENCE)
return MRES_Ignored;
Expand Down

0 comments on commit 0fa98ea

Please sign in to comment.