multitheftauto/mtasa-blue

setRainStreaksEnabled

Opened this issue · 3 comments

Is your feature request related to a problem? Please describe.

The idea is that this would only disable rain streaks, so the rest of the rain mechanics would remain the same.

This could be used in anti-lag resources and would also allow the creation of new rain particles with functions such as dxDrawLine3D and dxDrawMaterialLine3D.

Describe the solution you'd like

bool setRainStreaksEnabled ( bool enabled )
bool isRainStreaksEnabled ()

Describe alternatives you've considered

No response

Additional context

No response

Security Policy

  • I have read and understood the Security Policy and this issue is not about a cheat or security vulnerability.

Have you tried setRainLevel(0.1) ? That way you'd get minimal rain streaks, but should still get some of the other rain effects. Also are you aware of https://wiki.multitheftauto.com/wiki/SetWorldProperty which allows you to do stuff like turn on wet roads without rain?

yeah setRainLevel(0.1) works, but that is a workaround, a native solution like setWeaponRenderEnabled would much better to maintain simplicity and compatibility with other resources

setWorldProperty("WetRoads", 0) also changes vehicle grip

Have you tried setRainLevel(0.1) ? That way you'd get minimal rain streaks, but should still get some of the other rain effects. Also are you aware of https://wiki.multitheftauto.com/wiki/SetWorldProperty which allows you to do stuff like turn on wet roads without rain?

It would be better to set to 0.2
https://github.com/gta-reversed/gta-reversed/blob/0dd2b020cc0d193e6b51bf52cf7526c79cf4e7cd/source/game_sa/Weather.cpp#L337