Revert "disable bouncy fastfall via directive"
This reverts commit bdbf388072.
This commit is contained in:
parent
bdbf388072
commit
657bbf8521
3 changed files with 2 additions and 14 deletions
|
|
@ -615,9 +615,7 @@ consvar_t cv_kartdrafting_basedistance = CVAR_INIT ("kartdrafting_basedistance",
|
|||
|
||||
static CV_PossibleValue_t airdrop_cons_t[] = {{AIRDROP_NONE, "Off"},
|
||||
{AIRDROP_LIGHT, "Light"},
|
||||
#if 0
|
||||
{AIRDROP_BOUNCY, "Bouncy"},
|
||||
#endif
|
||||
{AIRDROP_HEAVY, "Heavy"},
|
||||
{0, NULL}};
|
||||
consvar_t cv_kartairdrop = CVAR_INIT ("kartairdrop", "Off", CV_NETVAR|CV_CALL|CV_NOINIT|CV_GUARD, airdrop_cons_t, KartAirDrop_OnChange);
|
||||
|
|
|
|||
12
src/k_kart.c
12
src/k_kart.c
|
|
@ -6991,7 +6991,6 @@ static void K_AirDrop(player_t *player, ticcmd_t *cmd)
|
|||
{
|
||||
if ((player->pflags & PF_AIRDROP))
|
||||
{
|
||||
#if 0
|
||||
if (airdropactive == AIRDROP_BOUNCY)
|
||||
{
|
||||
const fixed_t maxBounce = mapobjectscale * 10;
|
||||
|
|
@ -7039,17 +7038,12 @@ static void K_AirDrop(player_t *player, ticcmd_t *cmd)
|
|||
S_StartSound(player->mo, sfx_vclgna);
|
||||
}
|
||||
else if (airdropactive == AIRDROP_HEAVY)
|
||||
#endif
|
||||
if (airdropactive == AIRDROP_HEAVY)
|
||||
{
|
||||
if (player->rings > 0)
|
||||
{
|
||||
P_PlayerRingBurst(player, min(2, player->rings));
|
||||
}
|
||||
player->startboost = TICRATE/2;
|
||||
|
||||
// POOMP!
|
||||
S_StartSound(player->mo, sfx_vclgna);
|
||||
}
|
||||
}
|
||||
player->airdroptime = 0;
|
||||
|
|
@ -7073,7 +7067,7 @@ static void K_AirDrop(player_t *player, ticcmd_t *cmd)
|
|||
}
|
||||
else
|
||||
{
|
||||
if (airdropactive == AIRDROP_LIGHT && !(cmd->buttons & BT_BRAKE))
|
||||
if (airdropactive == AIRDROP_LIGHT)
|
||||
player->pflags &= ~PF_AIRDROP;
|
||||
}
|
||||
|
||||
|
|
@ -7082,7 +7076,6 @@ static void K_AirDrop(player_t *player, ticcmd_t *cmd)
|
|||
|
||||
K_SpawnFallLines(player, false);
|
||||
|
||||
#if 0
|
||||
if (airdropactive == AIRDROP_BOUNCY)
|
||||
{
|
||||
player->airdroptime = player->mo->momz;
|
||||
|
|
@ -7092,7 +7085,6 @@ static void K_AirDrop(player_t *player, ticcmd_t *cmd)
|
|||
}
|
||||
}
|
||||
else
|
||||
#endif
|
||||
{
|
||||
if (player->airdroptime < UINT8_MAX)
|
||||
player->airdroptime++;
|
||||
|
|
@ -7103,13 +7095,11 @@ static void K_AirDrop(player_t *player, ticcmd_t *cmd)
|
|||
player->mo->momz -= FixedMul(4*gravity, mapobjectscale)*P_MobjFlip(player->mo);
|
||||
K_SpawnAirdropTrail(player);
|
||||
}
|
||||
#if 0
|
||||
else if (airdropactive == AIRDROP_LIGHT)
|
||||
{
|
||||
player->mo->momz -= FixedMul(gravity, mapobjectscale)*P_MobjFlip(player->mo);
|
||||
K_SpawnAirdropTrail(player);
|
||||
}
|
||||
#endif
|
||||
else
|
||||
{
|
||||
player->mo->momz -= FixedMul(2*gravity, mapobjectscale)*P_MobjFlip(player->mo);
|
||||
|
|
|
|||
|
|
@ -424,7 +424,7 @@ typedef enum
|
|||
AIRDROP_NONE = 0,
|
||||
AIRDROP_LIGHT,
|
||||
AIRDROP_HEAVY,
|
||||
// AIRDROP_BOUNCY,
|
||||
AIRDROP_BOUNCY,
|
||||
} airdroptype_t;
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
|
|
|||
Loading…
Reference in a new issue