Add Endemic Life Head Tracking

This commit is contained in:
GreenComfyTea committed 2024-05-06 19:08:08 +03:00
1 parent 30d858b1f8
commit d4c52617d9
6 files changed
+107 -10

No files matched your search

@@ -86,7 +86,12 @@ function this.draw()
cached_config.world_offset.z
);
local position_on_screen = draw.world_to_screen(creature.position + world_offset);
local position_on_screen;
if cached_config.settings.head_tracking then
position_on_screen = draw.world_to_screen(creature.head_position + world_offset);
else
position_on_screen = draw.world_to_screen(creature.position + world_offset);
end
if position_on_screen == nil then
goto continue;