Function CameraSetEQNoiseForPlayer
- Line
- 1484
- Location
- blizzard.j
- Constant?
- no
- Type
- function
- Arguments
- player whichPlayer, real magnitude
- Returns
- nothing
| 1484 | function CameraSetEQNoiseForPlayer takes player whichPlayer, real magnitude returns nothing |
| 1485 | local real richter = magnitude |
| 1486 | if (richter > 5.0) then |
| 1487 | set richter = 5.0 |
| 1488 | endif
|
| 1489 | if (richter < 2.0) then |
| 1490 | set richter = 2.0 |
| 1491 | endif
|
| 1492 | if (GetLocalPlayer() == whichPlayer) then |
| 1493 | // Use only local code (no net traffic) within this block to avoid desyncs.
|
| 1494 | call CameraSetTargetNoiseEx(magnitude*2.0, magnitude*Pow(10,richter),true) |
| 1495 | call CameraSetSourceNoiseEx(magnitude*2.0, magnitude*Pow(10,richter),true) |
| 1496 | endif
|
| 1497 | endfunction
|