Killing Floor 2

Killing Floor 2

Zedternal
George Droyd MK77 2020 年 3 月 8 日 下午 1:33
Customize perks
if i want to change a perk lets say the SWAT so that its magazine size increase only applies to SWAT weapons how could i do that?

i tried to modify the zedternal.u file and changed this:

static simulated function ModifyMagSizeAndNumberPassive( out float magazineCapacityFactor, int upgLevel)
{
magazineCapacityFactor += default.MagSize * upgLevel;
}

under the line:

Class WMUpgrade_Perk_SWAT extends WMUpgrade_Perk;

into this:

static simulated function ModifyMagSizeAndNumberPassive( out float magazineCapacityFactor, int upgLevel)
{
if (IsWeaponOnSpecificPerk( MyKFW, class'KFgame.KFPerk_SWAT') || IsDamageTypeOnSpecificPerk( DamageType, class'KFgame.KFPerk_SWAT'))
magazineCapacityFactor += default.MagSize * upgLevel;
}

but it didnt work and it didnt change anything even when i completely delete the code the changes dont apply to my game.
< >
目前顯示第 1-6 則留言,共 6
Zukovsky 2020 年 3 月 28 日 下午 6:44 
See if it doesn't overwrite by workshop re-downloading. Also is that on single player? and what's the path of the file?
George Droyd MK77 2020 年 3 月 28 日 下午 8:31 
I applied the changes to both the files in the workshopfolder and in the cachefolder
Zukovsky 2020 年 3 月 28 日 下午 9:40 
How do you edit the file?
George Droyd MK77 2020 年 3 月 28 日 下午 10:37 
just notepad. I think thats the issue but this kind of stuff isnt ez to find i guess i have to unpack the file instead or something but i dont know how.
George Droyd MK77 2020 年 3 月 28 日 下午 10:40 
on the tripwire forums i found a couple of discussions that had the right title but just lead to other threads that where removed or used for something else at that point
Zukovsky 2020 年 3 月 29 日 下午 12:47 
Join the zedternal discord there are source files uploaded there you can edit them and then compile using workshoop upload tools. Just get Killing floor 2 SDK files and when opening you will have a choice to open workshoop tool. Anyways there are lots of tutorials on the web how to de-compile/compile files. I'm actually pretty much at the same stage as yourself, trying to edit zedternal files.
< >
目前顯示第 1-6 則留言,共 6
每頁顯示: 1530 50