Raised This Month: $182 Target: $400
 45% 

[TF2] Ubercharged Setup (1.2)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
retsam
Veteran Member
Join Date: Aug 2008
Location: so-cal
Plugin ID:
1506
Plugin Version:
1.2
Plugin Category:
General Purpose
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
    6 
    Plugin Description:
    Gives all medics ubercharge percent during setup period!
    Old 03-04-2010 , 22:08   [TF2] Ubercharged Setup (1.2)
    Reply With Quote #1

    [TF2] Ubercharged Setup (1.2)


    Description:

    Since valve removed any strategy, teamplay or skill involved in charging up ubers during setup period, I figured what the hell, might as well go one step further and just give all medics fully charged ubers to begin with. This plugin detects maps with setup period and gives all medics fully charged ubers during setup period and upon spawn until setup ends.

    Installation/Configs:

    - Place .smx into the plugins folder(duh..)
    - Config is auto-created --> cfg\sourcemod\plugin.ubercharged_setup.cfg

    Cvars:
    sm_ubersetup_amount "100.0" //Ubercharge percent amount to give medics in setup period.
    sm_ubersetup_enabled "1" //Enable ubercharged setup plugin?(1/0 = yes/no)
    sm_ubersetup_adminonly "0" //Enable plugin for admins only? (1/0 = yes/no)
    sm_ubersetup_flag "b" //Admin flag to use if adminonly is enabled (only one). Must be a in char format.
    sm_ubersetup_sound "1" //Emit fully charged sound file to medics?(1/0 = yes/no) Note: Sound is only played if amount set to 100.
    sm_ubersetup_displaymode "1" //Display mode for notifying medics of uber amount.(0/1/2) 0=disabled, 1=hinttext(default), 2=centertext message.
    sm_ubersetup_duration "0.0" //Time in seconds that the ubercharge setup period lasts. (0.0=disabled and will run length of setup period, any number higher sets duration)
    sm_ubersetup_restrict "1" //Restrict ubercharge use during setup period to prevent stat abuse? (1/0 = yes/no)
    sm_ubersetup_execdelay "1.0" //Ubersetup execution delay timer. Time in seconds after setup starts to execute the main function.


    Changelog:

    Code:
    9/10/10 - v1.2 - Fixed a big issue with accidentally restricting ubers from being deployed on non-setup maps for the first 52 seconds of the map(length of restriction period).
    8/2/10 - v1.1 - Added small check to make sure admin flag cvar isnt set to nothing. This would cause a problem if it actually was as everyone might be considered an admin?
    7/23/10 - v1.0 - Added an alive check for playerspawn hook. (I forgot playerspawn is called upon joining a server? huh?) Removed the printtoserver gamecheck msg.
    6/24/10 - v0.9 - Fixed restriction not working if duration cvar was ending the period early. Raised restriction period slightly. Raised execdelay cvar value limit to 60 instead of 50.
    6/23/10 - v0.8 - Removed the limit cvar. Added an execution delay timer cvar. Added a restriction cvar. This uses OnPlayerRunCmd to check buttons and restrict use a bit more efficiently now. Players will no longer be able to even use a single ubercharge during setup.
    5/28/10 - v0.7 - Changed limit cvar so that it now tracks players actually using ubercharges in the period and not respawning. More efficiently aimed at players abusing stats.
    5/26/10 - v0.6 - Fixed issue of ubercharge function firing during "waitingforplayers" time.
    5/26/10 - v0.5.1 - Changed the limit notification messages slightly.
    5/25/10 - v0.5 - Added a ubercharged respawn limit cvar. This was done to prevent abuse with stats plugins. Raised the delay of round_active function to 2 seconds.
    5/24/10 - v0.4 - Added adminonly cvar and flag. Added a duration cvar and can now specify how long the ubercharge setup period lasts.
    5/22/10 - v0.3 - Fixed incorrect post hook callbacks. Few small code fixes.
    v0.2 - Added displaymode cvar for notification messages(hinttext and centertext). Raised minimum amount to 25. Raised delay on executing functions slightly.
    v0.1 - Initial release.


    Attached Files
    File Type: sp Get Plugin or Get Source (ubercharged_setup.sp - 1246 views - 13.9 KB)

    Last edited by retsam; 09-11-2010 at 01:50. Reason: new version
    retsam is offline
    tiki-dog
    Junior Member
    Join Date: Aug 2009
    Old 03-04-2010 , 23:33   Re: [TF2] Ubercharged Setup
    Reply With Quote #2

    Set it to 50% charge on setup spawn, and suddenly more people play medic!

    Awesome plugin man.
    tiki-dog is offline
    retsam
    Veteran Member
    Join Date: Aug 2008
    Location: so-cal
    Old 03-10-2010 , 13:18   Re: [TF2] Ubercharged Setup (v0.2)
    Reply With Quote #3

    Update v0.2

    Small little update.

    - Added a displaymode cvar for notification messages. Can change between hinttext, centertext or disabled.

    - Minimum value for amount raised to 25.
    - Raised delay on executing functions slightly.

    Last edited by retsam; 03-10-2010 at 13:31.
    retsam is offline
    retsam
    Veteran Member
    Join Date: Aug 2008
    Location: so-cal
    Old 05-20-2010 , 12:39   Re: [TF2] Ubercharged Setup (v0.3)
    Reply With Quote #4

    Update v0.3:

    Fixed incorrect post hook callbacks. Few other small code fixes.
    retsam is offline
    DontWannaName
    Veteran Member
    Join Date: Jun 2007
    Location: VALVe Land, WA
    Old 05-24-2010 , 21:14   Re: [TF2] Ubercharged Setup (v0.3)
    Reply With Quote #5

    Can you add admin only support, I was going to do it but im sure others may want that too. Also, how hard would it be to make only the first 40 seconds of setup an insta uber time since after that medics cant get a full uber before setup.
    __________________

    DontWannaName is offline
    retsam
    Veteran Member
    Join Date: Aug 2008
    Location: so-cal
    Old 05-24-2010 , 21:53   Re: [TF2] Ubercharged Setup (v0.3)
    Reply With Quote #6

    Pretty easy on both accounts I think.

    Sure...

    For the 40 second thing, let me test that out a bit later. I guess I could see the reason for that. Maybe I should make a cvar for that as well.

    Last edited by retsam; 05-25-2010 at 00:48.
    retsam is offline
    retsam
    Veteran Member
    Join Date: Aug 2008
    Location: so-cal
    Old 05-25-2010 , 00:29   Re: [TF2] Ubercharged Setup (0.4)
    Reply With Quote #7

    There updated

    Update v0.4:


    - Added admin only cvar and flag.

    - Added a duration cvar and can now specify how long the ubercharge setup period lasts(if someone wanted it shorter than normal setup period for some reason).


    Note: Youll need to delete old configs and let it re-create or copy/paste new cvars in.

    Last edited by retsam; 05-25-2010 at 00:45.
    retsam is offline
    DontWannaName
    Veteran Member
    Join Date: Jun 2007
    Location: VALVe Land, WA
    Old 05-25-2010 , 13:15   Re: [TF2] Ubercharged Setup (0.4)
    Reply With Quote #8

    Cool thanks. I have one more critical request. Players can abuse this by going medic and using their ubers and respawning to get another over and over again to stat pad in hlstatsx. Is it possible to give it a max # of ubers per person?
    __________________

    DontWannaName is offline
    retsam
    Veteran Member
    Join Date: Aug 2008
    Location: so-cal
    Old 05-25-2010 , 14:30   Re: [TF2] Ubercharged Setup (0.4)
    Reply With Quote #9

    Ya I am aware of that but, you think players would do that?

    I guess thats not hard to fix though.
    retsam is offline
    psychonic

    BAFFLED
    Join Date: May 2008
    Old 05-25-2010 , 14:34   Re: [TF2] Ubercharged Setup (0.4)
    Reply With Quote #10

    Quote:
    Originally Posted by retsam View Post
    you think players would do that?
    Never underestimate stat-whores.
    psychonic 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:57.


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