Added forwards to TF2 ext for cond addition and removal (bug 4851, r=fyren).

This commit is contained in:
Nicholas Hastings
2011-04-09 00:33:55 -04:00
parent 7e06cfb471
commit 33aebeb727
9 changed files with 323 additions and 5 deletions
+23
View File
@@ -283,6 +283,29 @@ forward Action:TF2_OnGetHoliday(&TFHoliday:holiday);
*/
native bool:TF2_IsPlayerInDuel(client);
/**
* Called after a condition is added to a player
*
* @note Actual duration can differ based on various events ingame.
*
* @param client Index of the client to which the conditon is being added.
* @param condition Condition that is being added.
* @param duration Initial duration of the condition or -1 for infinite.
* @noreturn
*/
forward TF2_OnConditionAdded(client, TFCond:condition, Float:duration);
/**
* Called after a condition is removed from a player
*
* @note This will never be called for the removal of TFCond_Taunting.
*
* @param client Index of the client to which the condition is being removed.
* @param condition Condition that is being removed.
* @noreturn
*/
forward TF2_OnConditionRemoved(client, TFCond:condition);
/**
* Called when the server enters the Waiting for Players round state
*