@@ -1210,6 +1210,31 @@ void SV_MVD_SendInitialGamestate(mvddest_t* dest)
1210
1210
1211
1211
MSG_WriteByte (& buf , svc_serverdata );
1212
1212
1213
+ #ifdef FTE_PEXT_256PACKETENTITIES
1214
+ demo .recorder .fteprotocolextensions |= FTE_PEXT_256PACKETENTITIES ;
1215
+ #endif
1216
+ #ifdef FTE_PEXT_MODELDBL
1217
+ demo .recorder .fteprotocolextensions |= FTE_PEXT_MODELDBL ;
1218
+ #endif
1219
+ #ifdef FTE_PEXT_ENTITYDBL
1220
+ demo .recorder .fteprotocolextensions |= FTE_PEXT_ENTITYDBL ;
1221
+ #endif
1222
+ #ifdef FTE_PEXT_ENTITYDBL2
1223
+ demo .recorder .fteprotocolextensions |= FTE_PEXT_ENTITYDBL2 ;
1224
+ #endif
1225
+ #ifdef FTE_PEXT_SPAWNSTATIC2
1226
+ demo .recorder .fteprotocolextensions |= FTE_PEXT_SPAWNSTATIC2 ;
1227
+ #endif
1228
+ #ifdef FTE_PEXT_TRANS
1229
+ demo .recorder .fteprotocolextensions |= FTE_PEXT_TRANS ;
1230
+ #endif
1231
+ #ifdef FTE_PEXT_COLOURMOD
1232
+ demo .recorder .fteprotocolextensions |= FTE_PEXT_COLOURMOD ;
1233
+ #endif
1234
+ #ifdef FTE_PEXT2_VOICECHAT
1235
+ demo .recorder .fteprotocolextensions2 |= FTE_PEXT2_VOICECHAT ;
1236
+ #endif
1237
+
1213
1238
#ifdef FTE_PEXT_FLOATCOORDS
1214
1239
//fix up extensions to match sv_bigcoords correctly. sorry for old clients not working.
1215
1240
if (msg_coordsize == 4 )
@@ -1316,14 +1341,22 @@ void SV_MVD_SendInitialGamestate(mvddest_t* dest)
1316
1341
while (s )
1317
1342
{
1318
1343
MSG_WriteString (& buf , s );
1319
- if (buf .cursize > MAX_MSGLEN /2 )
1344
+ if (buf .cursize > MAX_MSGLEN /2 && n & 0xff )
1320
1345
{
1346
+ // partial flush as long as not at a zero boundary
1321
1347
MSG_WriteByte (& buf , 0 );
1322
1348
MSG_WriteByte (& buf , n );
1323
1349
SV_WriteRecordMVDMessage (& buf );
1324
1350
SZ_Clear (& buf );
1325
- MSG_WriteByte (& buf , svc_modellist );
1326
- MSG_WriteByte (& buf , n + 1 );
1351
+ if (n + 1 > 0xff )
1352
+ {
1353
+ MSG_WriteByte (& buf , svc_fte_modellistshort );
1354
+ MSG_WriteShort (& buf , n + 1 );
1355
+ } else
1356
+ {
1357
+ MSG_WriteByte (& buf , svc_modellist );
1358
+ MSG_WriteByte (& buf , n + 1 );
1359
+ }
1327
1360
}
1328
1361
n ++ ;
1329
1362
s = sv .model_precache [n + 1 ];
0 commit comments