Merge pull request #205 from alliedmodders/tf2condex3

Add support for TF2 player conditions above >= 96 (r=asherkin).
This commit is contained in:
Nicholas Hastings
2014-11-19 17:15:56 -05:00
2 changed files with 70 additions and 69 deletions
+9 -1
View File
@@ -524,7 +524,7 @@ stock bool:TF2_IsPlayerInCondition(client, TFCond:cond)
return true;
}
}
else
else if (_:cond < 96)
{
new bit = (1 << (_:cond - 64));
if ((GetEntProp(client, Prop_Send, "m_nPlayerCondEx2") & bit) == bit)
@@ -532,6 +532,14 @@ stock bool:TF2_IsPlayerInCondition(client, TFCond:cond)
return true;
}
}
else
{
new bit = (1 << (_:cond - 96));
if ((GetEntProp(client, Prop_Send, "m_nPlayerCondEx3") & bit) == bit)
{
return true;
}
}
return false;
}