Files
tmc/src/object/cutsceneOrchestrator.c
T
octorock 3b87c04162 Invert NENT_DEPRECATED define
To define ENT_DEPRECATED in files that still need the old entity structs.
2023-12-30 18:30:00 +01:00

24 lines
531 B
C

/**
* @file cutsceneOrchestrator.c
* @ingroup Objects
*
* @brief Cutscene Orchestrator object
*/
#include "entity.h"
#include "functions.h"
#include "hitbox.h"
void CutsceneOrchestrator(Entity* this) {
if ((this->flags & ENT_SCRIPTED) != 0) {
if (this->action == 0) {
this->action = 1;
this->hitbox = (Hitbox*)&gHitbox_2;
InitScriptForNPC(this);
} else {
ExecuteScriptAndHandleAnimation(this, NULL);
}
} else {
this->action = 1;
}
}