AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [TF2] Ubercharged Setup (1.2) (https://forums.alliedmods.net/showthread.php?t=120441)

retsam 03-04-2010 22:08

[TF2] Ubercharged Setup (1.2)
 
1 Attachment(s)
[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.




tiki-dog 03-04-2010 23:33

Re: [TF2] Ubercharged Setup
 
Set it to 50% charge on setup spawn, and suddenly more people play medic!

Awesome plugin man.

retsam 03-10-2010 13:18

Re: [TF2] Ubercharged Setup (v0.2)
 
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.

retsam 05-20-2010 12:39

Re: [TF2] Ubercharged Setup (v0.3)
 
Update v0.3:

Fixed incorrect post hook callbacks. Few other small code fixes.

DontWannaName 05-24-2010 21:14

Re: [TF2] Ubercharged Setup (v0.3)
 
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.

retsam 05-24-2010 21:53

Re: [TF2] Ubercharged Setup (v0.3)
 
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.

retsam 05-25-2010 00:29

Re: [TF2] Ubercharged Setup (0.4)
 
There updated :P

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.

DontWannaName 05-25-2010 13:15

Re: [TF2] Ubercharged Setup (0.4)
 
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?

retsam 05-25-2010 14:30

Re: [TF2] Ubercharged Setup (0.4)
 
Ya I am aware of that but, you think players would do that?

I guess thats not hard to fix though.

psychonic 05-25-2010 14:34

Re: [TF2] Ubercharged Setup (0.4)
 
Quote:

Originally Posted by retsam (Post 1190885)
you think players would do that?

Never underestimate stat-whores.


All times are GMT -4. The time now is 01:05.

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