Tripwire Interactive Forums

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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #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
 

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 12:10 PM.


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