From db699ed2c30e914c62a63fa4f402a6207c634e39 Mon Sep 17 00:00:00 2001 From: Nicholas Hastings Date: Wed, 19 Dec 2012 07:55:03 -0500 Subject: [PATCH] Updated TF2_IsPlayerInCondition stock for m_nPlayerCondEx2... --- plugins/include/tf2_stocks.inc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/plugins/include/tf2_stocks.inc b/plugins/include/tf2_stocks.inc index b58060cf..3d2e4ee4 100644 --- a/plugins/include/tf2_stocks.inc +++ b/plugins/include/tf2_stocks.inc @@ -472,7 +472,7 @@ stock bool:TF2_IsPlayerInCondition(client, TFCond:cond) return true; } } - else + else if (_:cond < 64) { new bit = (1 << (_:cond - 32)); if ((GetEntProp(client, Prop_Send, "m_nPlayerCondEx") & bit) == bit) @@ -480,6 +480,14 @@ stock bool:TF2_IsPlayerInCondition(client, TFCond:cond) return true; } } + else + { + new bit = (1 << (_:cond - 64)); + if ((GetEntProp(client, Prop_Send, "m_nPlayerCondEx2") & bit) == bit) + { + return true; + } + } return false; }