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

[TF2] Ubercharged Setup (1.2)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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:
    1 
    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 - 2246 views - 13.9 KB)

    Last edited by retsam; 09-11-2010 at 01:50. Reason: new version
    retsam is offline
     



    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 23:35.


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