mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-02-22 20:02:03 +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
08ab15b1b9
commit
e1d4e2edcb
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;
|
ticcmd_resetdown[forplayer] = true;
|
||||||
P_ResetCamera(&players[ssplayer == 1 ? displayplayer : secondarydisplayplayer], &camera);
|
P_ResetCamera(&players[ssplayer == 1 ? displayplayer : secondarydisplayplayer], &camera);
|
||||||
|
|
||||||
|
if (abilitydirection)
|
||||||
|
CV_SetValue((ssplayer == 1 ? &cv_directionchar : &cv_directionchar2), 0);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
ticcmd_resetdown[forplayer] = true;
|
ticcmd_resetdown[forplayer] = true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
ticcmd_resetdown[forplayer] = false;
|
ticcmd_resetdown[forplayer] = false;
|
||||||
|
|
||||||
|
if (abilitydirection)
|
||||||
|
CV_SetValue((ssplayer == 1 ? &cv_directionchar : &cv_directionchar2), 1);
|
||||||
|
}
|
||||||
|
|
||||||
// jump button
|
// jump button
|
||||||
axis = PlayerJoyAxis(ssplayer, AXISJUMP);
|
axis = PlayerJoyAxis(ssplayer, AXISJUMP);
|
||||||
if (PLAYERINPUTDOWN(ssplayer, gc_jump) || (usejoystick && axis > 0))
|
if (PLAYERINPUTDOWN(ssplayer, gc_jump) || (usejoystick && axis > 0))
|
||||||
|
|
Loading…
Reference in a new issue