Skip to content

Commit 4d181d6

Browse files
committed
Added more missing Zandronum definitions
1 parent f6509e9 commit 4d181d6

File tree

1 file changed

+64
-0
lines changed

1 file changed

+64
-0
lines changed

zdefs.acs

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -783,6 +783,11 @@
783783
#DEFINE AAPTR_FRIENDPLAYER 0x4000
784784
#DEFINE AAPTR_GET_LINETARGET 0x8000
785785

786+
// [AK] Actor pointers used exclusively for GAMEEVENT_ACTOR_DAMAGED
787+
#DEFINE AAPTR_DAMAGE_SOURCE 0x10000000
788+
#DEFINE AAPTR_DAMAGE_INFLICTOR 0x40000000
789+
#DEFINE AAPTR_DAMAGE_TARGET 0x80000000
790+
786791
// Actor pointer operation flags
787792

788793
#DEFINE PTROP_UNSAFETARGET 1
@@ -910,6 +915,30 @@
910915
#define DB_ORDER_ASC 0
911916
#define DB_ORDER_DESC 1
912917

918+
// Zandronum gamemode states ------------------------------------------------
919+
#define GAMESTATE_UNSPECIFIED -1
920+
#define GAMESTATE_WAITFORPLAYERS 0
921+
#define GAMESTATE_COUNTDOWN 1
922+
#define GAMESTATE_INPROGRESS 2
923+
#define GAMESTATE_INRESULTSEQUENCE 3
924+
925+
// Zandronum EVENT script types ---------------------------------------------
926+
#define GAMEEVENT_PLAYERFRAGS 0
927+
#define GAMEEVENT_MEDALS 1
928+
#define GAMEEVENT_CAPTURES 2
929+
#define GAMEEVENT_TOUCHES 3
930+
#define GAMEEVENT_RETURNS 4
931+
#define GAMEEVENT_ROUND_STARTS 5
932+
#define GAMEEVENT_ROUND_ENDS 6
933+
#define GAMEEVENT_ROUND_ABORTED 7
934+
#define GAMEEVENT_CHAT 8
935+
#define GAMEEVENT_PLAYERCONNECT 9
936+
#define GAMEEVENT_ACTOR_SPAWNED 10
937+
#define GAMEEVENT_ACTOR_DAMAGED 11
938+
#define GAMEEVENT_ACTOR_ARMORDAMAGED 12
939+
#define GAMEEVENT_DOMINATION_CONTROL 13
940+
#define GAMEEVENT_DOMINATION_POINT 14
941+
913942
// Events when you have input grabbed
914943

915944
#define EV_KeyDown 1 // data1: unshifted ASCII, data2: shifted ASCII
@@ -1169,6 +1198,41 @@
11691198
#define AMLS_UnexploredSecret 12
11701199
#define AMLS_Portal 13
11711200

1201+
// [TP] For GetTimeProperty
1202+
#define TM_SECOND 0
1203+
#define TM_MINUTE 1
1204+
#define TM_HOUR 2
1205+
#define TM_DAY 3
1206+
#define TM_MONTH 4
1207+
#define TM_YEAR 5
1208+
#define TM_WEEKDAY 6
1209+
1210+
// [AK] For SetGamemodeLimit
1211+
#define GAMELIMIT_FRAGS 0
1212+
#define GAMELIMIT_TIME 1
1213+
#define GAMELIMIT_POINTS 2
1214+
#define GAMELIMIT_DUELS 3
1215+
#define GAMELIMIT_WINS 4
1216+
#define GAMELIMIT_WAVES 5
1217+
1218+
// [AK] For SetPlayerScore and GetPlayerScore
1219+
#define SCORE_FRAGS 0
1220+
#define SCORE_POINTS 1
1221+
#define SCORE_WINS 2
1222+
#define SCORE_DEATHS 3
1223+
#define SCORE_KILLS 4
1224+
#define SCORE_ITEMS 5
1225+
#define SCORE_SECRETS 6
1226+
#define SCORE_SPREAD 7
1227+
#define SCORE_RANK 8
1228+
1229+
// [AK] For GetMapRotationInfo
1230+
#define MAPROTATION_Name 0
1231+
#define MAPROTATION_LumpName 1
1232+
#define MAPROTATION_Used 2
1233+
#define MAPROTATION_MinPlayers 3
1234+
#define MAPROTATION_MaxPlayers 4
1235+
11721236
// Lump reading stuff.
11731237
#define LUMP_OPEN_FULLPATH 1
11741238

0 commit comments

Comments
 (0)