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
4
bool
autocvar_sv_doors_always_open
;
5
#endif
6
7
const
int
DOOR_START_OPEN
=
BIT
(0);
// has same meaning in Q3: reverse position 1 and 2
8
const
int
DOOR_DONT_LINK
=
BIT
(2);
9
const
int
SPAWNFLAGS_GOLD_KEY
=
BIT
(3);
// Quake 1 and QL compat, can only be used with func_door!
10
const
int
SPAWNFLAGS_SILVER_KEY
=
BIT
(4);
// Quake 1 and QL 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
#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
21
.float
door_finished
;
22
#endif
BIT
#define BIT(n)
Only ever assign into the first 24 bits in QC (so max is BIT(23)).
Definition
bits.qh:8
door_finished
float door_finished
Definition
door.qc:286
autocvar_sv_doors_always_open
bool autocvar_sv_doors_always_open
Definition
door.qh:4
SPAWNFLAGS_GOLD_KEY
const int SPAWNFLAGS_GOLD_KEY
Definition
door.qh:9
DOOR_CRUSH
const int DOOR_CRUSH
Definition
door.qh:14
DOOR_TOGGLE
const int DOOR_TOGGLE
Definition
door.qh:11
DOOR_START_OPEN
const int DOOR_START_OPEN
Definition
door.qh:7
DOOR_NONSOLID
const int DOOR_NONSOLID
Definition
door.qh:13
SPAWNFLAGS_SILVER_KEY
const int SPAWNFLAGS_SILVER_KEY
Definition
door.qh:10
DOOR_DONT_LINK
const int DOOR_DONT_LINK
Definition
door.qh:8
common
mapobjects
func
door.qh
Generated on
for Xonotic QuakeC by
1.14.0