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