From: Mario Date: Fri, 26 May 2017 12:56:36 +0000 (+1000) Subject: Send jump speed caps on connect (fixes mismatching jump speed settings when server... X-Git-Tag: xonotic-v0.8.5~2755 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=18c2d41a841f3748b9a394a595b5cb3d415a440b;p=xonotic%2Fxonotic-data.pk3dir.git Send jump speed caps on connect (fixes mismatching jump speed settings when server hopping) --- diff --git a/qcsrc/server/client.qc b/qcsrc/server/client.qc index d705fd63a..ace49488e 100644 --- a/qcsrc/server/client.qc +++ b/qcsrc/server/client.qc @@ -1041,6 +1041,9 @@ void FixClientCvars(entity e) if(autocvar_sv_gentle) stuffcmd(e, "cl_cmd settemp cl_gentle 1\n"); + stuffcmd(this, sprintf("\ncl_jumpspeedcap_min \"%s\"\n", autocvar_sv_jumpspeedcap_min)); + stuffcmd(this, sprintf("\ncl_jumpspeedcap_max \"%s\"\n", autocvar_sv_jumpspeedcap_max)); + MUTATOR_CALLHOOK(FixClientCvars, e); }