Killing Floor 2

Killing Floor 2

Zedternal
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.
< >
Viser 1-6 af 6 kommentarer
Zukovsky 28. mar. 2020 kl. 18: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 28. mar. 2020 kl. 20:31 
I applied the changes to both the files in the workshopfolder and in the cachefolder
Zukovsky 28. mar. 2020 kl. 21:40 
How do you edit the file?
George Droyd MK77 28. mar. 2020 kl. 22: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 28. mar. 2020 kl. 22: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 29. mar. 2020 kl. 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.
< >
Viser 1-6 af 6 kommentarer
Per side: 1530 50