From 14b10493b3f6a419a2d6998b98fb8e448f7527cd Mon Sep 17 00:00:00 2001 From: tankefugl Date: Mon, 11 Jul 2005 13:29:15 +0000 Subject: [PATCH] Mantis 0001010: o Fixed a bug where "switch" in console (sv_cheats 1) no longer makes the player stuck when going from alien to marine. Had committed the change to the wrong branch in build 225 ... git-svn-id: https://unknownworlds.svn.cloudforge.com/ns1@259 67975925-1194-0748-b3d5-c16f83f1a3a1 --- main/source/mod/AvHConsoleCommands.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main/source/mod/AvHConsoleCommands.cpp b/main/source/mod/AvHConsoleCommands.cpp index 32cb940..10fba8c 100644 --- a/main/source/mod/AvHConsoleCommands.cpp +++ b/main/source/mod/AvHConsoleCommands.cpp @@ -386,6 +386,9 @@ BOOL AvHGamerules::ClientCommand( CBasePlayer *pPlayer, const char *pcmd ) theAvHPlayer->SetPlayMode(PLAYMODE_READYROOM, true); this->AttemptToJoinTeam(theAvHPlayer, theOtherTeamNumber, false); + // tankefugl: 0001010 - Boost the player 32 units up to avoid sticking in the ground + theCurrentPosition[2] += 32.0f; + // Set our position again theAvHPlayer->pev->origin = theCurrentPosition; theAvHPlayer->pev->angles = theCurrentAngles;