engine: semi-correct printing GoldSrc client messages

This commit is contained in:
Alibek Omarov 2024-10-15 06:12:31 +03:00
parent ece204c30f
commit 245dc97cfb
2 changed files with 6 additions and 5 deletions

View file

@ -93,7 +93,7 @@ GNU General Public License for more details.
#define clc_voicedata 8 #define clc_voicedata 8
#define clc_requestcvarvalue 9 #define clc_requestcvarvalue 9
#define clc_requestcvarvalue2 10 #define clc_requestcvarvalue2 10
#define clc_lastmsg 10 // end client messages #define clc_lastmsg 11 // end client messages (11 is GoldSrc message)
#define MAX_VISIBLE_PACKET_BITS 11 // 2048 visible entities per frame (hl1 has 256) #define MAX_VISIBLE_PACKET_BITS 11 // 2048 visible entities per frame (hl1 has 256)
#define MAX_VISIBLE_PACKET (1<<MAX_VISIBLE_PACKET_BITS) #define MAX_VISIBLE_PACKET (1<<MAX_VISIBLE_PACKET_BITS)
@ -341,7 +341,7 @@ extern const char *const clc_strings[clc_lastmsg+1];
#define clc_goldsrc_hltv clc_requestcvarvalue // 9 #define clc_goldsrc_hltv clc_requestcvarvalue // 9
#define clc_goldsrc_requestcvarvalue clc_requestcvarvalue2 // 10 #define clc_goldsrc_requestcvarvalue clc_requestcvarvalue2 // 10
#define clc_goldsrc_requestcvarvalue2 11 #define clc_goldsrc_requestcvarvalue2 11
#define clc_goldsrc_lastmsg 12 #define clc_goldsrc_lastmsg 11
#define S2C_REJECT_BADPASSWORD '8' #define S2C_REJECT_BADPASSWORD '8'
#define S2C_REJECT '9' #define S2C_REJECT '9'

View file

@ -27,11 +27,12 @@ const char *const clc_strings[clc_lastmsg+1] =
"clc_stringcmd", "clc_stringcmd",
"clc_delta", "clc_delta",
"clc_resourcelist", "clc_resourcelist",
"clc_unused6", "clc_legacy_userinfo",
"clc_fileconsistency", "clc_fileconsistency",
"clc_voicedata", "clc_voicedata",
"clc_cvarvalue", "clc_cvarvalue/clc_goldsrc_hltv",
"clc_cvarvalue2", "clc_cvarvalue2/clc_goldsrc_requestcvarvalue",
"clc_goldsrc_requestcvarvalue2",
}; };
typedef struct ucmd_s typedef struct ucmd_s