Project Zomboid

Project Zomboid

Ocen: 683
Vehicle Tweaker API
2
   
Przyznaj nagrodę
Ulubione
Ulubione
Usuń z ulubionych
Rozmiar pliku
Zamieszczono
Zaktualizowano
78.621 KB
3 lipca 2018 o 10:59
23 grudnia 2024 o 9:46
Listy zmian: 5 ( zobacz )

Zasubskrybuj, aby pobrać
Vehicle Tweaker API

Opis
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
Komentarzy: 58
Davi GO 24 czerwca o 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 lipca 2024 o 2:29 
Is it somehow possible to change how much a car can pull?
hakob 18 lipca 2024 o 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 sierpnia 2023 o 17:26 
Thanks for the reply, if I test it out I'll come by with the results :)
soulfilcher  [autor] 16 sierpnia 2023 o 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 sierpnia 2023 o 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 czerwca 2023 o 10:29 
What mods use this?
Kitsune 15 maja 2023 o 11:07 
i get tis, any idea how to fix it? https://gyazo.com/eec94f8caede926b942c6766c44e599d
Rodahtnov 12 lutego 2023 o 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  [autor] 12 lutego 2023 o 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.