Raised This Month: $12 Target: $400
 3% 

[TF2] Engineer Metal Regen


Post New Thread Reply   
 
Thread Tools Display Modes
retsam
Veteran Member
Join Date: Aug 2008
Location: so-cal
Old 11-09-2009 , 15:27   Re: [TF2] Engineer Metal Regen
Reply With Quote #11

I could be wrong on this, but im not sure you need to kill the timer and do plugin_stop at the same time.

I believe Plugin_Stop does actually kill the timer as well. If im wrong, lmk.

Code:
if (!IsClientInGame(client) || !IsPlayerAlive(client))
       return Plugin_Stop;
else
{
//other junk
}

Last edited by retsam; 11-09-2009 at 15:29.
retsam is offline
bl4nk
SourceMod Developer
Join Date: Jul 2007
Old 11-09-2009 , 15:47   Re: [TF2] Engineer Metal Regen
Reply With Quote #12

Returning Plugin_Stop will work just fine.
bl4nk is offline
DarthNinja
SourceMod Plugin Approver
Join Date: Mar 2009
Location: PreThinkHook()
Old 11-10-2009 , 00:14   Re: [TF2] Engineer Metal Regen
Reply With Quote #13

Quote:
Originally Posted by bl4nk View Post
Returning Plugin_Stop will work just fine.
Hmm, I thought it did, but being new at this I assumed I'd botched it
__________________
DarthNinja is offline
retsam
Veteran Member
Join Date: Aug 2008
Location: so-cal
Old 11-10-2009 , 01:44   Re: [TF2] Engineer Metal Regen
Reply With Quote #14

Gotcha. Ya cause what you got right now, youre essentially attempting to kill the timer twice...
retsam is offline
tylerwoods55
New Member
Join Date: Nov 2009
Location: missouri
Old 11-27-2009 , 17:18   Re: [TF2] Engineer Metal Regen
Reply With Quote #15

Works Perfect on my server thanks
__________________
tylerwoods55 is offline
DarthNinja
SourceMod Plugin Approver
Join Date: Mar 2009
Location: PreThinkHook()
Old 11-27-2009 , 17:23   Re: [TF2] Engineer Metal Regen
Reply With Quote #16

Quote:
Originally Posted by tylerwoods55 View Post
Works Perfect on my server thanks
Cool

Quote:
Originally Posted by retsam View Post
Gotcha. Ya cause what you got right now, youre essentially attempting to kill the timer twice...
I fixed that a while ago, just fyi if you weren't aware
__________________
DarthNinja is offline
Mortdredd
Senior Member
Join Date: Dec 2009
Old 01-22-2010 , 02:31   Re: [TF2] Engineer Metal Regen
Reply With Quote #17

when will the admin flag be put onto this? also how hard would it be to modify this so you get unlimited ammo by regen the remaining ammo, not the ammo in the current clip (if that makes sense) so they shill have to reload
Mortdredd is offline
DarthNinja
SourceMod Plugin Approver
Join Date: Mar 2009
Location: PreThinkHook()
Old 01-22-2010 , 02:35   Re: [TF2] Engineer Metal Regen
Reply With Quote #18

Quote:
Originally Posted by Mortdredd View Post
when will the admin flag be put onto this? also how hard would it be to modify this so you get unlimited ammo by regen the remaining ammo, not the ammo in the current clip (if that makes sense) so they shill have to reload
Actually I just wrote the admin/perk version of this a couple days ago, but forgot to put it up.

About the ammo; not to hard I shouldn't think, but there are several ammo-related plugins already.
If there isnt one like what you want, I could write it for you...
__________________
DarthNinja is offline
Mortdredd
Senior Member
Join Date: Dec 2009
Old 01-22-2010 , 07:58   Re: [TF2] Engineer Metal Regen
Reply With Quote #19

Quote:
Originally Posted by DarthNinja View Post
Actually I just wrote the admin/perk version of this a couple days ago, but forgot to put it up.

About the ammo; not to hard I shouldn't think, but there are several ammo-related plugins already.
If there isnt one like what you want, I could write it for you...
awsome some rep for you (when i work out how to give rep that is ), will put the metal regen on my server when i get back from work tonight for testing. if you have time to make an ammo plugin where the secondary clip regen's so they have to reload but dont run out of ammo would be awsome not sure hoe it would work with the pyro and heavy given they never reload but i leave that to the ppl who know code
Mortdredd is offline
Nicolayka
Member
Join Date: Nov 2010
Old 11-05-2011 , 10:49   Re: [TF2] Engineer Metal Regen
Reply With Quote #20

And how to do that would only admins with flag "o" to use this mod, that would not all the players on the server.
_______________________
А как сделать, что бы только админы с флагом "о" могли пользоваться данным модом, что бы не все игроки на сервере.
__________________
Nicolayka is offline
Reply


Thread Tools
Display Modes

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


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