NxLabs / Insurgency: Sandstorm
Flashlight Shadows
Enable shadows on weapon flashlights
Description
MUTATOR NAME: FLASHLIGHT_SHADOWS
The console command "r.WeaponLightShadows" seems to have been blocked in the latest game update. Probably as part of a wider fix for some command-related exploits. I used to use this command a lot because I felt the standard flashlight effect is a little too "fullbright", so was a bit disappointed to find it no longer works as of game version 15.1. This mod forces shadows to be enabled for all flashlights (and IR flashlights).
The mod uses a script instead of custom flashlight assets, so should be compatible with other mods including custom theatres. It should also work with mods which do add custom flashlight assets as long as they inherit from the base-game flashlight upgrade blueprint.
You need to have shadow quality set to "medium" or higher in your video settings for the shadows to appear, as they are dynamic.
CONFIG
I found that using flashlights during the day looks a little odd because the lighting properties aren't tuned for it. Mainly the light is too bright and reaches too far. Since this mod already changes lighting options on the fly I thought I'd add the option to adjust that here - disabled by default for simplicity. You can use the following options to modify the light intensity and attenuation in Game.ini:
[/FlashlightShadows/Mutators/BP_Mutator_Flashlight_Shadows.BP_Mutator_Flashlight_Shadows_C] bOverrideDaytimeBrightness=True ; The overall "brightness" of the light. Default night value: 2.5 DayLightIntensity=2.0 ; The distance that the light reaches in Unreal Units. 100uu = 1 metre. Default night value: 6600 DayLightAttenuationRadius=2000
Still in the testing phase while I check for any issues with replication when using the mod on a server. Let me know if you experience any below!
KNOWN ISSUES
Weapon flashlight properties won't be updated for players you spectate. Haven't quite figured out how to break into that yet. That means no shadows/brightness changes when spectating players using flashlights, but should be correct for you when you spawn.
Third-person weapon flashlights will not cast shadows, this mod only works from a first-person perspective.
Ratings & reviews
Sign in to leave a rating or comment.