]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/common/triggers/subs.qh
Merge branch 'master' into Mirio/balance
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / triggers / subs.qh
1 #pragma once
2
3 #define SUB_ANGLES(s)           (s).angles
4 #define SUB_VELOCITY            velocity
5 #define SUB_AVELOCITY           avelocity
6 #define SUB_ORIGIN                      origin
7 #define SUB_SETORIGIN(s,v)      setorigin((s), (v))
8 #define SUB_NEXTTHINK           nextthink
9 #define SUB_THINK(e, f)     setthink(e, f)
10 #define SUB_THUNK(e)        getthink(e)
11 #define SUB_LTIME                       ltime
12
13
14 void SUB_SetFade (entity ent, float when, float fading_time);
15 void SUB_VanishOrRemove (entity ent);
16
17 .vector         finaldest, finalangle;          //plat.qc stuff
18 .void(entity this) think1;
19 .float state;
20 .float          t_length, t_width;
21
22 .vector destvec;
23 .vector destvec2;
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