Fix player_api eyeheight if desired

This commit also includes a few other minor fixes.
This option can be enabled/disabled at any time.
This commit is contained in:
David Leal 2022-06-28 17:09:59 -05:00
parent db51b9cfc6
commit fc16e60740
No known key found for this signature in database
GPG Key ID: 3C482B03FD220E68
6 changed files with 22 additions and 4 deletions

View File

@ -3,7 +3,7 @@ allow_defined_top = true
max_line_length = 999
globals = {
"vehicle_mash",
"vehicle_mash", "player_api",
}
read_globals = {

View File

@ -1,2 +1,6 @@
default
lib_mount
player_api
wool?
xpanes?
dye?

View File

@ -1 +1 @@
Adds many types of vehicles.
Adds many types of vehicles.

View File

@ -1,3 +1,7 @@
-- Fix `player_api` eye height model if desired
if minetest.settings:get_bool("vehicle_mash.player_api_fix") == true or minetest.settings:get_bool("vehicle_mash.player_api_fix") == nil then
player_api.registered_models["character.b3d"].animations.sit.eye_height = 1.47
end
-- get modpath
local mpath = minetest.get_modpath("vehicle_mash")

View File

@ -1,3 +1,11 @@
name = vehicle_mash
depends = default, lib_mount
description = Adds many types of vehicles.
depends = default, lib_mount, player_api
optional_depends = wool, xpanes, dye
description = """
Adds many types of vehicles:
- Normal cars.
- Boats.
- Hovercrafts.
- And mesecars.
"""

View File

@ -7,6 +7,8 @@ vehicle_mash.enable_crafts (Allows crafting vehicles) bool true
# for registering vehicles, somebody may use this option in their server.
vehicle_mash.api_mode (Disables all vehicles and only enables API functions) bool false
vehicle_mash.player_api_fix (Fix eyeheight when using cars) bool true
# CAR01's cars
vehicle_mash.enable_black_car (Enables black car) bool true