mirror of
https://github.com/DrBeef/Doom3Quest.git
synced 2024-11-23 12:22:20 +00:00
Slight tweak to generic rumble code
This commit is contained in:
parent
b2c8d1320d
commit
0a0847fd80
1 changed files with 4 additions and 0 deletions
|
@ -429,6 +429,10 @@ void idPlayerView::CalculateShake() {
|
|||
|
||||
player->hands[HAND_RIGHT].SetControllerShake( highMag, highDuration, lowMag, lowDuration );
|
||||
player->hands[HAND_LEFT].SetControllerShake( highMag, highDuration, lowMag, lowDuration );
|
||||
|
||||
//generic rumbling - keep it low
|
||||
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