• 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/

Code question about adding a new perk

stabalot

Grizzled Veteran
May 21, 2011
60
0
Hi there, i'm trying to add a new perk for serverperks v5
using the source code for demolitions perk i changed some things
to give discounts / damage multiplier for people using turrets / portalgun
instead.

i'm new to coding for KF but have coded for other games / platforms before so was able to change most stuff succesfully.

However i'm having problems with one line:

return Min(StatOther.RExplosivesDamageStat,FinalInt);


What do i need to put here instead of RExplosivesDamageStat
to make it count damage of type turret instead?

Will i need to create a new stattype for turret damage type and if so where? Where can i find statother?
or is there already one somewhere in the game code?

Or can i just put RTurretDamageStat ?

Thanks!