Adding body shot damage to m14

  • Please make sure you are familiar with the forum rules. You can find them here: https://forums.tripwireinteractive.com/index.php?threads/forum-rules.2334636/

tri_nitric

FNG / Fresh Meat
May 26, 2011
3
0
0
I have been working with some friends to create some custom perks for our server. I have not been able to increase the body shot damage with the m14 without increasing head shot damage as well. Is there a way to just increase the body shot damage for the m14?


193.200.158.123:7707
Come check out the server and let me know what you think
 

Gartley

Grizzled Veteran
Dec 27, 2010
2,340
349
83
UK
www.wildcardproductionstudios.co.uk
Headshot damage is worked out by the means of a multiplier. So you'd have to decrease that in proportion to the damage increase. Alternatively, add a multiplier bonus to the body shot damage. Simply raising the base damage will affect all.
 

C_Gibby

FNG / Fresh Meat
Jan 18, 2010
7,275
2,716
0
I suggest you reduce the headshot multiplier and then increase the base damage. :)
 

Psynature

FNG / Fresh Meat
Feb 15, 2011
11
1
0
Thanks for the ideas =] As it is I have given the M14 decreased headshot damage in proportion to the base damage it receives.

I did originally attempt to just give it a bodyshot damage multiplier but I couldn't get it to work

PHP:
static function float GetBodyShotDamMulti(KFPlayerReplicationInfo KFPRI, class<DamageType> DmgType)
//stuff
I dunno, fiddling with these perks is the first time I done any coding since about 7 year and I forget much ^.^