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
This commit is contained in:
tankefugl 2005-07-11 13:29:15 +00:00
parent c25d30a845
commit 14b10493b3

View file

@ -386,6 +386,9 @@ BOOL AvHGamerules::ClientCommand( CBasePlayer *pPlayer, const char *pcmd )
theAvHPlayer->SetPlayMode(PLAYMODE_READYROOM, true); theAvHPlayer->SetPlayMode(PLAYMODE_READYROOM, true);
this->AttemptToJoinTeam(theAvHPlayer, theOtherTeamNumber, false); 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 // Set our position again
theAvHPlayer->pev->origin = theCurrentPosition; theAvHPlayer->pev->origin = theCurrentPosition;
theAvHPlayer->pev->angles = theCurrentAngles; theAvHPlayer->pev->angles = theCurrentAngles;