433 {
434 SandstormController sandstormController =
GetSandstorm();
436 {
437 Man player = Man.Cast(object);
438 if (player)
439 {
440 return sandstormController.
GetIntensityForPlayer(player) * GameConstants.SANDSTORM_NOISE_REDUCTION_WEIGHT;
441 }
442 else
443 {
444 return sandstormController.
GetIntensity(
object.
GetPosition()) * GameConstants.SANDSTORM_NOISE_REDUCTION_WEIGHT;
445 }
446 }
447
448 return 0;
449 }
proto native float GetIntensity(vector worldPosition)
Returns the intensity of the sandstorm at a given position in world space. The sandstorm must be acti...
float GetIntensityForPlayer(Man player)
Returns the intensity of the sandstorm at a players head position in world space. Value is influenced...
proto native bool IsActive()
Returns whether sandstorm is currently active.
proto native Sandstorm GetSandstorm()
Returns the sandstorm phenomenon weather controller.
vector GetPosition()
Get the world position of the Effect.