BSP (Source)/Static prop flags: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
Line 74: Line 74:
| 0x00000001
| 0x00000001
| STATIC_PROP_FLAGS_EX_DISABLE_SHADOW_DEPTH
| STATIC_PROP_FLAGS_EX_DISABLE_SHADOW_DEPTH
|  
| Set if {{code|disableshadowdepth}} is enabled.
|-
|-
| 0x00000002
| 0x00000002
Line 82: Line 82:
| 0x00000004
| 0x00000004
| STATIC_PROP_FLAGS_EX_ENABLE_LIGHT_BOUNCE
| STATIC_PROP_FLAGS_EX_ENABLE_LIGHT_BOUNCE
|  
| Set if {{code|enablelightbounce}} is enabled.
|-
|-
|}
|}

Revision as of 10:21, 17 September 2024

These flags are defined in 🖿public/gamebspfile.h.

Flags

This is 8-bit in all versions of the static prop lump except for Source 2013 Multiplayer, where it is 32-bit.

Bit Name Dev comment Description
0x00000001 STATIC_PROP_FLAG_FADES Set by engine at runtime
0x00000002 STATIC_PROP_USE_LIGHTING_ORIGIN Set by engine at runtime
0x00000004
(in all games since Source 2007)
(removed since Portal 2)
STATIC_PROP_NO_DRAW computed at run time based on dx level Set by engine at runtime
0x00000004
(in all games since Portal 2)
STATIC_PROP_NO_FLASHLIGHT N/A (source code not public) Set if disableflashlight is enabled.
0x00000008
(in all games since Source 2007)
STATIC_PROP_IGNORE_NORMALS none Set if ignorenormals is enabled.
0x00000010 STATIC_PROP_NO_SHADOW none Set if disableshadows is enabled.
0x00000020
(removed since Portal 2)
STATIC_PROP_SCREEN_SPACE_FADE none Set if disableshadows is enabled.
0x00000020
(in all games since Portal 2)
STATIC_PROP_MARKED_FOR_FAST_REFLECTION N/A (source code not public) Set if drawinfastreflection is enabled.
0x00000040
(in all games since Source 2006)
STATIC_PROP_NO_PER_VERTEX_LIGHTING in vrad, compute lighting at lighting origin, not for each vertex Set if disablevertexlighting is enabled.
0x00000080
(in all games since Source 2006)
STATIC_PROP_NO_SELF_SHADOWING disable self shadowing in vrad Set if disableselfshadowing is enabled.
0x00000100
(only in Source 2013 Multiplayer)
STATIC_PROP_NO_PER_TEXEL_LIGHTING whether we should do per-texel lightmaps in vrad. Set if generatelightmaps is disabled.

FlagsEX

Counter-Strike: Global Offensive Counter-Strike: Global Offensive's static prop lump adds an extra 32-bit set of flags, most of which are unused.

Bit Name Description
0x00000001 STATIC_PROP_FLAGS_EX_DISABLE_SHADOW_DEPTH Set if disableshadowdepth is enabled.
0x00000002 STATIC_PROP_FLAGS_EX_DISABLE_CSM Automatically set at runtime
0x00000004 STATIC_PROP_FLAGS_EX_ENABLE_LIGHT_BOUNCE Set if enablelightbounce is enabled.