X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Ftriggers%2Ffunc%2Fdoor.qh;h=181de8b7b829592dc0ce3dcaf426524a824d78d2;hb=821767330613f134fe04791532f44e63741ee6c6;hp=cc508e8d987d47c07ddd2a4d9f386324ba30e4dd;hpb=6dc9591eba337374f2b4348a6a6deaa1cb6887d0;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/triggers/func/door.qh b/qcsrc/common/triggers/func/door.qh index cc508e8d9..181de8b7b 100644 --- a/qcsrc/common/triggers/func/door.qh +++ b/qcsrc/common/triggers/func/door.qh @@ -1,18 +1,18 @@ -// door constants -const float DOOR_START_OPEN = 1; -const float DOOR_DONT_LINK = 4; -const float DOOR_TOGGLE = 32; +#pragma once -const float DOOR_NOSPLASH = 256; // generic anti-splashdamage spawnflag -const float SPAWNFLAGS_GOLD_KEY = 8; -const float SPAWNFLAGS_SILVER_KEY = 16; +const int DOOR_START_OPEN = BIT(0); +const int DOOR_DONT_LINK = BIT(2); +const int SPAWNFLAGS_GOLD_KEY = BIT(3); // Quake 1 compat, can only be used with func_door! +const int SPAWNFLAGS_SILVER_KEY = BIT(4); // Quake 1 compat, can only be used with func_door! +const int DOOR_TOGGLE = BIT(5); + +const int DOOR_NONSOLID = BIT(10); +const int DOOR_CRUSH = BIT(11); // can't use CRUSH cause that is the same as DOOR_DONT_LINK + #ifdef CSQC // stuff for preload -void ent_door(); -void ent_door_trigger(); -// abused -.float attack_finished_single; +.float door_finished; #endif