Added TF2_IsPlayerInDuel native to TF2 extension (bug 4695, r=psychonic).

This commit is contained in:
A.W. Stanley
2010-11-07 19:05:32 -05:00
parent 172abb2710
commit 7627bf80b9
3 changed files with 59 additions and 6 deletions
+9
View File
@@ -272,6 +272,14 @@ forward Action:TF2_CalcIsAttackCritical(client, weapon, String:weaponname[], &bo
*/
forward Action:TF2_OnGetHoliday(&TFHoliday:holiday);
/**
* Returns whether or not a client (Player) is in a duel.
*
* @param client Client Index.
* @return Boolean of whether or not the client/player is dueling.
*/
native bool:TF2_IsPlayerInDuel(client);
/**
* Do not edit below this line!
*/
@@ -302,5 +310,6 @@ public __ext_tf2_SetNTVOptional()
MarkNativeAsOptional("TF2_MakeBleed");
MarkNativeAsOptional("TF2_GetResourceEntity");
MarkNativeAsOptional("TF2_GetClass");
MarkNativeAsOptional("TF2_IsPlayerInDuel");
}
#endif