Tripwire Interactive Forums

Go Back   Tripwire Interactive Forums > Killing Floor Forums > Killing Floor Modifications > Coding

Reply
 
Thread Tools Display Modes
  #1  
Old 01-14-2012, 05:17 AM
stabalot stabalot is offline
Member
 
Join Date: May 2011
Posts: 60
Default question about adding a new perk

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!
Reply With Quote
  #2  
Old 01-26-2012, 07:39 AM
RuneHarle's Avatar
RuneHarle RuneHarle is offline
Senior Member
 
Join Date: Jan 2011
Location: On Steam: VelvetHarle
Posts: 304
Default

you will have to make the new stat TurretDamage and apply it to all the turrets attacks.
__________________

Projects: || The Dual Wielder ||
Reply With Quote
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 04:38 AM.


Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright ©2005 - 2013, Tripwire Interactive, LLC