View Single Post
DarthNinja
SourceMod Plugin Approver
Join Date: Mar 2009
Location: PreThinkHook()
Old 11-01-2009 , 14:22   Re: [TF2] Engineer Metal Regen
Reply With Quote #8

The first cvar sm_rmetal_rate sets the tick rate in seconds, so sm_rmetal_rate "5.0" would mean that the plugin 'ticks' every 5 seconds.

sm_rmetal_size is the amount of metal the plugin adds to the engie's build metal.

so for example size = 5 & rate = 5 then give the engi 5 metal every 5 seconds
so again, 0sec = 100metal, 5 sec = 105 metal, 10 sec = 110 metal etc.

the size and rate do not have to the the same obviously. You could if you wanted set it to regen 15 metal every five sec, or 17 metal every 11 sec.

So, simple breakdown:
sm_rmetal_rate controls the time it takes to regen metal.
sm_rmetal_size controls now much metal to give every X seconds. (X seconds being controlled by the sm_rmetal_rate cvar)

Quote:
Originally Posted by SilentLikeSilence View Post
(it means 5 seconds) So your metal will be set to 200 after every 5 seconds.

Silent
Actually it wont set the ammo directly to 200 unless you have the size cvar set to 200.
__________________

Last edited by DarthNinja; 11-01-2009 at 14:26.
DarthNinja is offline