Update TF2_IgnitePlayer to support setting duration of fire (#1038)

Related to #713
This commit is contained in:
42
2019-07-05 22:37:25 +01:00
committed by Asher Baker
parent e47c1a840a
commit 199802150b
2 changed files with 14 additions and 4 deletions
+5 -2
View File
@@ -245,13 +245,16 @@ enum TFObjectMode
};
/**
* Sets a client on fire for 10 seconds.
* Sets a client on fire.
*
* @note Fire duration is capped to 10 seconds.
*
* @param client Player's index.
* @param attacker Attacker's index.
* @param duration Duration of fire (in seconds).
* @error Invalid client index, client not in game, or no mod support.
*/
native void TF2_IgnitePlayer(int client, int attacker);
native void TF2_IgnitePlayer(int client, int attacker, float duration=10.0);
/**
* Respawns a client