Updated TF2_IsPlayerInCondition stock for m_nPlayerCondEx2...
authorNicholas Hastings <skamonkey@gmail.com>
Wed Dec 19 07:55:03 2012 -0500 (2012-12-19)
changeset 3715afeec2202d35
parent 3714 c120cf61c817
child 3716 cd067c7dec80
Updated TF2_IsPlayerInCondition stock for m_nPlayerCondEx2...
plugins/include/tf2_stocks.inc
     1.1 --- a/plugins/include/tf2_stocks.inc	Wed Dec 19 07:55:03 2012 -0500
     1.2 +++ b/plugins/include/tf2_stocks.inc	Wed Dec 19 07:55:03 2012 -0500
     1.3 @@ -472,7 +472,7 @@
     1.4  			return true;
     1.5  		}
     1.6  	}
     1.7 -	else
     1.8 +	else if (_:cond < 64)
     1.9  	{
    1.10  		new bit = (1 << (_:cond - 32));
    1.11  		if ((GetEntProp(client, Prop_Send, "m_nPlayerCondEx") & bit) == bit)
    1.12 @@ -480,6 +480,14 @@
    1.13  			return true;
    1.14  		}
    1.15  	}
    1.16 +	else
    1.17 +	{
    1.18 +		new bit = (1 << (_:cond - 64));
    1.19 +		if ((GetEntProp(client, Prop_Send, "m_nPlayerCondEx2") & bit) == bit)
    1.20 +		{
    1.21 +			return true;
    1.22 +		}
    1.23 +	}
    1.24  	
    1.25  	return false;
    1.26  }