Raised This Month: $ Target: $400
 0% 

[TF2] Engineer Metal Regen


Post New Thread Reply   
 
Thread Tools Display Modes
MisterTickles
Member
Join Date: Sep 2011
Old 08-09-2012 , 19:44   Re: [TF2] Engineer Metal Regen
Reply With Quote #41

Actually, seems to work if I leave it default without changing any of the cvars.. maybe it's one of the cvars that breaks it. I'll investigate this further!
MisterTickles is offline
rtk
Senior Member
Join Date: Dec 2009
Old 08-09-2012 , 23:52   Re: [TF2] Engineer Metal Regen
Reply With Quote #42

I wish I could give more useful information but all I can say is that it still doesn't work at all. No error logs and no metal is regenerated.
__________________
Never argue with an idiot. He lowers you to his level and then wins on experience!
rtk is offline
Tylerst
Veteran Member
Join Date: Oct 2010
Old 08-10-2012 , 04:53   Re: [TF2] Engineer Metal Regen
Reply With Quote #43

Think I found the culprit:

PHP Code:
v_MaxMetal CreateConVar("sm_rmetal_max""200""The plugin will not add metal if the player's metal is at or above this value"0true0.0true1.0); 
This convar is set to have a min of 0.0 and a max of 1.0

Just change the 1.0 to 1023.0 (1023 is the max amount metal you can possibly hold before it rolls over)

Last edited by Tylerst; 08-10-2012 at 04:57.
Tylerst is offline
rtk
Senior Member
Join Date: Dec 2009
Old 08-10-2012 , 15:03   Re: [TF2] Engineer Metal Regen
Reply With Quote #44

I did that change and for me it didn't work yet.
__________________
Never argue with an idiot. He lowers you to his level and then wins on experience!
rtk is offline
Tylerst
Veteran Member
Join Date: Oct 2010
Old 08-10-2012 , 17:22   Re: [TF2] Engineer Metal Regen
Reply With Quote #45

Did you re-compile and overwite the last one? After changing that it starting working fine for me.
Tylerst is offline
rtk
Senior Member
Join Date: Dec 2009
Old 08-10-2012 , 22:23   Re: [TF2] Engineer Metal Regen
Reply With Quote #46

I recompiled, overwittenand reloaded it but apparently wasn't enough.
Then I uploaded with a different file name and restarted the server and now it is working file so far.

Thanks for pointing where was the bug.
__________________
Never argue with an idiot. He lowers you to his level and then wins on experience!

Last edited by rtk; 08-10-2012 at 22:23.
rtk is offline
Sreaper
髪を用心
Join Date: Nov 2009
Old 08-11-2012 , 00:23   Re: [TF2] Engineer Metal Regen
Reply With Quote #47

Works for me too now. Thanks Tyler!
Sreaper is offline
DarthNinja
SourceMod Plugin Approver
Join Date: Mar 2009
Location: PreThinkHook()
Old 08-11-2012 , 00:41   Re: [TF2] Engineer Metal Regen
Reply With Quote #48

Quote:
Originally Posted by Tylerst View Post
Think I found the culprit:

PHP Code:
v_MaxMetal CreateConVar("sm_rmetal_max""200""The plugin will not add metal if the player's metal is at or above this value"0true0.0true1.0); 
This convar is set to have a min of 0.0 and a max of 1.0

Just change the 1.0 to 1023.0 (1023 is the max amount metal you can possibly hold before it rolls over)
Copy pasta fail on my part, thanks again for spotting that.
I'll update the attachment shortly.
__________________
DarthNinja is offline
Pootisbird
Junior Member
Join Date: Jan 2013
Location: Germany
Old 01-14-2013 , 13:10   Re: [TF2] Engineer Metal Regen
Reply With Quote #49

Can you make health regen too?
__________________


Pootisbird is offline
DarthNinja
SourceMod Plugin Approver
Join Date: Mar 2009
Location: PreThinkHook()
Old 01-14-2013 , 19:15   Re: [TF2] Engineer Metal Regen
Reply With Quote #50

Quote:
Originally Posted by Pootisbird View Post
Can you make health regen too?
Yes.
__________________
DarthNinja is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:04.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode