Raised This Month: $100 Target: $400
 25% 

Health Boost 1.5


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Fun Stuff        Approver:   devicenull (200)
twistedeuphoria
Veteran Member
Join Date: Jul 2004
Old 09-04-2004 , 21:36   Health Boost 1.5
Reply With Quote #1

This plugin gives you the ability to gain life over time.
There are now two styles:
Style 0 is a slower version. It has much less impact on the game. In style 0 you do not lose boost but you gain at a much slower rate.
Style 1 is the same as before, quick boost, and a large impact on the game.

Cvars:
amx_hb_rl (default 180.0; in seconds) - The amount of time a player gets noclip and godmode once they reach 10,000,000 boost in style 1.
amx_hb_saved(default 1; 1|0) - Vault saved boost. Saves in a different way for each style so you can use both and not have any unfair advantage.
amx_hb_style(default 0; 0|1) - Style of health boost. As mentioned above 0 has a lot less impact(0 haha) while 1 is the old style.
amx_hb_auto (default 1; 1|0) - Set whether or not to automatically turn on a player's boost when they enter the server.

Console Commands:
healthboost - For everybody, the on|off switch for life gain.
boostam - For everybody, find out how much boost you have.
amx_setboost - ADMIN_KICK level, set a player's boost.
amx_getboost - ADMIN_SLAY level, get a player's boost.
amx_giveboost - ADMIN_KICK level, give a player boost(or take it away.)

Say Commands:
/boostam - Same as console command, get how much boost you have.
/boosthelp - Display some help for the plugin.

Have Fun!

Thanks to: [email protected], BAILOPAN & Votorx for their help.
Attached Files
File Type: sma Get Plugin or Get Source (healthboost.sma - 3015 views - 7.7 KB)
__________________
twistedeuphoria is offline
Peli
Veteran Member
Join Date: Mar 2004
Location: San Diego, CA
Old 09-04-2004 , 21:49  
Reply With Quote #2

haven't tested it but it sounds nice , good job.
Peli is offline
Send a message via MSN to Peli
twistedeuphoria
Veteran Member
Join Date: Jul 2004
Old 09-05-2004 , 18:11  
Reply With Quote #3

Thanks
Update:
Added cvar amx_brl to control the length of time(in seconds) a person gets godmode and noclip.
Added say(and say_team) commands /boostam and /boosthelp. /boostam does the same thing the conosle command does-displays the amount of boost you have. /boosthelp displays help for the plugin in a chat form.
__________________
twistedeuphoria is offline
twistedeuphoria
Veteran Member
Join Date: Jul 2004
Old 09-05-2004 , 21:54  
Reply With Quote #4

Another update today :
Added cvar "amx_storedboost"(default 0) - set to 1 to save boost to vault. Stored boost does not go below 0. The added boost you get when you connect(50) is removed when you disconnect(does not go below 0).
__________________
twistedeuphoria is offline
Peli
Veteran Member
Join Date: Mar 2004
Location: San Diego, CA
Old 09-06-2004 , 00:16  
Reply With Quote #5

I remember I was making something similar to this but I got confused Nice to see you made it , I like this plugin.
Peli is offline
Send a message via MSN to Peli
twistedeuphoria
Veteran Member
Join Date: Jul 2004
Old 09-06-2004 , 16:36  
Reply With Quote #6

I'm glad you like it .
Update:
Added 3 commands
amx_changeboost <player> <boost> - Changes a player's boost.
amx_getboost <player> - Gets a player's boost.
amx_giveboost <player> <boostchange> - Works with positive and negative numbers.

Thanks to BAILOPAN and Votorx for helping me with getting the commands to accept partial names.
__________________
twistedeuphoria is offline
twistedeuphoria
Veteran Member
Join Date: Jul 2004
Old 09-10-2004 , 00:11  
Reply With Quote #7

Update:
Added new style. Check first post.
__________________
twistedeuphoria is offline
Frenchy
New Member
Join Date: Mar 2004
Old 04-14-2005 , 21:17  
Reply With Quote #8

Could you put a max health limit in here somewhere? I have this plugin runing on TFC and if the person sits in spawn a few minutes he comes out with 500+ health and is too hard to kill. Id like to have it go to say 300 max health then stop. Thank you.

On another note...

I run this on Svencoop and TFC and on both when the player dies, the plugin seems to kill him twice. And worse off in sven it kills him every few seconds until he respawns. Very annoying. =\ Any ideas why this happens?

Also..when i set amx_hb_style to 1, the health stops going up after about 4 or 5 minutes into the map. And when you do /boostam after 4 or 5 minutes it just says 0. Its like a few minutes into the map the plugins just stops working when amx_hb_style is set to 1?
Frenchy is offline
twistedeuphoria
Veteran Member
Join Date: Jul 2004
Old 04-15-2005 , 20:25  
Reply With Quote #9

I'll bet you've gained more boost than the plugin can handle in a single variable. I was thinking about touching this up and this is a good reason to. Also, with the respawning and death bugs, it works fine without the plugin?
__________________
twistedeuphoria is offline
Frenchy
New Member
Join Date: Mar 2004
Old 04-16-2005 , 21:03  
Reply With Quote #10

Yeah. The death bug only happens when i have this plugin on.

I dont read the posts here too much and if you wanted to speed things up in fixing these few bugs...you could hop in my IRC channel by clicking the folowing link..

http://www.frenchys-pit.com/modules.php?name=ChatRoom

Or if you have IRC installed its channel #Frenchys on the gamesurge servers. Thanks for replying!
Frenchy 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 17:47.


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