mirror of
https://gitlab.com/ryandwyer/perfect-dark
synced 2026-06-12 05:27:02 -04:00
Document known door flags, door modes and door types
This commit is contained in:
@@ -926,8 +926,8 @@
|
||||
/**
|
||||
* Checks the state of the current door.
|
||||
*
|
||||
* Doorstate is expected to be one of DOORSTATEBIT_OPEN, DOORSTATEBIT_CLOSED,
|
||||
* DOORSTATEBIT_OPENING or DOORSTATEBIT_CLOSING. You can bitwise or them
|
||||
* Doorstate is expected to be one of DOORSTATE_OPEN, DOORSTATE_CLOSED,
|
||||
* DOORSTATE_OPENING or DOORSTATE_CLOSING. You can bitwise or them
|
||||
* together to check multiple states at the same time.
|
||||
*/
|
||||
#define if_door_state(door, doorstate, label) \
|
||||
|
||||
+24
-8
@@ -343,16 +343,32 @@
|
||||
#define DIFFBIT_PA 0x04
|
||||
#define DIFFBIT_PD 0x08
|
||||
|
||||
#define DOORSTATE_OPEN 1
|
||||
#define DOORSTATE_CLOSED 2
|
||||
#define DOORFLAG_WINDOWED 0x0002
|
||||
#define DOORFLAG_0004 0x0004
|
||||
#define DOORFLAG_0008 0x0008 // Changes the angle at which one-way doors can be opened
|
||||
#define DOORFLAG_0010 0x0010 // Rescue door bottoms, training doors in Defense
|
||||
#define DOORFLAG_0200 0x0200 // dataDyne secret door near lobby elevator
|
||||
#define DOORFLAG_DAMAGEONCONTACT 0x0400 // Lasers
|
||||
#define DOORFLAG_0800 0x0800 // Non-CI lasers, and floor grates
|
||||
#define DOORFLAG_4000 0x4000 // Two Investigation vertical doors after lasers
|
||||
|
||||
#define DOORSTATEBIT_CLOSED 1
|
||||
#define DOORSTATEBIT_OPEN 2
|
||||
#define DOORSTATEBIT_CLOSING 4
|
||||
#define DOORSTATEBIT_OPENING 8
|
||||
#define DOORMODE_IDLE 0
|
||||
#define DOORMODE_OPENING 1
|
||||
#define DOORMODE_CLOSING 2
|
||||
#define DOORMODE_3 3
|
||||
|
||||
#define DOORTYPE_8 8
|
||||
#define DOORTYPE_LASER 11
|
||||
// For AI commands - bitwise ORable
|
||||
#define DOORSTATE_CLOSED 1
|
||||
#define DOORSTATE_OPEN 2
|
||||
#define DOORSTATE_CLOSING 4
|
||||
#define DOORSTATE_OPENING 8
|
||||
|
||||
#define DOORTYPE_SLIDING 0
|
||||
#define DOORTYPE_VERTICAL 4
|
||||
#define DOORTYPE_SWINGING 5
|
||||
#define DOORTYPE_8 8
|
||||
#define DOORTYPE_HULL 10
|
||||
#define DOORTYPE_LASER 11
|
||||
|
||||
#define DRCAROLLIMAGE_DEAD 4
|
||||
|
||||
|
||||
Reference in New Issue
Block a user