Project Zomboid

Project Zomboid

683 arvostelua
Vehicle Tweaker API
2
   
Palkinto
Lisää suosikkeihin
Lisätty suosikkeihin
Poista suosikeista
Tiedostokoko
Julkaistu
Päivitetty
78.621 KB
3.7.2018 klo 10.59
23.12.2024 klo 9.46
5 muutosilmoitusta ( näytä )

Tilaa ladataksesi
Vehicle Tweaker API

Kuvaus
Compatible with B41 and B42

Inspired by and modified from DarkSlayerEX's Item Tweaker API

This modding API allows any modders to make multiple changes to any vehicles , while leaving the rest of the remaining values alone.

WARNING: For now I can't guarantee that most values tweaked are free of bugs, so use and test at your own risk.

Tested and working values: forcedColor, mass, maxSpeed, mechanicType.

For the Simplest Implementation through LUA:
-----------------------------------------------------------------------Begin File
if getActivatedMods():contains("VehicleTweakerAPI") then
require("VehicleTweaker_Core");
else return end

TweakVehicle("Base.CarNormal","mass", "8000");
TweakVehicle("Base.ModernCar","forcedColor", "1.0 0.5 0.5");
TweakVehicle("Base.Van","mechanicType", "1");

TweakVehicleArea("Base.SportsCar", "area SeatFrontLeft", "xywh = 0.6264 -0.1429 1.4725 1.4725")
-----------------------------------------------------------------------End File
For each vehicle and property you wish to change, create a new line, and place the related values in place.

There's an example mod here https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=1430481582

Join my Discord server to talk about my mods: https://discord.gg/dzbZgzXNTT
And if you can always...
[www.patreon.com]

Workshop ID: 1430463738
Mod ID: VehicleTweakerAPI
58 kommenttia
Davi GO 24.6. klo 14.59 
soul mano me salva ai meu game b42 e chapado de mods nesta ultima atualizaçao meu mini map e painel de veiculos sumirao nao sei q fazer entao talvez eles esteja dimencionados fora da tela se este for o cazo como posso trazelos novamente q arquivos devo procura por favor me ajuda ai
]
Elentári 23.7.2024 klo 2.29 
Is it somehow possible to change how much a car can pull?
hakob 18.7.2024 klo 7.55 
couldnt figure out what mod needs this, checked mod I installed same time as this (Expanded Hotwire and Autotsar Dadge), but neither of them needed this or maybe they updated back then
Jacques the Crab 16.8.2023 klo 17.26 
Thanks for the reply, if I test it out I'll come by with the results :)
soulfilcher  [tekijä] 16.8.2023 klo 9.51 
@Kitsune: I have no idea what the link was supposed to show me.

@Kyrox: I don't know, I do have an example mod called Paint it Black.

@Percyrus: Yes, it is possible to add templates, but I have not tested that in a very long time.
Jacques the Crab 16.8.2023 klo 0.14 
Hi, does this allow inserting values besides changing existing ones? Imagine I want to add the capability to craft amor and such, would this allow me to insert templates into the vehicle txt file? Thanks!
Kyrox 18.6.2023 klo 10.29 
What mods use this?
Kitsune 15.5.2023 klo 11.07 
i get tis, any idea how to fix it? https://gyazo.com/eec94f8caede926b942c6766c44e599d
Rodahtnov 12.2.2023 klo 17.57 
Changing the particular truckbed item may work, thing is it would apply to all cars using it instead of a particular one (in theory)
May have to think a diff solution ^^
soulfilcher  [tekijä] 12.2.2023 klo 17.17 
Did you try changing the item? I remember that at some point trying to change that value from inside a vehicle script was bugged. You always got the value set in the item. I can't say what is the current situation as I have not tried that for a long time.