Skip to content

Add TR3 bats emitter#4

Merged
AlexxxQ merged 1 commit into
Add-(198)TR3_BATS_EMITTER-entityfrom
codex/tr3-bats-emitter-port
May 11, 2026
Merged

Add TR3 bats emitter#4
AlexxxQ merged 1 commit into
Add-(198)TR3_BATS_EMITTER-entityfrom
codex/tr3-bats-emitter-port

Conversation

@AlexxxQ
Copy link
Copy Markdown
Owner

@AlexxxQ AlexxxQ commented May 11, 2026

Summary

  • Add TR3_BATS_EMITTER as object slot 198 and expose it to TEN object IDs.
  • Port the TR3 bat swarm emitter logic and hook it into TR3 object initialization and the game update loop.
  • Add the custom sprite UV path used by the TR3 bat triangles so their sprite texture orientation matches the original emitter.

Verification

  • Built TombEngine locally as Release|x64 before preparing the PR package.
  • Copied the resulting build to C:\Users\bobic\Downloads\normals\new tr3 bats\Engine and verified the copied TombEngine.exe hash matched the build output.

@AlexxxQ AlexxxQ merged commit 2b0fec4 into Add-(198)TR3_BATS_EMITTER-entity May 11, 2026
1 check passed
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c80814899f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +73 to +74
if (Objects[ID_TR3_BATS_EMITTER].loaded)
ClearTr3Bats();
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Reset TR3 bat swarm state during level cleanup

Tr3Bats is only cleared from InitializeTr3BatsEmitter(), so swarm state survives until an emitter item is initialized. If a player leaves a level with active TR3 bats and loads a level where the slot is loaded but no emitter item runs initialization, stale Tr3Bats entries remain On and continue updating/rendering unexpectedly. This needs a global reset path (like other swarms) instead of relying on per-item initialization.

Useful? React with 👍 / 👎.

@AlexxxQ AlexxxQ deleted the codex/tr3-bats-emitter-port branch May 11, 2026 18:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant