This tool automatically sets FadeMinDist = -1 and FadeMaxDist = 0 on every prop_static in a BSP map (currently v20-v21), preventing fade and having to do it manually in Hammer (this was designed for maps used in SFM since animators don't like fade)
CMakeLists.txt
src/
lzma/ — the cloned LZMA C lib
BSPTypes.h — all format structs (Lump, BSPHeader, ValveLZMAHeader, etc)
LZMA.h / .cpp — Valve format LZMA compress/decompress via liblzma
BSP.h / .cpp — BSP loader/writer (parseGameLumps, bake)
StaticProps.h /.cpp — sprp patcher (v7* detection)
main.cpp — the EXE entry point
Only the C library from liblzma cloned from here
in order to build this tool follow this steps for each (supported) platform
just open the terminal on the root path of the repo (FadeStripper folder) and paste the following
::windows
cmake -B build -G "Visual Studio 17 2022" -A x64 &&
cmake --build build --config Release# GCC / Clang
cmake -B build -DCMAKE_BUILD_TYPE=Release &&
cmake --build buildthe file will be located on build/bin and then you could place it anywhere on your disk
It's as easy as grabbing and dropping the desired map onto the executable OR you can pass the arguments through any terminal (mainly for linux/clang users)
Example:
FadeStripper.exe path/to/my_awesome_map.bsp
Output: mapname_no_fade.bsp on the same path
The LZMA compressed game lumps are automatically detected, decompressed, patched, and recompressed
- Add support to remove fade on decals and detailed props