Lara Traversal Check Node#1232
Conversation
To not pollute _System.lua
There was a problem hiding this comment.
Pull request overview
This PR adds a new TEN node-catalog script (Lara Traversal.lua) to detect Lara traversal modes by mapping animation state IDs into categorized state lists, plus small whitespace cleanups in existing node-catalog files.
Changes:
- Added traversal-mode state lists and traversal test helpers, plus a new conditional node
TestLaraTraversalStateinLara Traversal.lua. - Minor whitespace-only adjustments in
Lara.luaand_System.lua.
Reviewed changes
Copilot reviewed 2 out of 3 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| TombLib/TombLib/Catalogs/TEN Node Catalogs/Lara.lua | Whitespace-only change at EOF. |
| TombLib/TombLib/Catalogs/TEN Node Catalogs/Lara Traversal.lua | Adds traversal state detection tables, helper test function, and a new traversal-state conditional node. |
| TombLib/TombLib/Catalogs/TEN Node Catalogs/_System.lua | Whitespace-only cleanup at EOF. |
Comments suppressed due to low confidence (1)
TombLib/TombLib/Catalogs/TEN Node Catalogs/Lara Traversal.lua:87
- Typo in comment: "swim intertia" should be "swim inertia".
13, -- swimming idle
17, -- swim forward
18, -- swim intertia
35, -- dive
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 2 out of 3 changed files in this pull request and generated 4 comments.
Comments suppressed due to low confidence (1)
TombLib/TombLib/Catalogs/TEN Node Catalogs/Lara Traversal.lua:160
- The
LaraTraversalModetable and the SWIM traversal test contain inconsistent indentation (spaces vs tabs) and trailing whitespace (e.g., afterTIGHTROPE = 7,). Please normalize formatting to match surrounding catalog files and avoid introducing new trailing whitespace.
local LaraTraversalMode =
{
CLIMB = 0,
CRAWL = 1,
HORIZONTAL_BAR = 2,
MONKEY_SWING = 3,
POLE_VAULT = 4,
ROPE_SWING = 5,
SWIM = 6,
TIGHTROPE = 7,
}
local traversalModeTests =
{
[LaraTraversalMode.CLIMB] = function(state)
return IsStateInList(state, ladderStates)
end,
[LaraTraversalMode.CRAWL] = function(state)
return IsStateInList(state, crawlingStates)
end,
[LaraTraversalMode.HORIZONTAL_BAR] = function(state)
return IsStateInList(state, horizontalBarStates)
end,
[LaraTraversalMode.MONKEY_SWING] = function(state)
return IsStateInList(state, monkeySwingStates)
end,
[LaraTraversalMode.POLE_VAULT] = function(state)
return IsStateInList(state, poleVaultStates)
end,
[LaraTraversalMode.ROPE_SWING] = function(state)
return IsStateInList(state, ropeSwingStates)
end,
[LaraTraversalMode.SWIM] = function(state)
return IsStateInList(state, swimStates)
end,
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 3 out of 4 changed files in this pull request and generated 2 comments.
Comments suppressed due to low confidence (1)
TombLib/TombLib/Catalogs/TEN Node Catalogs/Lara Traversal.lua:127
LaraTraversalModehas inconsistent indentation and includes trailing whitespace (e.g.,ROPE_SWINGis indented differently andTIGHTROPE = 7,has extra whitespace at line end). Please normalize indentation and strip trailing whitespace so the enum table is clean and consistent.
HORIZONTAL_BAR = 2,
MONKEY_SWING = 3,
POLE_VAULT = 4,
ROPE_SWING = 5,
SWIM = 6,
TIGHTROPE = 7,
}

This pull request introduces a new traversal state detection system for Lara in the
Lara Traversal.luacatalog, providing a structured way to check Lara's movement modes. It adds enumerations and state lists for various traversal types, as well as utility functions to test Lara's current state. Additionally, a minor whitespace cleanup was made in_System.lua.Traversal State Detection System:
LaraTraversalMode) and corresponding state lists for different traversal types (e.g., climb, crawl, swim, rope swing, etc.) toLara Traversal.lua.TestLaraTraversalModeandTestLaraTraversalStatefunctions to allow checking if Lara is in a specific traversal state, based on her current animation state.TestLaraTraversalState) with documentation for use in the node system, enabling easy integration into gameplay logic.Minor Cleanup:
SetInteractionHighlightTypefunction in_System.lua.