mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Don't snap thok if the player is holding a camera control
This commit is contained in:
parent
5520262799
commit
d4ad6d2a56
1 changed files with 5 additions and 3 deletions
|
|
@ -42,6 +42,8 @@
|
||||||
#include "b_bot.h"
|
#include "b_bot.h"
|
||||||
// Objectplace
|
// Objectplace
|
||||||
#include "m_cheat.h"
|
#include "m_cheat.h"
|
||||||
|
// Thok camera snap (ctrl-f "chalupa")
|
||||||
|
#include "g_input.h"
|
||||||
|
|
||||||
#ifdef HW3SOUND
|
#ifdef HW3SOUND
|
||||||
#include "hardware/hw3sound.h"
|
#include "hardware/hw3sound.h"
|
||||||
|
|
@ -5351,10 +5353,10 @@ static void P_DoJumpStuff(player_t *player, ticcmd_t *cmd)
|
||||||
player->pflags &= ~(PF_SPINNING|PF_STARTDASH);
|
player->pflags &= ~(PF_SPINNING|PF_STARTDASH);
|
||||||
player->pflags |= PF_THOKKED;
|
player->pflags |= PF_THOKKED;
|
||||||
|
|
||||||
// Change localangle to match?
|
// Change localangle to match? (P.S. chalupa)
|
||||||
if (player == &players[consoleplayer] && cv_cam_turnfacingability[0].value > 0)
|
if (player == &players[consoleplayer] && cv_cam_turnfacingability[0].value > 0 && !(PLAYER1INPUTDOWN(gc_turnleft) || PLAYER1INPUTDOWN(gc_turnright)))
|
||||||
localangle = player->mo->angle;
|
localangle = player->mo->angle;
|
||||||
else if (player == &players[secondarydisplayplayer] && cv_cam_turnfacingability[1].value > 0)
|
else if (player == &players[secondarydisplayplayer] && cv_cam_turnfacingability[1].value > 0 && !(PLAYER2INPUTDOWN(gc_turnleft) || PLAYER2INPUTDOWN(gc_turnright)))
|
||||||
localangle2 = player->mo->angle;
|
localangle2 = player->mo->angle;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue