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.
< >
Zobrazeno 16 z 6 komentářů
See if it doesn't overwrite by workshop re-downloading. Also is that on single player? and what's the path of the file?
I applied the changes to both the files in the workshopfolder and in the cachefolder
How do you edit the file?
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.
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
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.
< >
Zobrazeno 16 z 6 komentářů
Na stránku: 1530 50