Skip to content

Added the GAMEEVENT_PLAYERLEAVESSERVER EVENT script type

Sean Baggaley requested to merge topic/default/acs-disconnect-event into branch/default

This adds a new EVENT script type, GAMEEVENT_PLAYERLEAVESSERVER, which fires when a client/bot disconnects from the server. This is in contrast to the DISCONNECT script type, which fires when a player leaves the game (including becoming a spectator).

https://zandronum.com/tracker/view.php?id=4176


Additional ACC defines, for zdefs.acs:

#define GAMEEVENT_PLAYERLEAVESSERVER	15
// [SB] Disconnect reasons for GAMEEVENT_PLAYERLEAVESSERVER.
#define LEAVEREASON_LEFT 0
#define LEAVEREASON_KICKED 1
#define LEAVEREASON_ERROR 2
#define LEAVEREASON_TIMEOUT 3
#define LEAVEREASON_RECONNECT 4
Edited by Sean Baggaley

Merge request reports

Loading