]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/common/triggers/subs.qh
Merge branch 'Mario/teams_bitflag' into 'master'
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / triggers / subs.qh
1 #ifndef SUBS_H
2 #define SUBS_H
3
4 #define SUB_ANGLES(s)           (s).angles
5 #define SUB_VELOCITY            velocity
6 #define SUB_AVELOCITY           avelocity
7 #define SUB_ORIGIN                      origin
8 #define SUB_SETORIGIN(s,v)      setorigin((s), (v))
9 #define SUB_NEXTTHINK           nextthink
10 #define SUB_THINK(e, f)     setthink(e, f)
11 #define SUB_THUNK(e)        getthink(e)
12 #define SUB_LTIME                       ltime
13
14
15 void SUB_SetFade (entity ent, float when, float fading_time);
16 void SUB_VanishOrRemove (entity ent);
17
18 .vector         finaldest, finalangle;          //plat.qc stuff
19 .void(entity this) think1;
20 .float state;
21 .float          t_length, t_width;
22
23 .vector destvec;
24 .vector destvec2;
25
26 .float  delay;
27 .float  wait;
28 .float  lip;
29 .float  speed;
30 .float  sounds;
31 .string  platmovetype;
32 .float platmovetype_start, platmovetype_end;
33
34 //entity activator;
35
36 .string killtarget;
37
38 .vector pos1, pos2;
39 .vector mangle;
40
41 .string target2;
42 .string target3;
43 .string target4;
44 .string curvetarget;
45 .float target_random;
46 .float trigger_reverse;
47
48 // Keys player is holding
49 .float itemkeys;
50 // message delay for func_door locked by keys and key locks
51 // this field is used on player entities
52 .float key_door_messagetime;
53
54 .vector dest1, dest2;
55
56 #ifdef CSQC
57 // this stuff is defined in the server side engine VM, so we must define it separately here
58 .float takedamage;
59 const float DAMAGE_NO   = 0;
60 const float DAMAGE_YES  = 1;
61 const float DAMAGE_AIM  = 2;
62
63 float   STATE_TOP               = 0;
64 float   STATE_BOTTOM    = 1;
65 float   STATE_UP                = 2;
66 float   STATE_DOWN              = 3;
67
68 .string         noise, noise1, noise2, noise3;  // contains names of wavs to play
69
70 .float          max_health;             // players maximum health is stored here
71 #endif
72
73 #endif