Serious Sam's Bogus Detour

Serious Sam's Bogus Detour

Workshop
Create, share and play!
Learn More
Monsters showing in the dark
How do I hide enemies in the dark? We have changed the lighting env to black.env, but the enemies show up like were they fully lit.
< >
Showing 1-4 of 4 comments
Mr Stillwell 1 12 Jul, 2017 @ 3:26pm 
Made the mosters not glow in the dark by adding a new default material. Problem is that it darkens the enemy completely.
<material name="enemy_dark"> <blend-mode value="blend" /> <shadow-mode value="lit" /> <parallax value="0 0" /> <color value="0 0 0 255" /> <light-influence value="255 255 255"/> <xray value="255 0 0 255" /> <outline value="0 0 0 0" /> <decal-mode value="none" /> <glow-mode value="none" /> </material>
I've tried messing around with all the values, but only setting the color value to black seems to do the trick, but it creates a new issue with a completely dark enemy, even when in light.
Last edited by Mr Stillwell; 12 Jul, 2017 @ 3:28pm
hipshot  [developer] 1 14 Jul, 2017 @ 3:03am 
Ok, so the enemy material has some light influence on them, if you change that you can make them take in light different =)
hipshot  [developer] 1 14 Jul, 2017 @ 3:04am 
This is the value you want to mess around with: <light-influence value="255 255 255"/>
Mr Stillwell 1 14 Jul, 2017 @ 4:12am 
I've made it work now, but by setting the light influence values to exactly like I had them before (255 255 255). Don't know why it didn't work before, but it does now so I'm happy :)

Material for an enemy that gets hidden in the dark and has no outline:
<material name="enemy_dark"> <blend-mode value="blend" /> <shadow-mode value="lit" /> <parallax value="0 0" /> <color value="255 255 255 255" /> <light-influence value="255 255 255"/> <xray value="255 0 0 255" /> <outline value="0 0 0 0" /> <decal-mode value="none" /> <glow-mode value="none" /> </material>
< >
Showing 1-4 of 4 comments
Per page: 1530 50