AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [TF2] Locker Overheal (v1.1 updated 3/19/10) (https://forums.alliedmods.net/showthread.php?t=115768)

Pawn 3-pg 01-16-2010 14:08

[TF2] Locker Overheal (v1.1 updated 3/19/10)
 
1 Attachment(s)
Locker Overheal

Version 1.1 - March 19, 2010

Sets a player's health to 150% when touching a resupply locker in spawn. The health boost drains away just like the overheal from a medic's medigun.

Cvars:
sm_locker_overheal_enabled - 1/0

Uses the default TF2 Cvars for the medigun for the max overheal and decay duration:
sm_cvar tf_max_health_boost (default 1.5) for the max overheal
sm_cvar tf_boost_drain_time (default 15 seconds) for the duration

Commands:
None


Many thanks to CrancK for his help with this.

retsam 01-16-2010 14:24

Re: [TF2] Locker Overheal
 
Nice work. I was wondering how you were going to make health decay since it doesnt do that anymore. Looks like you just create a timer and use the stock cvar values for the values and subtract it. (I need to do this for one of my plugins as well)

Mnkras 01-16-2010 15:12

Re: [TF2] Locker Overheal
 
sweet thanks for this

onlyamd 01-17-2010 03:21

Re: [TF2] Locker Overheal
 
Plugin works great!! Anybody else having problems executing the cvars?? SM 1.3, MM 1.8

Pawn 3-pg 01-17-2010 08:28

Re: [TF2] Locker Overheal
 
Quote:

Originally Posted by onlyamd (Post 1057802)
Plugin works great!! Anybody else having problems executing the cvars?? SM 1.3, MM 1.8

Oops. The tf_ ones need to be changed with sm_cvar. I'll update the instructions.

psychonic 03-05-2010 09:06

Re: [TF2] Locker Overheal
 
@Pawn 3-pg
It looks like you forgot to tag bPluginEnabled as a bool on line 20 since you use it as one.

Also, it would be wiser to pass userid instead of client index through timers because one user could disconnect and another user connect and get same client index during the duration of the timer.

In addition, some slight optimization tips:
You can use Sourcemod's built-in MaxPlayers constant instead of making a call to the GetMaxPlayers() native.
You can use decl instead of new on your arrays (Strings and vectors) since you populate them with data before doing any other operations with them.

cybersquare420 03-12-2010 11:22

Re: [TF2] Locker Overheal
 
any chance to make this admin only... i would like to add something like this to the list of perks donators receive on my servers..

Pawn 3-pg 03-19-2010 22:38

Re: [TF2] Locker Overheal
 
Quote:

Originally Posted by psychonic (Post 1108231)
@Pawn 3-pg
It looks like you forgot to tag bPluginEnabled as a bool on line 20 since you use it as one.

Also, it would be wiser to pass userid instead of client index through timers because one user could disconnect and another user connect and get same client index during the duration of the timer.

In addition, some slight optimization tips:
You can use Sourcemod's built-in MaxPlayers constant instead of making a call to the GetMaxPlayers() native.
You can use decl instead of new on your arrays (Strings and vectors) since you populate them with data before doing any other operations with them.

I fixed the bool tag and took your suggestions and updated the plugin.

Mgis 02-10-2012 00:29

Re: [TF2] Locker Overheal (v1.1 updated 3/19/10)
 
Kind-of-a-bump!

This plugin is not working for me. Any chances of updating?

Edit:
Its not that i've not tested it before many times, 'cos I have, but after installing "Rocket Bounce" and sdkhooks needed for that, the Locker Overheal was working after restart.

luki1412 06-25-2013 16:58

Re: [TF2] Locker Overheal (v1.1 updated 3/19/10)
 
needs fixing... bugged... its not always overhealing and spams error messages


All times are GMT -4. The time now is 00:20.

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