Added TF2_MakeBleed native to TF2 ext (bug 4542, r=fyren,psychonic).

This commit is contained in:
pheadxdll
2010-07-26 11:06:08 -04:00
parent 9c2e0ebd4c
commit 488de0014e
3 changed files with 70 additions and 0 deletions
+11
View File
@@ -217,6 +217,16 @@ native TF2_RemovePlayerDisguise(client);
*/
native TF2_StunPlayer(client, Float:duration, Float:slowdown=0.0, stunflags, attacker=0);
/**
* Induces the bleed effect on a client
*
* @param client Player's index.
* @param victim Victim's index.
* @param float Duration of bleeding (in seconds).
* @noreturn
*/
native TF2_MakeBleed(client, victim, Float:duration);
/**
* Retrieves the entity index of the CPlayerResource entity
*
@@ -286,6 +296,7 @@ public __ext_tf2_SetNTVOptional()
MarkNativeAsOptional("TF2_DisguisePlayer");
MarkNativeAsOptional("TF2_RemovePlayerDisguise");
MarkNativeAsOptional("TF2_StunPlayer");
MakeNativeAsOptional("TF2_MakeBleed");
MarkNativeAsOptional("TF2_GetResourceEntity");
MarkNativeAsOptional("TF2_GetClass");
}