From e6855601cd8c3565a6b8b5078547cef52bc5d7eb Mon Sep 17 00:00:00 2001 From: Andrey Nazarov Date: Wed, 28 Nov 2007 18:17:19 +0000 Subject: Made PF_Pmove called with NULL sv_client work as expected by game DLL (this makes bots function again). --- source/sv_init.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'source/sv_init.c') diff --git a/source/sv_init.c b/source/sv_init.c index 5d9fe4e..b6c1741 100644 --- a/source/sv_init.c +++ b/source/sv_init.c @@ -106,6 +106,17 @@ void SV_SpawnServer( const char *server, const char *spawnpoint ) { sprintf( sv.configstrings[ CS_MODELS + 1 + i ], "*%d", i ); } + // + // set up default pmove parameters + // + sv.pmp.maxspeed = 300; + sv.pmp.upspeed = 350; + sv.pmp.friction = 6; + sv.pmp.flyfriction = 9; + sv.pmp.waterfriction = 1; + sv.pmp.airaccelerate = sv_airaccelerate->integer ? qtrue : qfalse; + sv.pmp.speedMultiplier = 1; + // // clear physics interaction links // -- cgit v1.2.3