Project Zomboid

Project Zomboid

lightweight walkie talkies
dtoxic 31. aug. 2022 kl. 14:13
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")
Sidst redigeret af dtoxic; 31. aug. 2022 kl. 14:42
< >
Viser 1-2 af 2 kommentarer
kotamine  [udvikler] 27. nov. 2022 kl. 9:23 
thank you for the suggestion! i made it use a lua script instead
dtoxic 27. nov. 2022 kl. 10:19 
No problem :)
< >
Viser 1-2 af 2 kommentarer
Per side: 1530 50