From 87a08ae15722554de8e3490c81e5259d9fe8afae Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Fri, 22 Apr 2022 01:10:50 +0300 Subject: [PATCH] more svc_?? macro updates, update cl_parse.c:svc_strings for reference --- Quake/cl_parse.c | 27 +++++++++++++++------------ Quake/protocol.h | 11 ++++++----- 2 files changed, 21 insertions(+), 17 deletions(-) diff --git a/Quake/cl_parse.c b/Quake/cl_parse.c index 17028511..c784c568 100644 --- a/Quake/cl_parse.c +++ b/Quake/cl_parse.c @@ -73,25 +73,28 @@ const char *svc_strings[] = "", // 35 "", // 36 "svc_skybox", // 37 // [string] skyname - "", // 38 + "svc_botchat", // 38 (2021 RE-RELEASE) "", // 39 "svc_bf", // 40 // no data "svc_fog", // 41 // [byte] density [byte] red [byte] green [byte] blue [float] time "svc_spawnbaseline2", //42 // support for large modelindex, large framenum, alpha, using flags "svc_spawnstatic2", // 43 // support for large modelindex, large framenum, alpha, using flags "svc_spawnstaticsound2", // 44 // [coord3] [short] samp [byte] vol [byte] aten - "", // 45 - "", // 46 - "", // 47 - "", // 48 - "", // 49 - "", // 50 - "", // 51 - "svc_achievement", // 52 -- used by the 2021 rerelease - "", // 53 - "", // 54 - "", // 55 //johnfitz + +// 2021 RE-RELEASE: + "svc_setviews", // 45 + "svc_updateping", // 46 + "svc_updatesocial", // 47 + "svc_updateplinfo", // 48 + "svc_rawprint", // 49 + "svc_servervars", // 50 + "svc_seq", // 51 + "svc_achievement", // 52 + "svc_chat", // 53 + "svc_levelcompleted", // 54 + "svc_backtolobby", // 55 + "svc_localsound" // 56 }; qboolean warn_about_nehahra_protocol; //johnfitz diff --git a/Quake/protocol.h b/Quake/protocol.h index f98905d3..da8847b2 100644 --- a/Quake/protocol.h +++ b/Quake/protocol.h @@ -201,8 +201,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #define svc_spawnstaticsound2 44 // [coord3] [short] samp [byte] vol [byte] aten //johnfitz -// 2021 re-release server messages: the list is from +// 2021 re-release server messages - see: // https://steamcommunity.com/sharedfiles/filedetails/?id=2679459726 +#define svc_botchat 38 #define svc_setviews 45 #define svc_updateping 46 #define svc_updatesocial 47 @@ -212,10 +213,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #define svc_seq 51 // Note: svc_achievement has same value as svcdp_effect! #define svc_achievement 52 // [string] id -#define svc_chat 53 // Prints a message in the chat -#define svc_levelcompleted 54 // Probably used for achievements -#define svc_backtolobby 55 // Tells the client that they should go back to the lobby screen -#define svc_localsound 56 // Plays a sound that is only heard by the client +#define svc_chat 53 +#define svc_levelcompleted 54 +#define svc_backtolobby 55 +#define svc_localsound 56 // // client to server