From daf89a01ff88c7771f0c252808de2b3eede23927 Mon Sep 17 00:00:00 2001 From: Magnus Auvinen Date: Sun, 4 Nov 2007 00:19:41 +0000 Subject: added skins, tweaked prediction like hell --- src/engine/protocol.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'src/engine/protocol.h') diff --git a/src/engine/protocol.h b/src/engine/protocol.h index 96ad1e6b..822a735f 100644 --- a/src/engine/protocol.h +++ b/src/engine/protocol.h @@ -1,5 +1,28 @@ #include "system.h" +/* + Connection diagram - How the initilization works. + + Client -> INFO -> Server + Contains version info, name, and some other info. + + Client <- MAP <- Server + Contains current map. + + Client -> READY -> Server + The client has loaded the map and is ready to go, + but the mod needs to send it's information aswell. + modc_connected is called on the client and + mods_connected is called on the server. + The client should call client_entergame when the + mod has done it's initilization. + + Client -> ENTERGAME -> Server + Tells the server to start sending snapshots. + client_entergame and server_client_enter is called. +*/ + + enum { NETMSG_NULL=0, @@ -15,6 +38,7 @@ enum NETMSG_SNAPSMALL, /* sent by client */ + NETMSG_READY, NETMSG_ENTERGAME, NETMSG_INPUT, NETMSG_CMD, -- cgit 1.4.1