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