]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/server/monsters/lib/defs.qh
Replace monster_delayedattack mess with defer
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / monsters / lib / defs.qh
1 .float(float attack_type) monster_attackfunc;
2 const float MONSTER_ATTACK_MELEE        = 1;
3 const float MONSTER_ATTACK_RANGED       = 2;
4
5 .float candrop;
6
7 .float attack_range;
8
9 .float spawn_time; // stop monster from moving around right after spawning
10
11 .string oldtarget2;
12 .float lastshielded;
13
14 const float MONSTER_RESPAWN_DEATHPOINT = 8; // re-spawn where we died
15
16 .float monster_respawned; // used to make sure we're not recounting respawned monster stats
17
18 float monsters_spawned;
19
20 const float MONSTERSKILL_NOTEASY = 256; // monster will not spawn on skill <= 2
21 const float MONSTERSKILL_NOTMEDIUM = 512; // monster will not spawn on skill 3
22 const float MONSTERSKILL_NOTHARD = 1024; // monster will not spawn on skill 4
23 const float MONSTERSKILL_NOTINSANE = 2048; // monster will not spawn on skill 5
24 const float MONSTERSKILL_NOTNIGHTMARE = 4096; // monster will not spawn on skill >= 6
25
26 // new flags
27 const float MONSTERFLAG_MINIBOSS = 1;  // monster spawns as mini-boss (also has a chance of naturally becoming one)
28 const float MONSTERFLAG_APPEAR = 2; // delay spawn until triggered
29 const float MONSTERFLAG_NORESPAWN = 4;
30 const float MONSTERFLAG_SPAWNED = 512; // flag for spawned monsters
31
32 .float msound_delay; // restricts some monster sounds
33 .string msound_idle;
34 .string msound_death;
35 .string msound_attack_melee;
36 .string msound_attack_ranged;
37 .string msound_spawn;
38 .string msound_sight;
39 .string msound_pain;
40
41 .void() monster_spawnfunc;
42 .void() monster_die;
43
44 .float monster_movestate; // used to tell what the monster is currently doing
45 const float MONSTER_MOVE_OWNER = 1; // monster will move to owner if in range, or stand still
46 const float MONSTER_MOVE_WANDER = 2; // monster will ignore owner & wander around
47 const float MONSTER_MOVE_SPAWNLOC = 3; // monster will move to its spawn location when not attacking
48 const float MONSTER_MOVE_NOMOVE = 4; // monster simply stands still
49 const float MONSTER_MOVE_ENEMY = 5; // used only as a movestate
50
51 const float MONSTER_STATE_ATTACK_LEAP = 1;
52 const float MONSTER_STATE_ATTACK_MELEE = 2;