mtasa-blue
mtasa-blue copied to clipboard
Add setVolumetricShadowsEnabled
We should add a new Lua function, setVolumetricShadowsEnabled, on the client-side only.
bool setVolumetricShadowsEnabled(bool state)
Returns true if successful, false otherwise
The volumetric shadows option can already be changed by the client in MTA Settings > Video > Volumetric Shadows.
Any server using this function will override the client's choice until they leave the server, upon which it will revert to the client's original choice.
implementation example
CGameSettings* pGameSettings = m_pGame->GetSettings();
pGameSettings->SetVolumetricShadowsEnabled(true/false);
Note: If the player leaves the server, setting should revert to their choice
~~What do you mean? Can scripts control that video setting on behalf of the client?~~
nevermind, didn't read title. try to include everything in the description of your issue, even if it's already in the title.
Well, what addition do you want?
I've updated your post as an example. Try to form full sentences and explain each part in as much detail - as though this is the first time someone has heard about volumetric shadows. As this is a "good first issue", it will help new contributors and also set a standard for their own issue submissions.
Thank you
Closeable
Closeable
@botder
Fixed in 6c93a49c4c2381f4ce84df195d98d36372a47d37