Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decompile skidoo #1733

Merged
merged 22 commits into from
Oct 22, 2024
Merged

Decompile skidoo #1733

merged 22 commits into from
Oct 22, 2024

Conversation

rr-
Copy link
Collaborator

@rr- rr- commented Oct 22, 2024

Checklist

  • I have read the coding conventions
  • I have added a changelog entry about what my pull request accomplishes, or it is an internal change

Description

#1691

@rr- rr- added Internal The invisible stuff TR2 labels Oct 22, 2024
@rr- rr- self-assigned this Oct 22, 2024
@rr- rr- requested review from a team as code owners October 22, 2024 09:37
@rr- rr- requested review from lahm86, walkawayy and aredfan and removed request for a team October 22, 2024 09:37
Copy link

github-actions bot commented Oct 22, 2024

fx->object_id = O_EXPLOSION;
}

Effect_ExplodingDeath(g_Lara.skidoo, ~SKIDOO_GUN_MESH, 0);
Copy link
Collaborator

Choose a reason for hiding this comment

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

If either the red or black skidoo explodes, you see the main part of the red mesh appear. In OG, you only see "side bits" of the model fly off. Possibly the mesh_bits here aren't quite right for this call?

image

Copy link
Collaborator Author

@rr- rr- Oct 22, 2024

Choose a reason for hiding this comment

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

Thanks – the value indeed was wrong, rather than ~4 it should've been -4 or ~(4 - 1). I have pushed a correction, but I'm unable to test it at the moment and would appreciate info if it was enough to fix the issue.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

BTW the name SKIDOO_GUN_MESH I think is wrong and should be changed – but I don't fully understand its usage. For sure it has to do with the track mesh, but I'm not certain as to why track_mesh & 4 yields a truthy value for armed snowmobiles and a falsy value for normal snowmobiles.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Hmm, I don't follow it either TBH. Will need some studying.

Copy link
Collaborator

@lahm86 lahm86 left a comment

Choose a reason for hiding this comment

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

LGTM

@aredfan
Copy link
Collaborator

aredfan commented Oct 22, 2024

There's a desync in demo 3 - the skidoo misses a small jump 3 seconds into the video.

Latest dev snapshot:

Video.1.mp4

PR:

Video.2.mp4

@rr-
Copy link
Collaborator Author

rr- commented Oct 22, 2024

@aredfan fixed

Copy link
Collaborator

@aredfan aredfan left a comment

Choose a reason for hiding this comment

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

@aredfan fixed

Confirmed 👍

@rr- rr- merged commit 229c17c into develop Oct 22, 2024
3 checks passed
@rr- rr- deleted the tr2-decomp-skidoo branch October 22, 2024 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Internal The invisible stuff TR2
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants