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