mirror of
https://github.com/zeldaret/tmc
synced 2026-06-16 23:00:31 -04:00
3b87c04162
To define ENT_DEPRECATED in files that still need the old entity structs.
24 lines
531 B
C
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;
|
|
}
|
|
}
|