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: Endgame awards and medals get handed out to the player with the highest XP in the different fields
Next bug: Player booted to spec if they have level 4 light weapon or heavy weapon skills at map start

Bugfix 018 - Respawn timer is shown while spectating

Problem:

The respawn timer is shown to spectators. However its value haven't gotten anything to do with when players spawn.

Solution:

Make sure the player isn't spectating before adding the reinforcement timer.

Notes:

The bug is still present in version 2.60

2.56 & 2.60 Code

cg_draw.c @ 483 vec4_t timerBorder = { 0.5f, 0.5f, 0.5f, 0.5f };
// CHRUKER: b018 - Respawn timer shouldn't be shown in spectator mode
rt = (cgs.gametype != GT_WOLF_LMS && (cgs.clientinfo[cg.clientNum].team != TEAM_SPECTATOR || cg.snap->ps.pm_flags & PMF_FOLLOW) && cg_drawReinforcementTime.integer > 0) ? va("^F%d%s", CG_CalculateReinfTime( qfalse ), ((cgs.timelimit <= 0.0f) ? "" : " ")) : "";

Show index
Previous bug: Endgame awards and medals get handed out to the player with the highest XP in the different fields
Next bug: Player booted to spec if they have level 4 light weapon or heavy weapon skills at map start

Color coding

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

©2017 Chruker