DamageMatch

Version 1.1a of DamageMatch


INTRODUCTION: 
Damage Match changes the way scoring is done. Instead of it being based on kills, it's now based on how much damage you do. For example, if you just hit someone with the pistol, you got 15 points. If you just killed someone, you got thier remaining hp and the value of killbonus. Killbonus is a new console variable that is added to your score whenever you kill someone. So if you hit some guy with a rocket that just respawned, you'll most likely kill them, getting 100 for all his hp, plus 5 more points for killbonus. (killbonus defaults to 5). If you happen to hurt yourself in ANY WAY (falling too far, getting hurt in your own explosions), then you will lose points equal to the damage you caused yourself. If you hit some guy that is wearing armor , then the armor subtracts from the damagefirst. If you kill yourself, then you will lose points equal to the suicidepenalty (another ini variable), which defaults to 5. If you wanna play regular Kingpin deathmatch, then change damagematch (the last ini variable) to 0 and go to the next level. Only the server has to have this patch.  

Killedpenalty is the penalty for being killed. When you get killed now, you lose points equal to the value of killedpenalty. The default for this is 1. 

Damagereceivedfactor is the penalty for getting damaged factor. When someone damages you you lose points equal to the value of damagereceivedfactor TIMES the damage he caused you. The default for this is 1.

Damagecausedfactor is the bonus for the damage you cause factor. When YOU damage someone else you GAIN points equal to the value of damagecausedfactor TIMES the damage you caused him. The default for this is 1.

Selfdamagefactor is the penalty for doing yourself damage factor. When YOU damage YOURSELF you LOSE points equal to the value of selfdamagefactor TIMES the damage you caused yoruself. The default for this is 1.


This makes the winner the one who caused the most damage or kills AND didn't get hit or die that much. The cool thing about the way I coded this is that you can make it just the way you want it. For Example:
With...
killbonus at 25
suicidepenalty at 50
killedpenalty at 0
damagereceivedfactor at 0
damagecausedfactor at 1
and
selfdamagefactor at 1

With...
killbonus at 1
suicidepenalty at 1
killedpenalty at 1
damagereceivedfactor at 0
damagecausedfactor at 0
and
selfdamagefactor at )
you have a normal game of kingpin except you lose one frag for being killed.

Also. In version 1.1a the new variables load from a ini called deathmatch.ini. New to this is also the ability to load map specific options using the map name (level) and the extention .ini so you could have kpdm1.ini run as a normal deathmatch with whatever fraglimit or timelimit.Kpdm2 could be a damagematch with variables above etc.

I put a limit on the variables so I'm pretty sure it's not possible to do all kinds of crazy scoring with this. 
____________________________________________________________________________ 
INSTRUCTIONS (server side only patch. You don't need to download anything unless you're the server.):
1) Download it from www.fragginrockers.com/kingpin/damagematch. 
a) version 1.1a damagematch1.1a.zip 
2) unzip damagematch.zip) into the kingpin directory 
3) type "kingpin.exe +set game damagematch" to run kingpin with the mod. 
____________________________________________________________________________ 
COMMAND SUMMARY: 

damagematch - determines if you want to use the features of the patch or not. default is 1 (0 for off)
killbonus - the bonus for kills. default is 5
suicidepenalty - the penalty for suicide. default is 5
killedpenalty - the penalty for being killed. default is 5
damagereceivedfactor - the factor by which you LOSE points for getting damaged by someone else. default is 1
damagecausedfactor - the factor by which you GAIN points for damaging someone else. default is 1
selfdamagefactor - the factor by which you LOSE points for damaging yourself. default is 1
cmd dso - Displays Server Options. 
____________________________________________________________________________ 
THANKS TO: 
Xatrix for kingpin
____________________________________________________________________________ 
COPYRIGHT & DISTRIBUTION: 
Zeppelin[FnR] mods
______________________________________________________________________________ 
VERSION INFORMATION: 
DamageMatch v1.1a - Sep 3th, 2005 
by Zeppelin[FnR] 
zeppelin@fragginrockers.com 
www.fragginrockers.com/kingpin/index.htm