Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
door.qh
Go to the documentation of this file.
1#pragma once
2
3#ifdef SVQC
5#endif
6
7const int DOOR_START_OPEN = BIT(0); // has same meaning in Q3: reverse position 1 and 2
8const int DOOR_DONT_LINK = BIT(2);
9const int SPAWNFLAGS_GOLD_KEY = BIT(3); // Quake 1 and QL compat, can only be used with func_door!
10const int SPAWNFLAGS_SILVER_KEY = BIT(4); // Quake 1 and QL compat, can only be used with func_door!
11const int DOOR_TOGGLE = BIT(5);
12
13const int DOOR_NONSOLID = BIT(10);
14const int DOOR_CRUSH = BIT(11); // can't use CRUSH cause that is the same as DOOR_DONT_LINK
15
16#define Q3_DOOR_CRUSHER BIT(2) // in Q3 this disables the auto reverse so the blocking player takes damage every frame
17
18#ifdef CSQC
19// stuff for preload
20
22#endif
#define BIT(n)
Only ever assign into the first 24 bits in QC (so max is BIT(23)).
Definition bits.qh:8
float door_finished
Definition door.qc:286
bool autocvar_sv_doors_always_open
Definition door.qh:4
const int SPAWNFLAGS_GOLD_KEY
Definition door.qh:9
const int DOOR_CRUSH
Definition door.qh:14
const int DOOR_TOGGLE
Definition door.qh:11
const int DOOR_START_OPEN
Definition door.qh:7
const int DOOR_NONSOLID
Definition door.qh:13
const int SPAWNFLAGS_SILVER_KEY
Definition door.qh:10
const int DOOR_DONT_LINK
Definition door.qh:8