Project Zomboid

Project Zomboid

lightweight walkie talkies
dtoxic 31 Aug, 2022 @ 2:13pm
Nice mod and a Suggestion
First,you should not be doing this by importing items to base with txt
better way and far safer (compatibility wise) is trough lua script

Find the Radio.NAME of the things you want to lower the weight and you are done


Here is an example

function Adjust(Name, Property, Value) Item = ScriptManager.instance:getItem(Name) Item:DoParam(Property.." = "..Value) end --Firearms Weight Adjust("Base.Pistol","Weight","0.5") Adjust("Base.Pistol2","Weight","0.7") Adjust("Base.Pistol3","Weight","0.8") Adjust("Base.VarmintRifle","Weight","1.4") Adjust("Base.AssaultRifle","Weight","1.8") Adjust("Base.AssaultRifle2","Weight","1.6") Adjust("Base.HuntingRifle","Weight","1.5") Adjust("Base.Revolver","Weight","0.8") Adjust("Base.Revolver_Long","Weight","1.1") Adjust("Base.Revolver_Short","Weight","0.5") Adjust("Base.Shotgun","Weight","2.0") Adjust("Base.ShotgunSawnoff","Weight","1.8") Adjust("Base.DoubleBarrelShotgun","Weight","2.2") Adjust("Base.DoubleBarrelShotgunSawnoff","Weight","1.5")
Last edited by dtoxic; 31 Aug, 2022 @ 2:42pm
< >
Showing 1-2 of 2 comments
kotamine  [developer] 27 Nov, 2022 @ 9:23am 
thank you for the suggestion! i made it use a lua script instead
dtoxic 27 Nov, 2022 @ 10:19am 
No problem :)
< >
Showing 1-2 of 2 comments
Per page: 1530 50