From f470cb7270560a26afff0a0eadfc69070236c109 Mon Sep 17 00:00:00 2001 From: paramat Date: Mon, 20 Nov 2017 01:45:57 +0000 Subject: Zoom: Set zoom FOV per-player using a player object property Remove player object property 'can zoom'. Add player object property 'zoom fov'. Remove clientside setting for 'zoom fov'. Object property default is 15 degrees in creative mode, zoom disabled in survival mode. Needed due to zoom now loading and/or generating distant world according to zoom FOV. Update object properties serialisation version to 3. --- doc/lua_api.txt | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'doc') diff --git a/doc/lua_api.txt b/doc/lua_api.txt index 08527c196..24e928d85 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -4319,8 +4319,13 @@ Definition tables -- ^ For players: Defaults to `minetest.PLAYER_MAX_HP_DEFAULT` breath_max = 0, -- ^ For players only. Defaults to `minetest.PLAYER_MAX_BREATH_DEFAULT` - can_zoom = true, - -- ^ For players only. Enables the zoom feature. Defaults to true + zoom_fov = 0.0, + -- ^ For players only. Zoom FOV in degrees. + -- Note that zoom loads and/or generates world beyond the server's maximum + -- send and generate distances, so acts like a telescope. + -- Smaller zoomFOV values increase the distance loaded and/or generated. + -- Defaults to 15 in creative mode, 0 in survival mode. + -- zoom_fov = 0 disables zooming for the player. eye_height = 1.625, -- ^ For players only. Camera height above feet position in nodes. Defaults to 1.625 physical = true, -- cgit v1.2.3