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