]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/server/monsters/defs.qc
initial checkin from nexuiz svn r8756
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / monsters / defs.qc
1 .entity movetarget;
2 .float pausetime;
3
4 .void()         th_stand;
5 .void()         th_walk;
6 .void()         th_run;
7 .float()        th_missile; // LordHavoc: changed from void() to float(), returns true if attacking
8 .void()         th_melee;
9 //.void(entity attacker, float damage, float damgtype, string dethtype)           th_pain; // TODO Nexuiz uses event_damage
10 //.void()         th_die; // TODO never called directly by Nexuiz
11 .entity         oldenemy;               // mad at this player before taking damage
12 entity  newmis;                 // launch_spike sets this after spawning it
13
14 // range values
15 float   RANGE_MELEE                             = 0;
16 float   RANGE_NEAR                              = 1;
17 float   RANGE_MID                               = 2;
18 float   RANGE_FAR                               = 3;
19
20 float DMG_KNIGHT_MELEE_BASE           =    0;
21 float DMG_KNIGHT_MELEE_RANDOM1        =    3;
22 float DMG_KNIGHT_MELEE_RANDOM2        =    3;
23 float DMG_KNIGHT_MELEE_RANDOM3        =    3;
24
25 .float          show_hostile; 
26         // set to time+0.2 whenever a client fires a
27         // weapon or takes damage.  Used to alert
28         // monsters that otherwise would let the player go
29
30 float movedist;
31 .float lefty;
32 .float search_time;
33 .float attack_state;
34
35 float   AS_STRAIGHT             = 1;
36 float   AS_SLIDING              = 2;
37 float   AS_MELEE                = 3;
38 float   AS_MISSILE              = 4;
39
40 float SKILL4_MINALPHA         = 0.4;
41
42 float monsterwander;
43 /*
44         monsterwander = cvar("monsterwander");
45         // monsterwander is always on in skill 5
46         if (skill >= 5)
47                 monsterwander = TRUE;
48 */
49
50 .float candrown;
51
52 .void(vector org, float bodydamage, float armordamage, vector vel, float damgtype) bleedfunc;
53 void(vector org, float bodydamage, float armordamage, vector vel, float damgtype) genericbleedfunc;