From 2d5551ca5b1ee1ea7c0c50856ea56b3b25f59657 Mon Sep 17 00:00:00 2001 From: TehRealSalt <tehrealsalt@gmail.com> Date: Wed, 14 Nov 2018 14:41:28 -0500 Subject: [PATCH] Double spectator movement speed to keep up with action better, scale it with map size --- src/p_user.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/p_user.c b/src/p_user.c index 4af4abd58..f45a969c0 100644 --- a/src/p_user.c +++ b/src/p_user.c @@ -5028,9 +5028,9 @@ static void P_SpectatorMovement(player_t *player) player->mo->z = player->mo->floorz; if (cmd->buttons & BT_ACCELERATE) - player->mo->z += FRACUNIT*16; + player->mo->z += 32*mapheaderinfo[gamemap-1]->mobj_scale; else if (cmd->buttons & BT_BRAKE) - player->mo->z -= FRACUNIT*16; + player->mo->z -= 32*mapheaderinfo[gamemap-1]->mobj_scale; // Aiming needed for SEENAMES, etc. // We may not need to fire as a spectator, but this is still handy! @@ -5039,14 +5039,14 @@ static void P_SpectatorMovement(player_t *player) player->mo->momx = player->mo->momy = player->mo->momz = 0; if (cmd->forwardmove != 0) { - P_Thrust(player->mo, player->mo->angle, cmd->forwardmove*(FRACUNIT/2)); + P_Thrust(player->mo, player->mo->angle, cmd->forwardmove*(mapheaderinfo[gamemap-1]->mobj_scale)); // Quake-style flying spectators :D - player->mo->momz += FixedMul(cmd->forwardmove*(FRACUNIT/2), AIMINGTOSLOPE(player->aiming)); + player->mo->momz += FixedMul(cmd->forwardmove*(mapheaderinfo[gamemap-1]->mobj_scale), AIMINGTOSLOPE(player->aiming)); } if (cmd->sidemove != 0) { - P_Thrust(player->mo, player->mo->angle-ANGLE_90, cmd->sidemove*(FRACUNIT/2)); + P_Thrust(player->mo, player->mo->angle-ANGLE_90, cmd->sidemove*(mapheaderinfo[gamemap-1]->mobj_scale)); } } -- GitLab