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