questions about file names
#1
so... i started creating a few mods with the pdmod tool. i already made one or two simple texture mods. now i wanted to replace the "Raptor Polymer Body" for the AUG with the Standard Body, but i cant figure out which file these are. the closest i got is "wpn_fps_aug_body_aug.unit"

i know this is propably a completely noob question, but i hope you guys can help me :)
Reply
#2
You can't replace body using .pdmod. For this need lua script. I replace body using this script

if not tweak_data then return end

if not mycustomizer then
local tweak_factory = tweak_data.weapon.factory

tweak_factory.parts.wpn_fps_aug_body_f90.unit = "units/payday2/weapons/wpn_fps_ass_aug_pts/wpn_fps_aug_body_aug"
tweak_factory.parts.wpn_fps_aug_body_f90.third_unit = "units/payday2/weapons/wpn_third_ass_aug_pts/wpn_third_ass_aug_body_aug"

mycustomizer = true
end
Reply
#3
(05-17-2015, 05:27 PM)Wages of Sin Wrote: You can't replace body using .pdmod. For this need lua script. I replace body using this script

if not tweak_data then return end

if not mycustomizer then
local tweak_factory = tweak_data.weapon.factory

tweak_factory.parts.wpn_fps_aug_body_f90.unit = "units/payday2/weapons/wpn_fps_ass_aug_pts/wpn_fps_aug_body_aug"
tweak_factory.parts.wpn_fps_aug_body_f90.third_unit = "units/payday2/weapons/wpn_third_ass_aug_pts/wpn_third_ass_aug_body_aug"

mycustomizer = true
end
You can easily do it using a pdmod. But doing it through lua is much better ;)
Reply
#4
ok i managed to do it, thanks for the help guys!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)