Rumble on wall hit
This commit is contained in:
parent
c8a5142593
commit
3dab43cbcc
1 changed files with 6 additions and 1 deletions
|
|
@ -712,7 +712,12 @@ void G_ControllerRumbleTick(void)
|
|||
continue;
|
||||
}
|
||||
|
||||
if (player->spinouttimer)
|
||||
if (player->mo->eflags & MFE_JUSTBOUNCEDWALL)
|
||||
{
|
||||
high = RUMBLE_STRONG;
|
||||
low = RUMBLE_MODERATE;
|
||||
}
|
||||
else if (player->spinouttimer)
|
||||
{
|
||||
//low = high = FRACUNIT / 6;
|
||||
low = high = FixedMul((RUMBLE_VERYSTRONG), (FixedDiv(player->spinouttimer, (3*TICRATE / 2)))); // try do some some kinda fadeout, 3*TICRATE / 2 is the "default" spinout time
|
||||
|
|
|
|||
Loading…
Reference in a new issue