From 8b203f7e9b61b8911d3cfa66811f84aa1a157e94 Mon Sep 17 00:00:00 2001 From: Hubert Tournier Date: Sun, 8 Dec 2024 21:41:37 +0100 Subject: [PATCH 1/2] Precise the return value of get_last_look_horizontal() Because the return value is not that obvious --- doc/client_lua_api.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/client_lua_api.md b/doc/client_lua_api.md index fe65dd92e..449b2c34f 100644 --- a/doc/client_lua_api.md +++ b/doc/client_lua_api.md @@ -770,7 +770,7 @@ Methods: ``` * `get_last_look_horizontal()`: - * returns last look horizontal angle + * returns last look horizontal angle in radians (can be lower than 0 or higher than 2*pi if the player has made whole turns on himself, increases counterclockwise and 0° is East) * `get_last_look_vertical()`: * returns last look vertical angle * `get_control()`: From 39b3cea6f74a2c9ba7155184820221d48bcf6d17 Mon Sep 17 00:00:00 2001 From: Hubert Tournier Date: Sun, 8 Dec 2024 22:30:28 +0100 Subject: [PATCH 2/2] Correction: providing sound media IS possible Check https://github.com/HubTou/alarm_watch for a working example. --- doc/client_lua_api.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/client_lua_api.md b/doc/client_lua_api.md index 449b2c34f..f8eca2c50 100644 --- a/doc/client_lua_api.md +++ b/doc/client_lua_api.md @@ -117,10 +117,13 @@ The main Lua script. Running this script should register everything it wants to register. Subsequent execution depends on Luanti calling the registered callbacks. -**NOTE**: Client mods currently can't provide textures, sounds, or models by +**NOTE**: Client mods currently can't provide textures, or models by themselves. Any media referenced in function calls must already be loaded (provided by mods that exist on the server). +However, sounds can be provided and used on a client machine if they are copied +in a `sounds/` directory at the same level than the `clientmods/`directory. + Naming convention for registered textual names ---------------------------------------------- Registered names should generally be in this format: