2 -> 3 tics to kick in

slight anti-twerk tweak
This commit is contained in:
eebrozgi 2025-06-30 15:47:26 +03:00
parent 73e1d4f67b
commit 28b16aa50c

View file

@ -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)