]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/common/mapobjects/func/door.qh
func_door and func_plat fixes and Q3 compatibility
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / mapobjects / func / door.qh
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 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 #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