A few sdktools functions now accept all entities and the Player versions are deprecated

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40986
This commit is contained in:
David Anderson
2007-06-18 17:02:42 +00:00
parent db5c7cdc80
commit a76f3eba97
2 changed files with 42 additions and 14 deletions
+35 -11
View File
@@ -51,35 +51,59 @@ native GivePlayerItem(client, const String:item[], iSubType=0);
native GetPlayerWeaponSlot(client, slot);
/**
* Ignites a player on fire.
* Ignites an entity on fire.
*
* @param client Client index.
* @param entity Entity index.
* @param time Number of seconds to set on fire.
* @param npc True to only affect NPCs.
* @param size Unknown.
* @param level Unknown.
* @noreturn
* @error Invalid client or client not in game, or lack of mod support.
* @error Invalid entity or client not in game, or lack of mod support.
*/
native IgnitePlayer(client, Float:time, bool:npc=false, Float:size=0.0, bool:level=false);
native IgniteEntity(entity, Float:time, bool:npc=false, Float:size=0.0, bool:level=false);
/**
* Extinguishes a player that is on fire.
*
* @param client Client index.
* @param entity Entity index.
* @noreturn
* @error Invalid client or client not in game, or lack of mod support.
* @error Invalid entity or client not in game, or lack of mod support.
*/
native ExtinguishPlayer(client);
native ExtinguishEntity(client);
/**
* Teleports a player.
* Teleports an entity.
*
* @param client Client index.
* @param entity Client index.
* @param origin New origin, or NULL_VECTOR for no change.
* @param angles New angles, or NULL_VECTOR for no change.
* @param velocity New velocity, or NULL_VECTOR for no change.
* @noreturn
* @error Invalid client or client not in game, or lack of mod support.
* @error Invalid entity or client not in game, or lack of mod support.
*/
native TeleportPlayer(client, const Float:origin[3], const Float:angles[3], const Float:velocity[3]);
native TeleportEntity(entity, const Float:origin[3], const Float:angles[3], const Float:velocity[3]);
/**
* @deprecated
*/
stock IgnitePlayer(client, Float:time, bool:npc=false, Float:size=0.0, bool:level=false)
{
return IgniteEntity(client, time, npc, size, level);
}
/**
* @deprecated
*/
stock ExtinguishClient(client)
{
return ExtinguishEntity(client);
}
/**
* @deprecated
*/
stock TeleportPlayer(client, const Float:origin[3], const Float:angles[3], const Float:velocity[3])
{
return TeleportEntity(client, origin, angles, velocity);
}