Rumble: Also vibrate on the first half-second of a sneaker (panel), attenuating in strength with numsneakers.

This commit is contained in:
toaster 2023-04-03 00:13:17 +01:00
parent 6942298862
commit 8c58cde072

View file

@ -764,6 +764,11 @@ void P_Ticker(boolean run)
low = 65536 / 2;
high = 65536 / 2;
}
else if (player->sneakertimer > (sneakertime-(TICRATE/2)))
{
low = 65536 / (3+player->numsneakers);
high = 65536 / (3+player->numsneakers);
}
else if (player->boostpower < FRACUNIT && P_IsObjectOnGround(player->mo))
{
low = 65536 / 32;