mirror of
https://github.com/DrBeef/Doom3Quest.git
synced 2025-04-24 08:08:57 +00:00
Slight tweak to generic rumble code
This commit is contained in:
parent
6f6a78b16e
commit
48c68d9e99
1 changed files with 2 additions and 1 deletions
|
@ -431,7 +431,8 @@ void idPlayerView::CalculateShake() {
|
|||
player->hands[HAND_LEFT].SetControllerShake( highMag, highDuration, lowMag, lowDuration );
|
||||
|
||||
//generic rumbling - keep it low
|
||||
common->HapticEvent("rumble", 0, 0, 30.0f * idMath::ClampFloat(0.1, 1.0, shakeVolume*2.0f + 0.1f), highDuration, 0);
|
||||
common->HapticEvent("rumble_front", 0, 0, 30.0f * idMath::ClampFloat(0.1, 1.0, shakeVolume*2.0f + 0.1f), highDuration, 0);
|
||||
common->HapticEvent("rumble_back", 0, 0, 30.0f * idMath::ClampFloat(0.1, 1.0, shakeVolume*2.0f + 0.1f), highDuration, 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue