Xonotic
door.qh
Go to the documentation of this file.
1 #pragma once
2 
3 #ifdef SVQC
4 bool autocvar_sv_doors_always_open;
5 #endif
6 
7 const int DOOR_START_OPEN = BIT(0);
8 const int DOOR_DONT_LINK = BIT(2);
9 const int SPAWNFLAGS_GOLD_KEY = BIT(3); // Quake 1 compat, can only be used with func_door!
10 const int SPAWNFLAGS_SILVER_KEY = BIT(4); // Quake 1 compat, can only be used with func_door!
11 const int DOOR_TOGGLE = BIT(5);
12 
13 const int DOOR_NONSOLID = BIT(10);
14 const int DOOR_CRUSH = BIT(11); // can't use CRUSH cause that is the same as DOOR_DONT_LINK
15 
16 
17 #ifdef CSQC
18 // stuff for preload
19 
20 .float door_finished;
21 #endif
float door_finished
Definition: door.qc:284
const int DOOR_START_OPEN
Definition: door.qh:7
const int SPAWNFLAGS_GOLD_KEY
Definition: door.qh:9
const int DOOR_CRUSH
Definition: door.qh:14
#define BIT(n)
Only ever assign into the first 24 bits in QC (so max is BIT(23)).
Definition: bits.qh:8
const int DOOR_DONT_LINK
Definition: door.qh:8
const int SPAWNFLAGS_SILVER_KEY
Definition: door.qh:10
const int DOOR_NONSOLID
Definition: door.qh:13
const int DOOR_TOGGLE
Definition: door.qh:11