Skip to content

Commit

Permalink
Added more missing Zandronum definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
DrinkyBird committed Dec 18, 2023
1 parent f6509e9 commit 88f33e7
Showing 1 changed file with 62 additions and 0 deletions.
62 changes: 62 additions & 0 deletions zdefs.acs
Original file line number Diff line number Diff line change
Expand Up @@ -783,6 +783,11 @@
#DEFINE AAPTR_FRIENDPLAYER 0x4000
#DEFINE AAPTR_GET_LINETARGET 0x8000

// [AK] Actor pointers used exclusively for GAMEEVENT_ACTOR_DAMAGED
#DEFINE AAPTR_DAMAGE_SOURCE 0x10000000
#DEFINE AAPTR_DAMAGE_INFLICTOR 0x40000000
#DEFINE AAPTR_DAMAGE_TARGET 0x80000000

// Actor pointer operation flags

#DEFINE PTROP_UNSAFETARGET 1
Expand Down Expand Up @@ -910,6 +915,28 @@
#define DB_ORDER_ASC 0
#define DB_ORDER_DESC 1

// Zandronum gamemode states ------------------------------------------------
#define GAMESTATE_UNSPECIFIED -1
#define GAMESTATE_WAITFORPLAYERS 0
#define GAMESTATE_COUNTDOWN 1
#define GAMESTATE_INPROGRESS 2
#define GAMESTATE_INRESULTSEQUENCE 3

// Zandronum EVENT script types ---------------------------------------------
#define GAMEEVENT_PLAYERFRAGS 0
#define GAMEEVENT_MEDALS 1
#define GAMEEVENT_CAPTURES 2
#define GAMEEVENT_TOUCHES 3
#define GAMEEVENT_RETURNS 4
#define GAMEEVENT_ROUND_STARTS 5
#define GAMEEVENT_ROUND_ENDS 6
#define GAMEEVENT_ROUND_ABORTED 7
#define GAMEEVENT_CHAT 8
#define GAMEEVENT_PLAYERCONNECT 9
#define GAMEEVENT_ACTOR_SPAWNED 10
#define GAMEEVENT_ACTOR_DAMAGED 11
#define GAMEEVENT_ACTOR_ARMORDAMAGED 12

// Events when you have input grabbed

#define EV_KeyDown 1 // data1: unshifted ASCII, data2: shifted ASCII
Expand Down Expand Up @@ -1169,6 +1196,41 @@
#define AMLS_UnexploredSecret 12
#define AMLS_Portal 13

// [TP] For GetTimeProperty
#define TM_SECOND 0
#define TM_MINUTE 1
#define TM_HOUR 2
#define TM_DAY 3
#define TM_MONTH 4
#define TM_YEAR 5
#define TM_WEEKDAY 6

// [AK] For SetGamemodeLimit
#define GAMELIMIT_FRAGS 0
#define GAMELIMIT_TIME 1
#define GAMELIMIT_POINTS 2
#define GAMELIMIT_DUELS 3
#define GAMELIMIT_WINS 4
#define GAMELIMIT_WAVES 5

// [AK] For SetPlayerScore and GetPlayerScore
#define SCORE_FRAGS 0
#define SCORE_POINTS 1
#define SCORE_WINS 2
#define SCORE_DEATHS 3
#define SCORE_KILLS 4
#define SCORE_ITEMS 5
#define SCORE_SECRETS 6
#define SCORE_SPREAD 7
#define SCORE_RANK 8

// [AK] For GetMapRotationInfo
#define MAPROTATION_Name 0
#define MAPROTATION_LumpName 1
#define MAPROTATION_Used 2
#define MAPROTATION_MinPlayers 3
#define MAPROTATION_MaxPlayers 4

// Lump reading stuff.
#define LUMP_OPEN_FULLPATH 1

Expand Down

0 comments on commit 88f33e7

Please sign in to comment.