mtasa-blue icon indicating copy to clipboard operation
mtasa-blue copied to clipboard

Add dynamic ped shadows

Open lopezloo opened this issue 3 years ago • 0 comments

This PR adds dynamic ped shadows feature found originally in single player version of GTA:SA. It can be enabled via new "Dynamic ped shadows" checkbox found in visual settings. This checkbox is enabled only if visual quality option is set to "high" or "very high". It's disabled by default.

In single player, these shadows are enabled for player ped only when quality is set to "high". When quality is set to "very high", these are enabled also for non player peds. I ditched that and this checkbox enables it for all peds. The limit is 16 shadows, after that game starts rendering blob shadows.

These shadows - just like blob shadows - do not render on custom placed objects (see #450).

Value of this option can be retrieved in scripts via dxGetStatus().SettingDynamicPedShadows.

In addition, this PR fixes vehicle blob shadows and lights not rendering on some objects when such vehicle is unoccupied (example position: 2463.023, -1713.818, 13.508). Similar thing was happening to these shadows aswell which is also fixed.

Video: https://streamable.com/d8qdfo

lopezloo avatar Sep 16 '22 05:09 lopezloo