mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 04:21:47 +00:00
Allow spin button Jump Shield normally.
If you walk off a cliff with a jump shield, you can now press EITHER the jump or spin buttons to activate it and double jump.
This commit is contained in:
parent
406d809bc2
commit
2d14173968
1 changed files with 7 additions and 5 deletions
12
src/p_user.c
12
src/p_user.c
|
|
@ -3832,11 +3832,13 @@ static void P_DoJumpStuff(player_t *player, ticcmd_t *cmd)
|
||||||
|
|
||||||
if (cmd->buttons & BT_USE && !(player->pflags & PF_JUMPDOWN) && !player->exiting && !P_PlayerInPain(player))
|
if (cmd->buttons & BT_USE && !(player->pflags & PF_JUMPDOWN) && !player->exiting && !P_PlayerInPain(player))
|
||||||
{
|
{
|
||||||
if (onground || player->climbing || player->pflags & (PF_CARRIED|PF_ITEMHANG|PF_ROPEHANG))
|
if (onground || player->climbing || player->pflags & (PF_CARRIED|PF_ITEMHANG|PF_ROPEHANG|PF_SLIDING)
|
||||||
{}
|
|| (player->pflags & PF_MACESPIN && player->mo->tracer))
|
||||||
else if (player->pflags & PF_MACESPIN && player->mo->tracer)
|
;
|
||||||
{}
|
else if ((player->powers[pw_shield] & SH_NOSTACK) == SH_JUMP
|
||||||
else if (!(player->pflags & PF_SLIDING) && ((gametype != GT_CTF) || (!player->gotflag)))
|
&& !(player->pflags & PF_JUMPED))
|
||||||
|
P_DoJumpShield(player);
|
||||||
|
else if (gametype != GT_CTF || !player->gotflag)
|
||||||
{
|
{
|
||||||
#ifdef HAVE_BLUA
|
#ifdef HAVE_BLUA
|
||||||
if (!LUAh_JumpSpinSpecial(player))
|
if (!LUAh_JumpSpinSpecial(player))
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue