[TF2] Ubercharged Setup (1.2)
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.
- Place .smx into the plugins folder(duh..)
Config is auto-created --> cfg\sourcemod\plugin.ubercharged_setup.cfg
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.
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.