mirror of
https://github.com/ZDoom/Raze.git
synced 2025-01-18 22:51:50 +00:00
- Blood: Add interpolation repair for kQAVSGUNFIR1
(res_id: 77). Thanks to @Phredreeke for the tiles with overlays baked in for this to work properly.
This commit is contained in:
parent
5160b7649c
commit
2ff1bdfd7d
7 changed files with 25 additions and 0 deletions
|
@ -969,6 +969,24 @@ static void qavRepairTileData(QAV* pQAV)
|
|||
pQAV->frames[i].tiles[1].picnum = -1;
|
||||
}
|
||||
break;
|
||||
case kQAVSGUNFIR1:
|
||||
{
|
||||
// SGUNFIR1'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[8] = { 9301, 9302, 9303, 9304, 9300, 9301, 9302, 3227 };
|
||||
|
||||
// Loop through each frame to remove overlay and replace use of 3227 with that from tilearray.
|
||||
for (i = 0; i < pQAV->nFrames; i++)
|
||||
{
|
||||
pQAV->frames[i].tiles[0] = pQAV->frames[i].tiles[1];
|
||||
pQAV->frames[i].tiles[1] = pQAV->frames[i].tiles[3];
|
||||
pQAV->frames[i].tiles[0].picnum = tilearray[i];
|
||||
pQAV->frames[i].tiles[2].picnum = -1;
|
||||
pQAV->frames[i].tiles[3].picnum = -1;
|
||||
|
||||
}
|
||||
break;
|
||||
}
|
||||
default:
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -59,3 +59,10 @@ tilefromtexture 9277 { file "tiles/9277.png" }
|
|||
tilefromtexture 9278 { file "tiles/9278.png" }
|
||||
tilefromtexture 9279 { file "tiles/9279.png" }
|
||||
tilefromtexture 9280 { file "tiles/9280.png" }
|
||||
|
||||
// Patched tiles for QAV interpolation, thanks to Phredreeke for supplying these.
|
||||
tilefromtexture 9300 { file "tiles/9300(3227+3228).png" }
|
||||
tilefromtexture 9301 { file "tiles/9301(3227+3229).png" }
|
||||
tilefromtexture 9302 { file "tiles/9302(3227+3230).png" }
|
||||
tilefromtexture 9303 { file "tiles/9303(3227+3231).png" }
|
||||
tilefromtexture 9304 { file "tiles/9304(3227+3232).png" }
|
||||
|
|
BIN
wadsrc/static/filter/blood/tiles/9300(3227+3228).png
Normal file
BIN
wadsrc/static/filter/blood/tiles/9300(3227+3228).png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.9 KiB |
BIN
wadsrc/static/filter/blood/tiles/9301(3227+3229).png
Normal file
BIN
wadsrc/static/filter/blood/tiles/9301(3227+3229).png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.9 KiB |
BIN
wadsrc/static/filter/blood/tiles/9302(3227+3230).png
Normal file
BIN
wadsrc/static/filter/blood/tiles/9302(3227+3230).png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.9 KiB |
BIN
wadsrc/static/filter/blood/tiles/9303(3227+3231).png
Normal file
BIN
wadsrc/static/filter/blood/tiles/9303(3227+3231).png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.9 KiB |
BIN
wadsrc/static/filter/blood/tiles/9304(3227+3232).png
Normal file
BIN
wadsrc/static/filter/blood/tiles/9304(3227+3232).png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.9 KiB |
Loading…
Reference in a new issue