plugins/include/tf2.inc
changeset 2939 3d62874b9071
parent 2673 87d4d9f3cbc3
child 2942 2048322c8b74
     1.1 --- a/plugins/include/tf2.inc	Thu Mar 11 22:00:46 2010 -0500
     1.2 +++ b/plugins/include/tf2.inc	Thu Mar 18 11:35:05 2010 -0400
     1.3 @@ -57,6 +57,33 @@
     1.4  	TFTeam_Blue = 3	
     1.5  };
     1.6  
     1.7 +enum TFCond
     1.8 +{
     1.9 +	TFCond_Slowed = 0,
    1.10 +	TFCond_Zoomed,
    1.11 +	TFCond_Disguising,
    1.12 +	TFCond_Disguised,
    1.13 +	TFCond_Cloaked,
    1.14 +	TFCond_Ubercharged,
    1.15 +	TFCond_TeleportedGlow,
    1.16 +	TFCond_Taunting,
    1.17 +	TFCond_UberchargeFading,
    1.18 +	TFCond_Unknown1,
    1.19 +	TFCond_Teleporting,
    1.20 +	TFCond_Kritzkrieged,
    1.21 +	TFCond_Unknown2,
    1.22 +	TFCond_DeadRingered,
    1.23 +	TFCond_Bonked,
    1.24 +	TFCond_Dazed,
    1.25 +	TFCond_Buffed,
    1.26 +	TFCond_Charging,
    1.27 +	TFCond_DemoBuff,
    1.28 +	TFCond_Healing,
    1.29 +	TFCond_OnFire,
    1.30 +	TFCond_Overhealed,
    1.31 +	TFCond_Jarated
    1.32 +}
    1.33 +
    1.34  /**
    1.35   * Sets a client on fire for 10 seconds.
    1.36   *
    1.37 @@ -76,6 +103,46 @@
    1.38  native TF2_RespawnPlayer(client);
    1.39  
    1.40  /**
    1.41 + * Regenerates a client's health and ammunition
    1.42 + *
    1.43 + * @param client		Player's index.
    1.44 + * @noreturn
    1.45 + * @error				Invalid client index, client not in game, or no mod support.
    1.46 + */
    1.47 +native TF2_RegeneratePlayer(client);
    1.48 +
    1.49 +/**
    1.50 + * Adds a condition to a player
    1.51 + *
    1.52 + * @param client		Player's index.
    1.53 + * @param condition		Integer identifier of condition to apply.
    1.54 + * @param duration		Duration of condition (does not apply to all conditions).
    1.55 + * @noreturn
    1.56 + * @error				Invalid client index, client not in game, or no mod support.
    1.57 + */
    1.58 +native TF2_AddCondition(client, TFCond:condition, Float:duration);
    1.59 +
    1.60 +/**
    1.61 + * Removes a condition from a player
    1.62 + *
    1.63 + * @param client		Player's index.
    1.64 + * @param condition		Integer identifier of condition to remove.
    1.65 + * @noreturn
    1.66 + * @error				Invalid client index, client not in game, or no mod support.
    1.67 + */
    1.68 +native TF2_RemoveCondition(client, TFCond:condition);
    1.69 +
    1.70 +/**
    1.71 + * Enables/disables PowerPlay mode on a player.
    1.72 + *
    1.73 + * @param client		Player's index.
    1.74 + * @param enabled		Whether to enable or disable PowerPlay on player.
    1.75 + * @noreturn
    1.76 + * @error				Invalid client index, client not in game, or no mod support.
    1.77 + */
    1.78 +native TF2_SetPlayerPowerPlay(client, bool:enabled);
    1.79 +
    1.80 +/**
    1.81   * Disguises a client to the given model and team. Only has an effect on spies.
    1.82   *
    1.83   * Note: This only starts the disguise process and a delay occurs before the spy is fully disguised