invertedpenguin: replaced the shader of the blood pool behind RA

This commit is contained in:
myT 2022-12-13 05:10:57 +01:00
parent 3c8cb0f592
commit cb38533de5
2 changed files with 13 additions and 1 deletions

View file

@ -55,6 +55,8 @@ add: /waitms <milliseconds> to delay command executions by the specified number
add: r_alphaToCoverageMipBoost <0.0 to 0.5> (default: 0.125) boosts the alpha value of higher mip levels
with A2C enabled, it prevents alpha-tested surfaces from fading (too much) in the distance
chg: invertedpenguin's RA blood pool has a new look to help better see the RA against its background
chg: forcing the nopicmip flag on 2 new texture folders: "textures/npmenv" and "textures/npmpads"
chg: r_vertexLight 1 no longer collapses shaders but replaces lightmaps with vertex colors

View file

@ -1617,7 +1617,8 @@ void RE_LoadWorldMap( const char* name )
tr.worldMapLoaded = qtrue;
byte* buffer;
ri.FS_ReadFile( name, (void**)&buffer );
int pakChecksum = 0;
ri.FS_ReadFilePak( name, (void**)&buffer, &pakChecksum );
if ( !buffer )
ri.Error( ERR_DROP, "RE_LoadWorldMap: %s not found", name );
@ -1663,6 +1664,15 @@ void RE_LoadWorldMap( const char* name )
tr.world = &s_worldData;
ri.FS_FreeFile( buffer );
// invertedpenguin: replace the blood pool behind the RA because it severely impedes legibility
// (yes, r_mapGreyscale can be an effective work-around)
if ( pakChecksum == 1472072794 &&
s_worldData.numsurfaces == 3064 &&
!Q_stricmp( R_GetMapName(), "invertedpenguin" ) &&
!Q_stricmp( s_worldData.surfaces[2859].shader->name, "textures/inpe/m_liq/meat_liquid_bloodpool_A" ) ) {
s_worldData.surfaces[2859].shader = R_FindShader( "textures/liquids/calm_poollight", LIGHTMAP_NONE, 0 );
}
}