Raised This Month: $95 Target: $400
 23% 

OverKill, rewarding a percentage of overkills.


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Fun Stuff        Approver:   Emp` (115)
TwN
Junior Member
Join Date: Apr 2008
Location: Netherlands
Old 05-04-2008 , 10:49   OverKill, rewarding a percentage of overkills.
Reply With Quote #1

OverKill

Update: now checking if not killed by trigger_hurt, falling damage etc. (hopefully

This plugin rewards hp to the killer when he made an overkill.
Eg.: victim has 50hp, get hits for 100damage. Overkilled with 50hp. This number (50) gets changed by certain percentages. On the end the user will get 31.25 hp (with the defualt settings). If the killer had 75hp he would have 101hp after.

There are more ways to achieve an inverted progressive percentage. Used the simplest cleanest way.

Credits (in random order):
sawce
Yamikaitou
connorr
kingpin (idea of saving hp, also borrowed some of that code )
Greenberet
Howdy

Note, I like to use inline comments more, dno why...

Similair plugins
hitreward (mistagee)
repay (kingpin port)

Finally added colors.

ToDo:
Nothing!
Attached Files
File Type: sma Get Plugin or Get Source (overkill.sma - 1094 views - 6.5 KB)

Last edited by TwN; 02-08-2009 at 13:36. Reason: added color.
TwN is offline
lIl_sAiNt
BANNED
Join Date: Nov 2007
Location: krypton
Old 05-04-2008 , 11:30   Re: OverKill, rewarding a percentage of overkills.
Reply With Quote #2

lol
lIl_sAiNt is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 05-04-2008 , 13:06   Re: OverKill, rewarding a percentage of overkills.
Reply With Quote #3

Upload it within a day (unless another mod trashes this first) or this will be trashed
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (intervening in a thread, asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
TwN
Junior Member
Join Date: Apr 2008
Location: Netherlands
Old 05-04-2008 , 21:32   Re: OverKill, rewarding a percentage of overkills.
Reply With Quote #4

Posted the sma, tested again, compiles with one warning,
~\overkill.sma(140) : warning 213: tag mismatch

Fixing (read changing) it with floatround() screws up, returning 0.

@edit, and don't feel like including fakemeta for this, will do if requested, but seems too imba.
@edit2, fixed, thx sawce

Last edited by TwN; 05-05-2008 at 05:36.
TwN is offline
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 05-27-2008 , 01:26   Re: OverKill, rewarding a percentage of overkills.
Reply With Quote #5

You got a runtime error on set_user_health, ill drop the error once its debugged, i just happen to notice it in the logs.

Also you have no limit to the hp you get?.. lol
You should make a cvar for if you choose to go over 100 hp or not

Edit:
L 05/28/2008 - 11:12:11: [FUN] Player out of range (0)
L 05/28/2008 - 11:12:11: [AMXX] Displaying debug trace (plugin "overkill.amxx")
L 05/28/2008 - 11:12:11: [AMXX] Run time error 10: native error (native "set_user_health")
L 05/28/2008 - 11:12:11: [AMXX] [0] overkill.sma:verkill (line 144)
__________________

Last edited by bmann_420; 05-28-2008 at 23:12.
bmann_420 is offline
TwN
Junior Member
Join Date: Apr 2008
Location: Netherlands
Old 05-29-2008 , 11:22   Re: OverKill, rewarding a percentage of overkills.
Reply With Quote #6

Quote:
Originally Posted by bmann_420 View Post
You got a runtime error on set_user_health, ill drop the error once its debugged, i just happen to notice it in the logs.

Also you have no limit to the hp you get?.. lol
You should make a cvar for if you choose to go over 100 hp or not

Edit:
L 05/28/2008 - 11:12:11: [FUN] Player out of range (0)
L 05/28/2008 - 11:12:11: [AMXX] Displaying debug trace (plugin "overkill.amxx")
L 05/28/2008 - 11:12:11: [AMXX] Run time error 10: native error (native "set_user_health")
L 05/28/2008 - 11:12:11: [AMXX] [0] overkill.sma:verkill (line 144)
If you would please update to the newest version, (currently there for quite some time...), those errors have occured in the previous version and are fixed now. It is tested on 3 different OS's with real players and had no one error on the last version.

Please update
-TwN

P.S. the option to cap the total life and the life gain are also in this latest version (that is how I noticed you didn't update)
TwN is offline
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 05-29-2008 , 17:32   Re: OverKill, rewarding a percentage of overkills.
Reply With Quote #7

O i c, it might help to have a small changelog up their. lol
(And a list of commands and cvars would be helpful)
__________________
bmann_420 is offline
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 05-31-2008 , 05:17   Re: OverKill, rewarding a percentage of overkills.
Reply With Quote #8

Im still getting those errors on the newest version.
__________________
bmann_420 is offline
TwN
Junior Member
Join Date: Apr 2008
Location: Netherlands
Old 06-04-2008 , 17:12   Re: OverKill, rewarding a percentage of overkills.
Reply With Quote #9

Quote:
Originally Posted by bmann_420 View Post
Im still getting those errors on the newest version.
Can't seem to reproduce the problem, uploading a different version wich can be a possible fix, let me know!

-Twan
TwN is offline
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 06-04-2008 , 17:23   Re: OverKill, rewarding a percentage of overkills.
Reply With Quote #10

Alright, ill try it out and let yea know

EDit:
L 06/04/2008 - 16:01:00: [FUN] Player out of range (0)
L 06/04/2008 - 16:01:00: [AMXX] Displaying debug trace (plugin "overkill.amxx")
L 06/04/2008 - 16:01:00: [AMXX] Run time error 10: native error (native "set_user_health")
L 06/04/2008 - 16:01:00: [AMXX] [0] overkill_.sma:verkill (line 132)
__________________

Last edited by bmann_420; 06-04-2008 at 20:13.
bmann_420 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 23:11.


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