mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 08:52:00 +00:00
- Blood: Add interpolation repair for kQAV2SGUNFIR
(res_id: 84). Thanks to @Phredreeke for the tiles with overlays baked in for this to work properly.
This commit is contained in:
parent
073f0d953f
commit
22e348613f
7 changed files with 29 additions and 0 deletions
|
@ -1046,6 +1046,30 @@ static void qavRepairTileData(QAV* pQAV)
|
||||||
// Set frame 0 tile 3 picnum to 3311.
|
// Set frame 0 tile 3 picnum to 3311.
|
||||||
pQAV->frames[0].tiles[3].picnum = 3311;
|
pQAV->frames[0].tiles[3].picnum = 3311;
|
||||||
break;
|
break;
|
||||||
|
case kQAV2SGUNFIR:
|
||||||
|
{
|
||||||
|
// 2SGUNFIR's overlay sizes vary from tile to tile and don't interpolate properly.
|
||||||
|
// Use repaired tiles from Phredreeke where the overlays are baked in.
|
||||||
|
constexpr int tilearray[2][8] = {
|
||||||
|
{
|
||||||
|
9306, 9307, 9308, 9309, 9305, 9306, 9307, 3240
|
||||||
|
},
|
||||||
|
{
|
||||||
|
3240, 9307, 9306, 9305, 9309, 9308, 9307, 9306
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
// Loop through each frame to remove overlay and replace use of 3240 with that from tilearray and disable overlays.
|
||||||
|
for (i = 0; i < pQAV->nFrames; i++)
|
||||||
|
{
|
||||||
|
pQAV->frames[i].tiles[0].picnum = tilearray[0][i];
|
||||||
|
pQAV->frames[i].tiles[4].picnum = -1;
|
||||||
|
|
||||||
|
pQAV->frames[i].tiles[2].picnum = tilearray[1][i];
|
||||||
|
pQAV->frames[i].tiles[5].picnum = -1;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
default:
|
default:
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -66,3 +66,8 @@ tilefromtexture 9301 { file "tiles/9301(3227+3229).png" }
|
||||||
tilefromtexture 9302 { file "tiles/9302(3227+3230).png" }
|
tilefromtexture 9302 { file "tiles/9302(3227+3230).png" }
|
||||||
tilefromtexture 9303 { file "tiles/9303(3227+3231).png" }
|
tilefromtexture 9303 { file "tiles/9303(3227+3231).png" }
|
||||||
tilefromtexture 9304 { file "tiles/9304(3227+3232).png" }
|
tilefromtexture 9304 { file "tiles/9304(3227+3232).png" }
|
||||||
|
tilefromtexture 9305 { file "tiles/9305(3240+3228).png" }
|
||||||
|
tilefromtexture 9306 { file "tiles/9306(3240+3229).png" }
|
||||||
|
tilefromtexture 9307 { file "tiles/9307(3240+3230).png" }
|
||||||
|
tilefromtexture 9308 { file "tiles/9308(3240+3231).png" }
|
||||||
|
tilefromtexture 9309 { file "tiles/9309(3240+3232).png" }
|
||||||
|
|
BIN
wadsrc/static/filter/blood/tiles/9305(3240+3228).png
Normal file
BIN
wadsrc/static/filter/blood/tiles/9305(3240+3228).png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3 KiB |
BIN
wadsrc/static/filter/blood/tiles/9306(3240+3229).png
Normal file
BIN
wadsrc/static/filter/blood/tiles/9306(3240+3229).png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3 KiB |
BIN
wadsrc/static/filter/blood/tiles/9307(3240+3230).png
Normal file
BIN
wadsrc/static/filter/blood/tiles/9307(3240+3230).png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3 KiB |
BIN
wadsrc/static/filter/blood/tiles/9308(3240+3231).png
Normal file
BIN
wadsrc/static/filter/blood/tiles/9308(3240+3231).png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3 KiB |
BIN
wadsrc/static/filter/blood/tiles/9309(3240+3232).png
Normal file
BIN
wadsrc/static/filter/blood/tiles/9309(3240+3232).png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3 KiB |
Loading…
Reference in a new issue