Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added more missing Zandronum definitions #98

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 64 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,30 @@
#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
#define GAMEEVENT_DOMINATION_CONTROL 13
#define GAMEEVENT_DOMINATION_POINT 14

// Events when you have input grabbed

#define EV_KeyDown 1 // data1: unshifted ASCII, data2: shifted ASCII
Expand Down Expand Up @@ -1169,6 +1198,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