X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Ftriggers%2Ffunc%2Fdoor.qh;h=84a9d6aa234224fe3d2d35b6c1640941c73b85f1;hb=cf1edea8694548556934b5b05f526bc192f576cb;hp=b58091b0ad8cd76a1ed330b63ce4c3d09e0da205;hpb=aae9cb6c8f84ebd4f329787926ececb0c134b47c;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/triggers/func/door.qh b/qcsrc/common/triggers/func/door.qh index b58091b0a..84a9d6aa2 100644 --- a/qcsrc/common/triggers/func/door.qh +++ b/qcsrc/common/triggers/func/door.qh @@ -1,17 +1,19 @@ +#pragma once + // door constants -const float DOOR_START_OPEN = 1; -const float DOOR_DONT_LINK = 4; -const float DOOR_TOGGLE = 32; +const int DOOR_START_OPEN = 1; +const int DOOR_DONT_LINK = 4; +const int DOOR_TOGGLE = 32; + +const int DOOR_NOSPLASH = 256; // generic anti-splashdamage spawnflag -const float DOOR_NOSPLASH = 256; // generic anti-splashdamage spawnflag +const int DOOR_NONSOLID = 1024; -const float SPAWNFLAGS_GOLD_KEY = 8; -const float SPAWNFLAGS_SILVER_KEY = 16; +const int SPAWNFLAGS_GOLD_KEY = 8; +const int SPAWNFLAGS_SILVER_KEY = 16; #ifdef CSQC // stuff for preload -void ent_door(); -// abused -.float attack_finished_single; +.float door_finished; #endif