-
Notifications
You must be signed in to change notification settings - Fork 38
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
OG bug: Obelisk keys are positioned slightly too low #2006
Comments
Also when tackling this, let's remember to fix the origin point for the drawbridge object (items 19,20,21, and 22). @lahm86 While playing with the injector, I put together a utility function that you might find handy: diff --git a/src/Types/ItemBuilder.cs b/src/Types/ItemBuilder.cs
index 300bea0..c80a9b3 100644
--- a/src/Types/ItemBuilder.cs
+++ b/src/Types/ItemBuilder.cs
@@ -34,4 +34,30 @@ public abstract class ItemBuilder : InjectionBuilder
},
};
}
+
+ protected static TRItemEdit NudgePosition<T>(TREntity<T> item, short itemIndex, short x = 0, short y = 0, short z = 0) where T : Enum
+ {
+ return new()
+ {
+ Index = itemIndex,
+ Item = new()
+ {
+ Angle = item.Angle,
+ X = item.X + x,
+ Y = item.Y + y,
+ Z = item.Z + z,
+ Room = item.Room,
+ },
+ };
+ }
+
+ public static TRItemEdit NudgePosition(TR1Level level, short itemIndex, short x = 0, short y = 0, short z = 0)
+ {
+ return NudgePosition<TR1Type>(level.Entities[itemIndex], itemIndex, x, y, z);
+ }
+
+ public static TRItemEdit NudgePosition(TR2Level level, short itemIndex, short x = 0, short y = 0, short z = 0)
+ {
+ return NudgePosition<TR2Type>(level.Entities[itemIndex], itemIndex, x, y, z);
+ }
} |
Yeah that one will also need to be raised a bit. |
lahm86
added a commit
to lahm86/TRX
that referenced
this issue
Dec 12, 2024
This fixes the angle of the drawbridge when open so that Lara's shadow isn't occluded and the artefacts aren't embedded. It also lifts the senet table and lowers the toppled chair in room 57. Resolves LostArtefacts#2006.
@lahm86 The same chair type is also present in Return to Egypt (static 151) and Temple of the Cat (static 72). |
2 tasks
Oh thanks, I always forget UB. |
lahm86
added a commit
to lahm86/TRX
that referenced
this issue
Dec 12, 2024
This fixes the angle of the drawbridge in Obelisk of Khamoon when open so that Lara's shadow isn't occluded and the artefacts aren't embedded. It also lifts the senet table and lowers the toppled chair in room 57. The toppled chair is also fixed in Return to Egypt and Temple of the Cat. Resolves LostArtefacts#2006.
lahm86
added a commit
that referenced
this issue
Dec 12, 2024
This fixes the angle of the drawbridge in Obelisk of Khamoon when open so that Lara's shadow isn't occluded and the artefacts aren't embedded. It also lifts the senet table and lowers the toppled chair in room 57. The toppled chair is also fixed in Return to Egypt and Temple of the Cat. Resolves #2006.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Copied over from 2004:
The text was updated successfully, but these errors were encountered: