Merge branch 'main' into dev

This commit is contained in:
MihailRis
2025-10-01 00:07:53 +03:00
23 changed files with 153 additions and 87 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ function events.emit(event, ...)
local status, newres = xpcall(func, __vc__error, ...)
if not status then
debug.error("error in event ("..event..") handler: "..newres)
else
else
result = result or newres
end
end
+5 -5
View File
@@ -67,12 +67,12 @@ function on_physics_update(delta)
mob.set_flight(player.is_flight(pid))
body:set_body_type(player.is_noclip(pid) and "kinematic" or "dynamic")
if hud and pid == hud.get_player() then
local pos = tsf:get_pos()
local rot = get_player_rotation(pid)
local front = mat4.mul(rot, {0, 0, -1})
local rot = get_player_rotation(pid)
local front = mat4.mul(rot, {0, 0, -1})
local pos = tsf:get_pos()
if hud and pid == hud.get_player() then
process_player_inputs(pid, rot, delta)
mob.look_at(vec3.add(pos, front))
end
mob.look_at(vec3.add(pos, front))
end