Skip to content

Commit

Permalink
Private duel shell tweak for JA+/jaPRO/co-op
Browse files Browse the repository at this point in the history
Disabled the color dimming when player moves far away, shell still fades based on distance though.
  • Loading branch information
Bucky21659 committed Jun 22, 2020
1 parent 8ba8ba0 commit f7d2657
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions codemp/cgame/cg_players.c
Original file line number Diff line number Diff line change
Expand Up @@ -12323,10 +12323,10 @@ void CG_Player( centity_t *cent ) {
trap->R_AddRefEntityToScene(&legs); //draw the shell

legs.customShader = 0; //reset to player model
if (cgs.serverMod >= SVMOD_JAPLUS) { // dim color further away
legs.shaderRGBA[0] = Q_max(savRGBA[0] - subLen / 32, 1);
legs.shaderRGBA[1] = Q_max(savRGBA[1] - subLen / 32, 1);
legs.shaderRGBA[2] = Q_max(savRGBA[2] - subLen / 32, 1);
if (cgs.serverMod >= SVMOD_JAPLUS) { // don't dim color
legs.shaderRGBA[0] = savRGBA[0];
legs.shaderRGBA[1] = savRGBA[1];
legs.shaderRGBA[2] = savRGBA[2];
}
else {
legs.shaderRGBA[0] = Q_max(savRGBA[0] - subLen / 8, 1);
Expand Down

0 comments on commit f7d2657

Please sign in to comment.