Restore tutorial return placement and source terrain collision eligibility
This commit is contained in:
1 parent
ca08c468ba
commit
8d60a68511
36 files changed
+991
-69
No files matched your search
@@ -85,6 +85,16 @@ public sealed class LabSimulation
|
||||
CameraEye = DesiredEye();
|
||||
}
|
||||
|
||||
/// <summary>Jimmy PostLoad423A90..423ABF restores the saved RETURN root.
|
||||
/// Yaw remains the authored STRT yaw; the source stores only XYZ here.</summary>
|
||||
public void RestoreReturnRoot(Vector3 root)
|
||||
{
|
||||
if (!float.IsFinite(root.X) || !float.IsFinite(root.Y) || !float.IsFinite(root.Z))
|
||||
throw new ArgumentOutOfRangeException(nameof(root));
|
||||
Position = root - Vector3.UnitY * rootHeight;
|
||||
CameraEye = DesiredEye();
|
||||
}
|
||||
|
||||
// EXE 0x47F940 truncates, then degree lookup masks to the 16384-entry table.
|
||||
// Table generated with modern trig; x87 bit-identical table recovery is pending.
|
||||
public static (float Sin, float Cos) Trig(float degrees)
|
||||
|
||||
Reference in new issue
Block a user