mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-03-13 22:56:28 +00:00
Adjustments to Rumble
- Cause more intense rumble for damage/damage-causing hitlag - Reduce intensity for offroad/bananadrag rumble
This commit is contained in:
parent
380beaa023
commit
6942298862
1 changed files with 8 additions and 3 deletions
11
src/p_tick.c
11
src/p_tick.c
|
|
@ -759,10 +759,15 @@ void P_Ticker(boolean run)
|
|||
if (player->mo == NULL)
|
||||
continue;
|
||||
|
||||
if (player->boostpower < FRACUNIT && P_IsObjectOnGround(player->mo))
|
||||
if ((player->mo->eflags & MFE_DAMAGEHITLAG) && player->mo->hitlag)
|
||||
{
|
||||
low = 65536 / 4;
|
||||
high = 65536 / 4;
|
||||
low = 65536 / 2;
|
||||
high = 65536 / 2;
|
||||
}
|
||||
else if (player->boostpower < FRACUNIT && P_IsObjectOnGround(player->mo))
|
||||
{
|
||||
low = 65536 / 32;
|
||||
high = 65536 / 32;
|
||||
}
|
||||
|
||||
G_PlayerDeviceRumble(i, low, high);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue