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:
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.