blob: 2931243322519867a32bafea9bcafa0a3d750ea3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
/**
* @file cutsceneOrchestrator.c
* @ingroup Objects
*
* @brief Cutscene Orchestrator object
*/
#include "entity.h"
#include "script.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;
}
}
|