From adf9d13abd9c859b1cc59599bebf14d54eb96ffe Mon Sep 17 00:00:00 2001 From: Mentrillum <42941613+Mentrillum@users.noreply.github.com> Date: Tue, 30 Jun 2020 22:14:36 -0700 Subject: [PATCH] Missed something --- addons/sourcemod/scripting/sf2/stocks.sp | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/addons/sourcemod/scripting/sf2/stocks.sp b/addons/sourcemod/scripting/sf2/stocks.sp index 5e998ec4..a95fdbf6 100644 --- a/addons/sourcemod/scripting/sf2/stocks.sp +++ b/addons/sourcemod/scripting/sf2/stocks.sp @@ -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) || @@ -1412,4 +1424,4 @@ stock void SF_RemoveAllSpecialRound() { g_iArraySpecialRoundType[iArray] = 0; } -} \ No newline at end of file +}