1.1 --- a/plugins/include/sdktools_functions.inc Mon Jun 18 07:09:47 2007 +0000
1.2 +++ b/plugins/include/sdktools_functions.inc Mon Jun 18 17:02:42 2007 +0000
1.3 @@ -51,35 +51,59 @@
1.4 native GetPlayerWeaponSlot(client, slot);
1.5
1.6 /**
1.7 - * Ignites a player on fire.
1.8 + * Ignites an entity on fire.
1.9 *
1.10 - * @param client Client index.
1.11 + * @param entity Entity index.
1.12 * @param time Number of seconds to set on fire.
1.13 * @param npc True to only affect NPCs.
1.14 * @param size Unknown.
1.15 * @param level Unknown.
1.16 * @noreturn
1.17 - * @error Invalid client or client not in game, or lack of mod support.
1.18 + * @error Invalid entity or client not in game, or lack of mod support.
1.19 */
1.20 -native IgnitePlayer(client, Float:time, bool:npc=false, Float:size=0.0, bool:level=false);
1.21 +native IgniteEntity(entity, Float:time, bool:npc=false, Float:size=0.0, bool:level=false);
1.22
1.23 /**
1.24 * Extinguishes a player that is on fire.
1.25 *
1.26 - * @param client Client index.
1.27 + * @param entity Entity index.
1.28 * @noreturn
1.29 - * @error Invalid client or client not in game, or lack of mod support.
1.30 + * @error Invalid entity or client not in game, or lack of mod support.
1.31 */
1.32 -native ExtinguishPlayer(client);
1.33 +native ExtinguishEntity(client);
1.34
1.35 /**
1.36 - * Teleports a player.
1.37 + * Teleports an entity.
1.38 *
1.39 - * @param client Client index.
1.40 + * @param entity Client index.
1.41 * @param origin New origin, or NULL_VECTOR for no change.
1.42 * @param angles New angles, or NULL_VECTOR for no change.
1.43 * @param velocity New velocity, or NULL_VECTOR for no change.
1.44 * @noreturn
1.45 - * @error Invalid client or client not in game, or lack of mod support.
1.46 + * @error Invalid entity or client not in game, or lack of mod support.
1.47 + */
1.48 +native TeleportEntity(entity, const Float:origin[3], const Float:angles[3], const Float:velocity[3]);
1.49 +
1.50 +/**
1.51 + * @deprecated
1.52 */
1.53 -native TeleportPlayer(client, const Float:origin[3], const Float:angles[3], const Float:velocity[3]);
1.54 +stock IgnitePlayer(client, Float:time, bool:npc=false, Float:size=0.0, bool:level=false)
1.55 +{
1.56 + return IgniteEntity(client, time, npc, size, level);
1.57 +}
1.58 +
1.59 +/**
1.60 + * @deprecated
1.61 + */
1.62 +stock ExtinguishClient(client)
1.63 +{
1.64 + return ExtinguishEntity(client);
1.65 +}
1.66 +
1.67 +/**
1.68 + * @deprecated
1.69 + */
1.70 +stock TeleportPlayer(client, const Float:origin[3], const Float:angles[3], const Float:velocity[3])
1.71 +{
1.72 + return TeleportEntity(client, origin, angles, velocity);
1.73 +}