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:
parent
db51b9cfc6
commit
fc16e60740
@ -3,7 +3,7 @@ allow_defined_top = true
|
||||
max_line_length = 999
|
||||
|
||||
globals = {
|
||||
"vehicle_mash",
|
||||
"vehicle_mash", "player_api",
|
||||
}
|
||||
|
||||
read_globals = {
|
||||
|
@ -1,2 +1,6 @@
|
||||
default
|
||||
lib_mount
|
||||
player_api
|
||||
wool?
|
||||
xpanes?
|
||||
dye?
|
||||
|
4
init.lua
4
init.lua
@ -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")
|
||||
|
12
mod.conf
12
mod.conf
@ -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.
|
||||
"""
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user