mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-03-25 20:42:35 +00:00
Suspend directionchar while holding cam reset
This should make it completely clear that thok will face the camera while it's held.
This commit is contained in:
parent
4a63a5f7af
commit
7f23ae547f
1 changed files with 8 additions and 0 deletions
|
|
@ -1250,13 +1250,21 @@ void G_BuildTiccmd(ticcmd_t *cmd, INT32 realtics, UINT8 ssplayer)
|
|||
{
|
||||
ticcmd_resetdown[forplayer] = true;
|
||||
P_ResetCamera(&players[ssplayer == 1 ? displayplayer : secondarydisplayplayer], &camera);
|
||||
|
||||
if (abilitydirection)
|
||||
CV_SetValue((ssplayer == 1 ? &cv_directionchar : &cv_directionchar2), 0);
|
||||
}
|
||||
else
|
||||
ticcmd_resetdown[forplayer] = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
ticcmd_resetdown[forplayer] = false;
|
||||
|
||||
if (abilitydirection)
|
||||
CV_SetValue((ssplayer == 1 ? &cv_directionchar : &cv_directionchar2), 1);
|
||||
}
|
||||
|
||||
// jump button
|
||||
axis = PlayerJoyAxis(ssplayer, AXISJUMP);
|
||||
if (PLAYERINPUTDOWN(ssplayer, gc_jump) || (usejoystick && axis > 0))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue