Go to file
Andrey01 a5efd91549
Added API info.
2019-06-25 23:31:29 +03:00
models Fixed the bus texture display and added a mod screenshot 2019-06-25 22:55:40 +03:00
textures Fixed the bus texture display and added a mod screenshot 2019-06-25 22:55:40 +03:00
LICENSE Initial commit 2019-04-28 22:08:32 +03:00
README.md Added API info. 2019-06-25 23:31:29 +03:00
api.lua Fixed the bus texture display and added a mod screenshot 2019-06-25 22:55:40 +03:00
init.lua Fixed the bus texture display and added a mod screenshot 2019-06-25 22:55:40 +03:00
mod.conf Fixed the bus texture display and added a mod screenshot 2019-06-25 22:55:40 +03:00
screenshot.png Fixed the bus texture display and added a mod screenshot 2019-06-25 22:55:40 +03:00

README.md

Advanced Vehicles

Adds smart different cars (passenger cars, trucks, buses, service). This mod introduces little API to register cars with analogical parameters that use the mod (see *API Documentation)

API Documentation

###adv_vehicles.register_vehicle(vehicle_name, vehicle_properties, vehicle_item)

vehicle_name is entity string. vehicle_properties is a table with following fields: hp_max, mass, is a property that sets a value of vehicle mass in tons. Necessary for calculating of the gravity. max_vel, measured in metres in sec. cbox, is collision box. model, textures, seats, is a table that contains a data about each seat (busy_by, pos fields). Key should be string containing a sort of seat (driver or passenger). player_eye_offset, is pos table vehicle_item is a table with item spawner data. Fields: description, inv_image, craft_recipe.

This documentation is in working progress.