View Single Post
Author Message
DarthNinja
SourceMod Plugin Approver
Join Date: Mar 2009
Location: PreThinkHook()
Old 10-31-2009 , 19:40   [TF2] Engineer Metal Regen
Reply With Quote #1

[TF2] Engineer Metal Regen
Version 2.0.3



Description:
Regenerates engineers' build metal at a configurable rate.

Commands:
None
Cvars:
  • sm_rmetal_version - Plugin Version
  • sm_rmetal_enable "1" - Set to 0 to disable the plugin
  • sm_rmetal_rate "5.0" - Time in seconds to wait between each tick.
  • sm_rmetal_size "5" - How much metal to add or subtract from players each tick.
  • sm_rmetal_max "200" - Max metal a player should have. (The plugin wont add metal if players are at the max).
  • sm_rmetal_adminonly "0" - Set to 1 and only players with the correct admin flag will get metal.
    You can use the override "rmetal_override" to set the required flag.
Install Instructions:
  1. Place MetalRegen.smx in your sourcemod/plugins/ folder and load the plugin.

Version History:
  • V1.0.0
    • Beta release
  • V1.5.0
    • Public (working) release
  • V1.5.1
    • Added check to prevent metal from exceeding 200.
  • V1.5.2
    • Fixed plugin not killing timers if a player is dead.
  • V2.0.0
    • Complete rewrite:
    • Code is now cleaner and more efficient
    • Perks and normal versions combined into one plugin
    • Extra cvars added
    • Players now all get metal at the same time, rather then each player having a personal timer.
  • V2.0.1
    • Fixed spawning extra timer instances.
  • V2.0.2
    • Fixed a couple typos
    • Changed to Get/SetEntProp
  • V2.0.3
    • Fixed incorrect cvar bounds

Total downloads prior to 1/5/2012 : 2,653
Attached Files
File Type: sp Get Plugin or Get Source (MetalRegen.sp - 4615 views - 2.6 KB)
__________________

Last edited by DarthNinja; 08-11-2012 at 02:47.
DarthNinja is offline