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

[TF2] Drunken Heal: Refilled


Post New Thread Reply   
 
Thread Tools Display Modes
Author
DarthNinja
SourceMod Plugin Approver
Join Date: Mar 2009
Location: PreThinkHook()
Plugin ID:
2692
Plugin Version:
1.0.1
Plugin Category:
Gameplay
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
    2 
    Plugin Description:
    Use the drinking taunt to heal yourself as a demoman!
    Old 11-30-2011 , 03:16   [TF2] Drunken Heal: Refilled
    Reply With Quote #1

    [TF2] Drunken Heal: Refilled
    Version 1.0.1



    Description:
    Taunting with a bottle heals your ass. Nuff' said.

    This is a replacement for This Plugin which broke a little while ago when the taunt command was renamed to +taunt.
    This is a complete rewrite that adds some new features, and is 127.5% more efficient.

    Currently heals players taunting with:
    • Bottle
    • Custom Bottle
    • Scottish Handshake

    Commands:
    • None
    Cvars:
    • sm_drunkenhealz_version
      • Plugin version
    • sm_drunkenheal_amount
      • Amount to heal per taunt
      • Default: 15
    • sm_drunkenheal_cooldown
      • Time needed before the player can get health again. 0 = No cooldown.
      • Default: 0
    • sm_drunkenheal_broken
      • Action to take if the player's bottle is broken
      • 3 = No change
      • 2 = Double healing
      • 1 = Half healing
      • 0 = No healing
      • Default: 3
    The plugin auto-magically creates a config named DrunkenHeal.cfg.


    Install Instructions:
    1. Place DrunkenHeal.smx into your addons/sourcemod/plugins/ folder.

    ToDo:
    • If anyone wants it, I may add a random health setting so players get a random amount of health.

    Version History:
    • V1.0.0
      • Initial Release
    • V1.0.1
      • Fixed an error created if the player had no active weapon while taunting.

    Total downloads as prior to last update: 140

    Attached Files
    File Type: sp Get Plugin or Get Source (DrunkenHeal.sp - 1728 views - 5.3 KB)
    __________________

    Last edited by KyleS; 10-08-2012 at 17:00. Reason: Feedback Given.
    DarthNinja is offline
    serpentine
    I don't have a problem
    Join Date: Feb 2011
    Location: Madison, WI
    Old 11-30-2011 , 06:25   Re: [TF2] Drunken Heal: Refilled
    Reply With Quote #2

    Pretty cool. Another reason to hate demos lol.
    serpentine is offline
    McFlurry
    Veteran Member
    Join Date: Mar 2010
    Location: RemoveEdict(0);
    Old 11-30-2011 , 08:35   Re: [TF2] Drunken Heal: Refilled
    Reply With Quote #3

    Nice plugin. A cvar to toggle the hint text would be nice.
    __________________

    Last edited by McFlurry; 11-30-2011 at 08:35.
    McFlurry is offline
    Send a message via Skype™ to McFlurry
    Incendia
    SourceMod Donor
    Join Date: Sep 2011
    Old 11-30-2011 , 15:23   Re: [TF2] Drunken Heal: Refilled
    Reply With Quote #4

    Needs more scaling cvar values.
    Incendia is offline
    VoiDeD
    AlliedModders Donor
    Join Date: Mar 2009
    Location: Illinois, USA
    Old 11-30-2011 , 15:37   Re: [TF2] Drunken Heal: Refilled
    Reply With Quote #5

    Quote:
    Originally Posted by Incendia View Post
    Needs more scaling cvar values.
    Going to have to agree here. I'd rather have more power to change how the broken bottle healing scales.
    VoiDeD is offline
    DarthNinja
    SourceMod Plugin Approver
    Join Date: Mar 2009
    Location: PreThinkHook()
    Old 11-30-2011 , 15:41   Re: [TF2] Drunken Heal: Refilled
    Reply With Quote #6

    Quote:
    Originally Posted by Incendia View Post
    Needs more scaling cvar values.
    k
    __________________

    Last edited by DarthNinja; 11-30-2011 at 15:57.
    DarthNinja is offline
    Roundcat
    Senior Member
    Join Date: Feb 2012
    Old 04-05-2012 , 05:45   Re: [TF2] Drunken Heal: Refilled
    Reply With Quote #7

    Thanks for plugin seems to work Ok but However it will only heal by 15hp even if I change the cvar value.

    This is my settings:
    sm_drunkenhealz_version V1.0.0
    sm_drunkenheal_amount "100"
    sm_drunkenheal_cooldown "0"
    sm_drunkenheal_broken "0"

    I have also tried it without the quotes.

    Am i doing anything wrong?
    __________________
    I know not my ar*e from its elbow.
    Roundcat is offline
    Doodil
    Senior Member
    Join Date: Mar 2012
    Old 04-05-2012 , 05:52   Re: [TF2] Drunken Heal: Refilled
    Reply With Quote #8

    Does it always only heal 15 hp? There is a check in the plugin that checks if the actual playerhealth + bottlehealth is bigger than 175 it only gives health up to 175.

    If it always heals for only 15 health then you probably execute the config too late. Check if the sm_drunkenheal_amount value really is higher than 15

    sm_drunkenheal_amount 100
    or
    sm_drunkenheal_amount "100"

    should both work
    Doodil is offline
    Roundcat
    Senior Member
    Join Date: Feb 2012
    Old 04-05-2012 , 06:43   Re: [TF2] Drunken Heal: Refilled
    Reply With Quote #9

    Quote:
    Originally Posted by Doodil View Post
    you probably execute the config too late.
    Thanks for getting back so quick... I'll run some more checks to see if its consistently 15 health. I also noticed that it heals 15hp if the bottle is broken even though I supposedly set it to only heal 1/2 or 0.

    RE the quote above - how would I execute the config sooner?
    __________________
    I know not my ar*e from its elbow.
    Roundcat is offline
    Doodil
    Senior Member
    Join Date: Mar 2012
    Old 04-05-2012 , 07:05   Re: [TF2] Drunken Heal: Refilled
    Reply With Quote #10

    too late was probably wrong, too soon I mean...

    Where did you put your commands to execute? because the plugin itself creates a config file and reads that file right after loading the plugin, when you executed your commands before that, then they get overwritten(that would explain why you still have the standard settings)

    Look in your tf2/cfg/sourcemod/ folder and check if there is a drunkenheal.cfg and change the settings there (this is not the addons/sourcemods/cfg/ folder!)
    Doodil 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 20:19.


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