typedef struct
{
- // NULL pointers are non-existent clients
- struct client_s *connectedclients[MAX_SCOREBOARD];
+ // number of svs.clients slots (updated by maxplayers command)
+ int maxclients;
+ // client slots
+ struct client_s *clients;
// episode completion information
int serverflags;
// cleared when at SV_SpawnServer
server_state_t state;
sizebuf_t datagram;
- qbyte datagram_buf[MAX_DATAGRAM];
+ qbyte datagram_buf[NET_MAXMESSAGE];
// copied to all clients at end of frame
sizebuf_t reliable_datagram;
- qbyte reliable_datagram_buf[MAX_DATAGRAM];
+ qbyte reliable_datagram_buf[NET_MAXMESSAGE];
sizebuf_t signon;
- // LordHavoc: increased signon message buffer from 8192 to 32768
- qbyte signon_buf[32768];
+ // LordHavoc: increased signon message buffer from 8192
+ qbyte signon_buf[NET_MAXMESSAGE];
} server_t;
typedef struct client_s
{
+ // false = empty client slot
+ qboolean active;
// false = don't send datagrams
qboolean spawned;
// has been told to go to another level
qboolean sendsignon;
// remove this client immediately
qboolean deadsocket;
- // index of this client in the svs.connectedclients pointer array
+ // index of this client in the svs.clients array
int number;
// reliable messages must be sent periodically
// can be added to at any time, copied and clear once per frame
sizebuf_t message;
- qbyte msgbuf[MAX_DATAGRAM];
+ qbyte msgbuf[NET_MAXMESSAGE];
// EDICT_NUM(clientnum+1)
edict_t *edict;
#define MOVETYPE_BOUNCE 10
#define MOVETYPE_BOUNCEMISSILE 11 // bounce w/o gravity
#define MOVETYPE_FOLLOW 12 // track movement of aiment
+#define MOVETYPE_FAKEPUSH 13 // tenebrae's push that doesn't push
// edict->solid values
#define SOLID_NOT 0 // no interaction with other objects
void SV_ClientThink (void);
-void SV_ClientPrintf (const char *fmt, ...);
-void SV_BroadcastPrintf (const char *fmt, ...);
+void SV_ClientPrint(const char *msg);
+void SV_ClientPrintf(const char *fmt, ...);
+void SV_BroadcastPrint(const char *msg);
+void SV_BroadcastPrintf(const char *fmt, ...);
void SV_Physics (void);