PDA

View Full Version : Tank's Melee Bonus


Tank
12-30-2008, 02:05 PM
This is a plugin which combines two plugins. Melee bonus created originally by FireStorm and updated by Diamon Optic AND a melee score adjustment plugin.

All I need to do is make the messages dynamic, I've done it once and I'll update this one shortly. Let me know where I can improve stuff and which could be done else.

I've got some crazy idea's for this one but it will be a (slow) process till completion.

================================================== =======
Tank's Melee Bonus (version 0.1 01-12-2008)
================================================== =========
Melee Bonus - information:

Author : |B.A.M| The Tank #AoS.nl
Original: FireStorm (updated: diamond-optic)
Version : 0.1
Date : 01-12-2008

This is a combination of a plugin I wrote from memory of
an old plugin and Diamond-Optics dod_melee_bonus. I basicly
just added the plugin, so I'm only taking credit for my part.

This plugin will give clients bonuses upon a melee kill. A
standard HP bonus from dod_melee_bonus and a score adjustment
from my plugin.

-------------

To do: Add a cvar message for both kills and deaths.

================================================== =========
Melee Bonus - CVARS:
================================================== =========
activate_plugin | x
- Enables the plugin on or off.
0 = off
1 = on

meleebonus_hp | x
- Amount of health given upon a melee kill

melee_deaths | x
- Amount of deaths which should be changed

melee_kills | x
- Amount of kills which should be changed

melee_amount | x
- How many times does one must make a melee kill in order to get the bonus

================================================== =========
Melee Bonus - Installation:
================================================== =========
- Compile the tanks_melee_bonus.sma | An online compiler can be found here:
http:www.amxmodx.org/webcompiler.cgi
- Copy tanks_melee_bonus.amxx into your addons\amxmodx\plugins folder
- Add tanks_melee_bonus.amxx to the bottom of your addons\amxmodx\configs\plugins.ini
- Change the map or restart your server to start using the plugin!

================================================== =========
Melee Bonus - Notes & Credits:
================================================== =========
- Synthetic(dodplugins.net) for always helping me out.
- Feuersturm for the original plugin
- Diamond-Optic for updating the melee_bonus.
- dodplugins.net for always having the information ready when needed, much appriciated.
================================================== =======

Dr.G
12-30-2008, 02:45 PM
================================================== =========
Melee Bonus - CVARS:
================================================== =========
p_enable | x
- Enables the plugin on or off.
0 = off
1 = on

p_givehealth | x
- Amount of health given upon a melee kill

p_changedeaths | x
- Amount of deaths which should be changed

p_changekills | x
- Amount of kills which should be changed

p_amountmelee | x
- How many times does one must make a melee kill in order to get the bonus

You cant adjust a pointer!

The cvars is:


activate_plugin "1" | - Enables the plugin on or off.
meleebonus_hp "25" | - Amount of health given upon a melee kill
melee_deaths "2" | - Amount of deaths which should be changed
melee_kills "1" | - Amount of kills which should be changed
melee_amount "4" | - How many times does one must make a melee kill in order to get the bonus

Dr.G
12-30-2008, 02:52 PM
Oh and a suggestion it would be cool if the client_prints follow the cvar values... When we talked about this before in scripting help i set one of them to follow the cvar value, u can look there again if.....

Tank
12-30-2008, 04:42 PM
You cant adjust a pointer!

I just saw that, I normally don't any information on plugins I write myself since I am the author and know what it does and all. You are completely right and that was a sloppy mistake.

As far as your message:

To do: Add a cvar message for both kills and deaths.

I already planning on doing this but wanted to post to see whats else would come up, for example that pretty sloppy mistake of info on the cvars.

Edit:
changed the vars in the information, thanks for pointing that out.

Zor
12-31-2008, 01:24 PM
Hence its in Test Plugins! Heheheh...

Good one Tank! Keep at it!

Cheers!