Skip to content

Commit

Permalink
Missed something
Browse files Browse the repository at this point in the history
  • Loading branch information
Mentrillum authored Jul 1, 2020
1 parent f6ce5a2 commit adf9d13
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion addons/sourcemod/scripting/sf2/stocks.sp
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,18 @@ int SDK_SwitchWeapon(int client, int weapon)
return -1;
}

stock bool IsClientInKart(int client)
{
if (TF2_IsPlayerInCondition(client, TFCond_HalloweenKart) ||
TF2_IsPlayerInCondition(client, TFCond_HalloweenKartDash) ||
TF2_IsPlayerInCondition(client, TFCond_HalloweenKartNoTurn) ||
TF2_IsPlayerInCondition(client, TFCond_HalloweenKartCage))
{
return true;
}
return false;
}

stock bool IsClientCritUbercharged(int client)
{
if (TF2_IsPlayerInCondition(client, TFCond_Ubercharged) ||
Expand Down Expand Up @@ -1412,4 +1424,4 @@ stock void SF_RemoveAllSpecialRound()
{
g_iArraySpecialRoundType[iArray] = 0;
}
}
}

0 comments on commit adf9d13

Please sign in to comment.