Skip to content

Commit 88f33e7

Browse files
committed
Added more missing Zandronum definitions
1 parent f6509e9 commit 88f33e7

File tree

1 file changed

+62
-0
lines changed

1 file changed

+62
-0
lines changed

zdefs.acs

Lines changed: 62 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,28 @@
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+
913940
// Events when you have input grabbed
914941

915942
#define EV_KeyDown 1 // data1: unshifted ASCII, data2: shifted ASCII
@@ -1169,6 +1196,41 @@
11691196
#define AMLS_UnexploredSecret 12
11701197
#define AMLS_Portal 13
11711198

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

0 commit comments

Comments
 (0)