summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas--S <info@thomas-stangl.de>2018-03-26 08:29:29 +0200
committerThomas--S <info@thomas-stangl.de>2018-03-26 08:29:29 +0200
commit7ee48e093819dc9c9e88f256d64751cc0aa96483 (patch)
tree2acbb326cd215942f29f76afaaa470fc5f8eddb9
parentcb5530c6c82a4e3409780d93d513dd32c68c4dec (diff)
downloadpipeworks-7ee48e093819dc9c9e88f256d64751cc0aa96483.tar
pipeworks-7ee48e093819dc9c9e88f256d64751cc0aa96483.tar.gz
pipeworks-7ee48e093819dc9c9e88f256d64751cc0aa96483.tar.bz2
pipeworks-7ee48e093819dc9c9e88f256d64751cc0aa96483.tar.xz
pipeworks-7ee48e093819dc9c9e88f256d64751cc0aa96483.zip
Add new `get_look_horizontal()` and `get_look_vertical()` to fake player
See minetest/minetest@fa0bbbf96df17f0d7911274ea85e5c049c20d07b
-rw-r--r--wielder.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/wielder.lua b/wielder.lua
index 51ee278..a72fba3 100644
--- a/wielder.lua
+++ b/wielder.lua
@@ -99,6 +99,8 @@ local function wielder_on(data, wielder_pos, wielder_node)
get_look_dir = delay(vector.multiply(dir, -1)),
get_look_pitch = delay(pitch),
get_look_yaw = delay(yaw),
+ get_look_horizontal = delay(yaw),
+ get_look_vertical = delay(pitch),
get_player_control = delay({ jump=false, right=false, left=false, LMB=false, RMB=false, sneak=data.sneak, aux1=false, down=false, up=false }),
get_player_control_bits = delay(data.sneak and 64 or 0),
get_player_name = delay(data.masquerade_as_owner and wielder_meta:get_string("owner") or ":pipeworks:"..minetest.pos_to_string(wielder_pos)),