Add setting to enable mouse control by default

master
Jordan Irwin 2021-04-19 19:14:02 -07:00
parent 1948e75d28
commit e3ce04c107
3 changed files with 12 additions and 3 deletions

View File

@ -50,7 +50,7 @@ minetest.register_entity("helicopter:heli", {
hp_max = 50,
color = "#0063b0",
_passenger = nil,
_by_mouse = false,
_by_mouse = helicopter.turn_player_look,
get_staticdata = function(self) -- unloaded/unloads ... is now saved
return minetest.serialize({

View File

@ -1,6 +1,12 @@
--- Determines handling of punched helicopter.
--
-- If `false`, helicopter is destroyed. Otherwise, it is added to inventory.
-- - Default: false
-- If `false`, helicopter is destroyed. Otherwise, it is added to inventory.
-- - Default: false
helicopter.pick_up = minetest.settings:get_bool("helicopter.pick_up", false)
--- Determines default control of helicopter.
--
-- Use facing direction to turn instead of a/d keys by default.
-- - Default: false
helicopter.turn_player_look = minetest.settings:get_bool("mount_turn_player_look", false)

View File

@ -2,3 +2,6 @@
# If enabled, places helicopter in inventory instead of destroying it
# when punched.
helicopter.pick_up (Place in inventory) bool false
# Use facing direction to turn instead of a/d keys by default.
mount_turn_player_look (Turn with look direction) bool false