mirror of
https://github.com/OgelGames/fakelib.git
synced 2025-06-27 22:20:39 +02:00
update for new functions
This commit is contained in:
parent
10c67ce6af
commit
b565ca2c40
24
player.lua
24
player.lua
@ -141,6 +141,8 @@ function fake_player:get_player_control()
|
|||||||
end
|
end
|
||||||
controls.LMB = controls.dig
|
controls.LMB = controls.dig
|
||||||
controls.RMB = controls.place
|
controls.RMB = controls.place
|
||||||
|
controls.movement_x = 0
|
||||||
|
controls.movement_y = 0
|
||||||
return controls
|
return controls
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -236,6 +238,10 @@ function fake_player.get_breath()
|
|||||||
return 10
|
return 10
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function fake_player.get_camera()
|
||||||
|
return {mode = "any"}
|
||||||
|
end
|
||||||
|
|
||||||
function fake_player.get_children()
|
function fake_player.get_children()
|
||||||
return {}
|
return {}
|
||||||
end
|
end
|
||||||
@ -255,6 +261,14 @@ function fake_player.get_eye_offset()
|
|||||||
return vector.zero(), vector.zero(), vector.zero()
|
return vector.zero(), vector.zero(), vector.zero()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function fake_player.get_flags()
|
||||||
|
return {
|
||||||
|
breathing = true,
|
||||||
|
drowning = true,
|
||||||
|
node_damage = true,
|
||||||
|
}
|
||||||
|
end
|
||||||
|
|
||||||
function fake_player.get_formspec_prepend()
|
function fake_player.get_formspec_prepend()
|
||||||
return ""
|
return ""
|
||||||
end
|
end
|
||||||
@ -457,15 +471,17 @@ do
|
|||||||
"settexturemod", "setvelocity", "setyaw",
|
"settexturemod", "setvelocity", "setyaw",
|
||||||
-- Non-functional get/set functions
|
-- Non-functional get/set functions
|
||||||
"add_velocity", "get_attach", "get_attribute", "get_day_night_ratio",
|
"add_velocity", "get_attach", "get_attribute", "get_day_night_ratio",
|
||||||
|
"get_observers", "get_effective_observers",
|
||||||
"hud_add", "hud_change", "hud_get", "hud_remove", "hud_set_flags",
|
"hud_add", "hud_change", "hud_get", "hud_remove", "hud_set_flags",
|
||||||
"hud_set_hotbar_image", "hud_set_hotbar_itemcount",
|
"hud_set_hotbar_image", "hud_set_hotbar_itemcount",
|
||||||
"hud_set_hotbar_selected_image", "override_day_night_ratio",
|
"hud_set_hotbar_selected_image", "override_day_night_ratio",
|
||||||
"set_animation", "set_animation_frame_speed", "set_armor_groups",
|
"set_animation", "set_animation_frame_speed", "set_armor_groups",
|
||||||
"set_attach", "set_attribute", "set_bone_override", "set_bone_position",
|
"set_attach", "set_attribute", "set_bone_override", "set_bone_position",
|
||||||
"set_breath", "set_clouds", "set_detach", "set_eye_offset",
|
"set_breath", "set_camera", "set_clouds", "set_detach",
|
||||||
"set_formspec_prepend", "set_fov", "set_hp", "set_inventory_formspec",
|
"set_eye_offset", "set_formspec_prepend", "set_flags", "set_fov",
|
||||||
"set_lighting", "set_local_animation", "set_minimap_modes", "set_moon",
|
"set_hp", "set_inventory_formspec", "set_lighting",
|
||||||
"set_nametag_attributes", "set_physics_override",
|
"set_local_animation", "set_minimap_modes", "set_moon",
|
||||||
|
"set_nametag_attributes", "set_observers", "set_physics_override",
|
||||||
"set_properties", "set_sky", "set_stars", "set_sun",
|
"set_properties", "set_sky", "set_stars", "set_sun",
|
||||||
-- Other functions that do nothing
|
-- Other functions that do nothing
|
||||||
"punch", "respawn", "right_click", "send_mapblock",
|
"punch", "respawn", "right_click", "send_mapblock",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user