-
Notifications
You must be signed in to change notification settings - Fork 4
/
ZS_SittingDuck.d
34 lines (28 loc) · 1.1 KB
/
ZS_SittingDuck.d
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
30
31
32
33
34
//////////////////////////////////////////////////////////////////////////
// ZS_SittingDuck
// ==============
// Der NSC steht bei diesem Tagesablauf-Zustand FEST auf seinem WP
// und reagiert auf nichts. Wird verwendet, damit der NSC beim
// herannahen des Spielers von einem nahen Monster sofort mit einem
// getötet werden kann.
//////////////////////////////////////////////////////////////////////////
func void ZS_SittingDuck ()
{
PrintDebugNpc (PD_TA_FRAME, "ZS_SittingDuck");
//-------- Wahrnehmungen --------
self.senses = SENSE_SEE|SENSE_HEAR|SENSE_SMELL;
//-------- Vorbereitungen --------
AI_SetWalkmode (self, NPC_WALK);
//-------- Grobpositionierung --------
AI_GotoWP (self, self.wp); // Gehe zum Tagesablaufstart
AI_AlignToWP (self);
};
func void ZS_SittingDuck_Loop ()
{
PrintDebugNpc (PD_TA_LOOP, "ZS_SittingDuck_Loop");
AI_Wait (self, 1);
};
func void ZS_SittingDuck_End ()
{
PrintDebugNpc (PD_TA_FRAME, "ZS_SittingDuck_End");
};