blob: c95b4d69659fb4a4537c43e288ae18cde1b44917 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
/**
* @file carlov.c
* @ingroup NPCs
*
* @brief Carlov NPC
*/
#include "entity.h"
#include "npc.h"
#include "room.h"
#include "sound.h"
#include "script.h"
void Carlov(Entity* this) {
if (this->action == 0) {
this->action++;
InitScriptForNPC(this);
} else {
ExecuteScriptAndHandleAnimation(this, NULL);
}
if ((this->frame & 0x10) != 0) {
this->frame &= ~0x10;
EnqueueSFX(SFX_PLACE_OBJ);
InitScreenShake(16, 0);
}
if ((this->frame & 0x20) != 0) {
this->frame &= ~0x20;
EnqueueSFX(SFX_PLY_JUMP);
}
}
|