mirror of
https://github.com/ReactionQuake3/reaction.git
synced 2024-11-26 22:21:16 +00:00
spectator going through doors no longer reset viewangle
This commit is contained in:
parent
fcada2358f
commit
879bb46829
1 changed files with 6 additions and 3 deletions
|
@ -5,6 +5,9 @@
|
|||
//-----------------------------------------------------------------------------
|
||||
//
|
||||
// $Log$
|
||||
// Revision 1.23 2002/03/16 08:46:32 niceass
|
||||
// spectator going through doors no longer reset viewangle
|
||||
//
|
||||
// Revision 1.22 2002/03/02 12:24:30 jbravo
|
||||
// Removed some debugging messages
|
||||
//
|
||||
|
@ -162,8 +165,8 @@ void TeleportPlayer( gentity_t *player, vec3_t origin, vec3_t angles ) {
|
|||
player->client->ps.origin[2] += 1;
|
||||
|
||||
// spit the player out
|
||||
AngleVectors( angles, player->client->ps.velocity, NULL, NULL );
|
||||
VectorScale( player->client->ps.velocity, 400, player->client->ps.velocity );
|
||||
// AngleVectors( angles, player->client->ps.velocity, NULL, NULL );
|
||||
// VectorScale( player->client->ps.velocity, 400, player->client->ps.velocity );
|
||||
player->client->ps.pm_time = 160; // hold time
|
||||
player->client->ps.pm_flags |= PMF_TIME_KNOCKBACK;
|
||||
|
||||
|
@ -171,7 +174,7 @@ void TeleportPlayer( gentity_t *player, vec3_t origin, vec3_t angles ) {
|
|||
player->client->ps.eFlags ^= EF_TELEPORT_BIT;
|
||||
|
||||
// set angles
|
||||
SetClientViewAngle( player, angles );
|
||||
// SetClientViewAngle( player, angles );
|
||||
|
||||
// kill anything at the destination
|
||||
if ( player->client->sess.sessionTeam != TEAM_SPECTATOR ) {
|
||||
|
|
Loading…
Reference in a new issue