bspsrc icon indicating copy to clipboard operation
bspsrc copied to clipboard

CS:GO Static props missing keyvalues

Open Darnias opened this issue 5 years ago • 3 comments

Some prop_static keyvalues are lost when decompiled. Not sure if they are retrievable from the lumps or lost forever. I'm providing source model and decompiled for comparison. The important one is "Ignore Surface Normal" and maybe "Enable Bounced Lighting". Thanks for considering any options! Decompiled Original

Darnias avatar May 13 '20 21:05 Darnias

Ignore Surface Normal not being set is a simple oversight in the code, which I've fixed in #110. Enable Bounced Lighting on the other hand is sadly not related to that bug. I'll see if I can find the reason for it not working.

rihi avatar Aug 09 '20 23:08 rihi

The fix has now been released with version 1.4.1. As far as I know, Enable Bounced Lighting sadly can't be correctly set, as that information is basically "lost" on compilation.

rihi avatar Nov 26 '21 00:11 rihi

Bounced lighting is set via the flagsEx bitfield. Known values are:

  • 0x1 - disableshadowdepth KV (I think)
  • 0x2 - disables CSM; I don't think there's a KV for this
  • 0x4 - enablelightbounce KV

SirYodaJedi avatar Mar 12 '24 02:03 SirYodaJedi