mirror of
https://github.com/rehlds/rehlds.git
synced 2025-01-04 02:55:50 +03:00
Merge pull request #124 from theAsmodai/master
Increased move command burst rate
This commit is contained in:
commit
a8ed44dc19
@ -532,7 +532,7 @@ void SV_DropClient_internal(client_t *cl, qboolean crash, const char *string)
|
|||||||
Q_memset(cl->physinfo, 0, sizeof(cl->physinfo));
|
Q_memset(cl->physinfo, 0, sizeof(cl->physinfo));
|
||||||
|
|
||||||
#ifdef REHLDS_FIXES
|
#ifdef REHLDS_FIXES
|
||||||
g_GameClients[host_client - g_psvs.clients]->SetSpawnedOnce(false);
|
g_GameClients[cl - g_psvs.clients]->SetSpawnedOnce(false);
|
||||||
#endif // REHLDS_FIXES
|
#endif // REHLDS_FIXES
|
||||||
|
|
||||||
SV_FullClientUpdate(cl, &g_psv.reliable_datagram);
|
SV_FullClientUpdate(cl, &g_psv.reliable_datagram);
|
||||||
|
@ -1553,12 +1553,9 @@ void SV_ParseMove(client_t *pSenderClient)
|
|||||||
host_client->packet_loss = packet_loss;
|
host_client->packet_loss = packet_loss;
|
||||||
if (!g_psv.paused && (g_psvs.maxclients > 1 || !key_dest) && !(sv_player->v.flags & FL_FROZEN))
|
if (!g_psv.paused && (g_psvs.maxclients > 1 || !key_dest) && !(sv_player->v.flags & FL_FROZEN))
|
||||||
{
|
{
|
||||||
#ifndef REHLDS_FIXES
|
|
||||||
// dup and more correct in SV_RunCmd
|
|
||||||
sv_player->v.v_angle[0] = cmds[0].viewangles[0];
|
sv_player->v.v_angle[0] = cmds[0].viewangles[0];
|
||||||
sv_player->v.v_angle[1] = cmds[0].viewangles[1];
|
sv_player->v.v_angle[1] = cmds[0].viewangles[1];
|
||||||
sv_player->v.v_angle[2] = cmds[0].viewangles[2];
|
sv_player->v.v_angle[2] = cmds[0].viewangles[2];
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#include "precompiled.h"
|
#include "precompiled.h"
|
||||||
|
|
||||||
cvar_t sv_rehlds_movecmdrate_max_avg = { "sv_rehlds_movecmdrate_max_avg", "300", 0, 300.0f, NULL };
|
cvar_t sv_rehlds_movecmdrate_max_avg = { "sv_rehlds_movecmdrate_max_avg", "400", 0, 400.0f, NULL };
|
||||||
cvar_t sv_rehlds_movecmdrate_max_burst = { "sv_rehlds_movecmdrate_max_burst", "1500", 0, 1500.0f, NULL };
|
cvar_t sv_rehlds_movecmdrate_max_burst = { "sv_rehlds_movecmdrate_max_burst", "2500", 0, 2500.0f, NULL };
|
||||||
cvar_t sv_rehlds_stringcmdrate_max_avg = {"sv_rehlds_stringcmdrate_max_avg", "80", 0, 80.0f, NULL};
|
cvar_t sv_rehlds_stringcmdrate_max_avg = {"sv_rehlds_stringcmdrate_max_avg", "80", 0, 80.0f, NULL};
|
||||||
cvar_t sv_rehlds_stringcmdrate_max_burst = {"sv_rehlds_stringcmdrate_max_burst", "400", 0, 400.0f, NULL};
|
cvar_t sv_rehlds_stringcmdrate_max_burst = {"sv_rehlds_stringcmdrate_max_burst", "400", 0, 400.0f, NULL};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user