Skip to content

Add setVolumetricShadowsEnabled #2248

@fresholia

Description

@fresholia

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);

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions