Raised This Month: $32 Target: $400
 8% 

[TF2] Locker Overheal (v1.1 updated 3/19/10)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Pawn 3-pg
Senior Member
Join Date: Jul 2009
Plugin ID:
1407
Plugin Version:
1.1
Plugin Category:
Gameplay
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Overheals players when they touch a resupply locker in spawn
    Old 01-16-2010 , 14:08   [TF2] Locker Overheal (v1.1 updated 3/19/10)
    Reply With Quote #1

    Locker Overheal

    Version 1.1 - March 19, 2010

    Sets a player's health to 150% when touching a resupply locker in spawn. The health boost drains away just like the overheal from a medic's medigun.

    Cvars:
    sm_locker_overheal_enabled - 1/0

    Uses the default TF2 Cvars for the medigun for the max overheal and decay duration:
    sm_cvar tf_max_health_boost (default 1.5) for the max overheal
    sm_cvar tf_boost_drain_time (default 15 seconds) for the duration

    Commands:
    None


    Many thanks to CrancK for his help with this.
    Attached Files
    File Type: sp Get Plugin or Get Source (locker_overheal.sp - 2554 views - 5.4 KB)

    Last edited by Pawn 3-pg; 03-19-2010 at 22:40.
    Pawn 3-pg is offline
    retsam
    Veteran Member
    Join Date: Aug 2008
    Location: so-cal
    Old 01-16-2010 , 14:24   Re: [TF2] Locker Overheal
    Reply With Quote #2

    Nice work. I was wondering how you were going to make health decay since it doesnt do that anymore. Looks like you just create a timer and use the stock cvar values for the values and subtract it. (I need to do this for one of my plugins as well)
    retsam is offline
    Mnkras
    Senior Member
    Join Date: Mar 2009
    Location: 127.0.0.1
    Old 01-16-2010 , 15:12   Re: [TF2] Locker Overheal
    Reply With Quote #3

    sweet thanks for this
    __________________
    Mnkras is offline
    onlyamd
    Senior Member
    Join Date: Apr 2009
    Location: Chicago,IL
    Old 01-17-2010 , 03:21   Re: [TF2] Locker Overheal
    Reply With Quote #4

    Plugin works great!! Anybody else having problems executing the cvars?? SM 1.3, MM 1.8

    Last edited by onlyamd; 01-17-2010 at 03:25.
    onlyamd is offline
    Pawn 3-pg
    Senior Member
    Join Date: Jul 2009
    Old 01-17-2010 , 08:28   Re: [TF2] Locker Overheal
    Reply With Quote #5

    Quote:
    Originally Posted by onlyamd View Post
    Plugin works great!! Anybody else having problems executing the cvars?? SM 1.3, MM 1.8
    Oops. The tf_ ones need to be changed with sm_cvar. I'll update the instructions.
    Pawn 3-pg is offline
    psychonic

    BAFFLED
    Join Date: May 2008
    Old 03-05-2010 , 09:06   Re: [TF2] Locker Overheal
    Reply With Quote #6

    @Pawn 3-pg
    It looks like you forgot to tag bPluginEnabled as a bool on line 20 since you use it as one.

    Also, it would be wiser to pass userid instead of client index through timers because one user could disconnect and another user connect and get same client index during the duration of the timer.

    In addition, some slight optimization tips:
    You can use Sourcemod's built-in MaxPlayers constant instead of making a call to the GetMaxPlayers() native.
    You can use decl instead of new on your arrays (Strings and vectors) since you populate them with data before doing any other operations with them.
    psychonic is offline
    cybersquare420
    Veteran Member
    Join Date: Nov 2008
    Old 03-12-2010 , 11:22   Re: [TF2] Locker Overheal
    Reply With Quote #7

    any chance to make this admin only... i would like to add something like this to the list of perks donators receive on my servers..
    __________________
    cybersquare420 is offline
    Pawn 3-pg
    Senior Member
    Join Date: Jul 2009
    Old 03-19-2010 , 22:38   Re: [TF2] Locker Overheal
    Reply With Quote #8

    Quote:
    Originally Posted by psychonic View Post
    @Pawn 3-pg
    It looks like you forgot to tag bPluginEnabled as a bool on line 20 since you use it as one.

    Also, it would be wiser to pass userid instead of client index through timers because one user could disconnect and another user connect and get same client index during the duration of the timer.

    In addition, some slight optimization tips:
    You can use Sourcemod's built-in MaxPlayers constant instead of making a call to the GetMaxPlayers() native.
    You can use decl instead of new on your arrays (Strings and vectors) since you populate them with data before doing any other operations with them.
    I fixed the bool tag and took your suggestions and updated the plugin.
    Pawn 3-pg is offline
    Mgis
    New Member
    Join Date: Feb 2012
    Location: Poland
    Old 02-10-2012 , 00:29   Re: [TF2] Locker Overheal (v1.1 updated 3/19/10)
    Reply With Quote #9

    Kind-of-a-bump!

    This plugin is not working for me. Any chances of updating?

    Edit:
    Its not that i've not tested it before many times, 'cos I have, but after installing "Rocket Bounce" and sdkhooks needed for that, the Locker Overheal was working after restart.

    Last edited by Mgis; 02-10-2012 at 21:16. Reason: Eureka (effect)
    Mgis is offline
    luki1412
    Veteran Member
    Join Date: Oct 2008
    Location: OnPluginStart()
    Old 06-25-2013 , 16:58   Re: [TF2] Locker Overheal (v1.1 updated 3/19/10)
    Reply With Quote #10

    needs fixing... bugged... its not always overhealing and spams error messages
    __________________
    luki1412 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 10:36.


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