mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
2 -> 3 tics to kick in
slight anti-twerk tweak
This commit is contained in:
parent
73e1d4f67b
commit
28b16aa50c
1 changed files with 8 additions and 4 deletions
12
src/k_kart.c
12
src/k_kart.c
|
|
@ -9296,14 +9296,18 @@ static void K_UpdateTripwire(player_t *player)
|
|||
if (triplevel == TRIPWIRE_NONE || triplevel == TRIPWIRE_CONSUME)
|
||||
{
|
||||
// Peek at the relevant values:
|
||||
// CONS_Printf("airtime: %d, twLen: %d, twAirLen: %d\n", player->airtime, player->tripwireLeniency, player->tripwireAirLeniency);
|
||||
/*
|
||||
if (player->airtime == 0)
|
||||
CONS_Printf("airtime: , twLen: %d, twAirLen: %d\n", player->tripwireLeniency, player->tripwireAirLeniency);
|
||||
else
|
||||
CONS_Printf("airtime: %d, twLen: %d, twAirLen: %d\n", player->airtime, player->tripwireLeniency, player->tripwireAirLeniency);
|
||||
*/
|
||||
|
||||
if (boostExists)
|
||||
{
|
||||
// If player is MOSTLY on the ground.
|
||||
// Arbitrary number based on other code that claimed the player is often
|
||||
// slightly aerial in ground-to-ground transitions and other such edge cases.
|
||||
if (player->airtime < 2)
|
||||
// Takes 3 tics to kick in because this is NOT meant for twerking
|
||||
if (player->airtime < 3)
|
||||
{
|
||||
player->tripwireLeniency--;
|
||||
if (goodSpeed == false && player->tripwireLeniency > 0)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue