Enemy Territory

Project: Bug Fix

The objective

The goal of this project is to provide modders in the ET community with a SDK code base that contains fixes for various bugs which are present in the stock etmain game (version 2.60).

26th september 2006: Sadly bugfix 088 had a bug :-( There were 3 lines that should have been deleted for the fix to work correctly.

Show index
Previous bug: Compass icons were offset when zooming in or out
Next bug: Player always mouting the last gun used, on multiple tank maps

Bugfix 086 - Helmet insignias glowed in the dark

Problem:

The rank insignias on helmets were glowing in the dark.

Solution:

Change the shaders from 'rgbGen identity' to 'rgbGen lightingDiffuse'.

Notes:

There is something unknown that prevents the shader changes from taking place. Ex. rank10 is now correctly lit, but rank11 is still fullbright. I have not been able to find the cause of this fault, so I'll be using the ETPro way of dealing with it, which is to give the helmet insignias a different shadername. That is the reason for the following source code change.

2.60 Code

cg_statsranksmedals.c @ 1 #include "cg_local.h"
// CHRUKER: b086 - Helmet insignias glowed in the dark
rankicon_t rankicons[NUM_EXPERIENCE_LEVELS][2] = { { { 0, "gfx/hud/ranks/rank1", 128, 128 }, { 0, "bugfix/ranks/rank1", 128, 128 } }, { { 0, "gfx/hud/ranks/rank2", 128, 128 }, { 0, "bugfix/ranks/rank2", 128, 128 } }, { { 0, "gfx/hud/ranks/rank3", 128, 128 }, { 0, "bugfix/ranks/rank3", 128, 128 } }, { { 0, "gfx/hud/ranks/rank4", 128, 128 }, { 0, "bugfix/ranks/rank4", 128, 128 } }, { { 0, "gfx/hud/ranks/rank5", 128, 128 }, { 0, "bugfix/ranks/rank5", 128, 128 } }, { { 0, "gfx/hud/ranks/rank6", 128, 128 }, { 0, "bugfix/ranks/rank6", 128, 128 } }, { { 0, "gfx/hud/ranks/rank7", 128, 128 }, { 0, "bugfix/ranks/rank7", 128, 128 } }, { { 0, "gfx/hud/ranks/rank8", 128, 128 }, { 0, "bugfix/ranks/rank8", 128, 128 } }, { { 0, "gfx/hud/ranks/rank9", 128, 128 }, { 0, "bugfix/ranks/rank9", 128, 128 } }, { { 0, "gfx/hud/ranks/rank10", 128, 128 }, { 0, "bugfix/ranks/rank10", 128, 128 } }, { { 0, "gfx/hud/ranks/rank11", 128, 128 }, { 0, "bugfix/ranks/rank11", 128, 128 } }, };
// b086
void CG_LoadRankIcons( void ) { int i;
Put these shaders where you keep you own mods shaders
bugfix/ranks/rank1 { { map models/players/temperate/common/rank1.tga alphaFunc GE128 rgbGen lightingDiffuse } } bugfix/ranks/rank2 { { map models/players/temperate/common/rank2.tga alphaFunc GE128 rgbGen lightingDiffuse } } bugfix/ranks/rank3 { { map models/players/temperate/common/rank3.tga alphaFunc GE128 rgbGen lightingDiffuse } } bugfix/ranks/rank4 { { map models/players/temperate/common/rank4.tga alphaFunc GE128 rgbGen lightingDiffuse } } bugfix/ranks/rank5 { { map models/players/temperate/common/rank5.tga alphaFunc GE128 rgbGen lightingDiffuse } } bugfix/ranks/rank6 { { map models/players/temperate/common/rank6.tga alphaFunc GE128 rgbGen lightingDiffuse } } bugfix/ranks/rank7 { { map models/players/temperate/common/rank7.tga alphaFunc GE128 rgbGen lightingDiffuse } } bugfix/ranks/rank8 { { map models/players/temperate/common/rank8.tga alphaFunc GE128 rgbGen lightingDiffuse } } bugfix/ranks/rank9 { { map models/players/temperate/common/rank9.tga alphaFunc GE128 rgbGen lightingDiffuse } } bugfix/ranks/rank10 { { map models/players/temperate/common/rank10.tga alphaFunc GE128 rgbGen lightingDiffuse } } bugfix/ranks/rank11 { { map models/players/temperate/common/rank11.tga alphaFunc GE128 rgbGen lightingDiffuse } }

Show index
Previous bug: Compass icons were offset when zooming in or out
Next bug: Player always mouting the last gun used, on multiple tank maps

Color coding

Sample = New code
Sample = Changed code (the new version is what is displayed)
Sample = Deleted code

©2017 Chruker