Fix bugs in animation queue handling, and add animation timeouts

This commit is contained in:
2025-07-02 16:01:18 -04:00
parent c0307b970b
commit fd453e6b30
9 changed files with 251 additions and 106 deletions

View File

@@ -57,6 +57,12 @@ public:
// Animation tracker
FlxAnimTracker AnimTracker;
// Animation that is waiting to be finished.
uint64 PendingAnimationHash;
// When do we timeout the pending animation.
double PendingAnimationTimeout;
// Current Plane.
FName Plane;
@@ -66,6 +72,10 @@ public:
// True if unreal thinks this object is Near the player.
bool NearAccordingToUnreal;
// Delete the current actor.
//
void DeleteCurrentActor();
public:
// Initialize a new tangible.
//
@@ -122,6 +132,9 @@ public:
static UlxTangible *GetActorTangibleQuiet(AActor *actor);
static UlxTangible *GetActorTangibleOrLog(AActor *actor);
// Automatically update the tangible's XYZ, Plane, Facing.
//
void AutoUpdatePosition();
private: