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: Referee commands doesn't work in server console
Next bug: Missing increase in accuracy (spread reduction) at level 3

Bugfix 006 - Coverts can steal uniforms while wounded

Problem:

When a covert is wounded close enough to an enemy. He can still steal the uniform.

Solution:

Check the health state of the player trying to steal the uniform.

References:

Spawning thread

Notes:

The bug was fixed in version 2.60

2.56 Code

g_cmds.c @ 2423 qboolean Do_Activate2_f(gentity_t *ent, gentity_t *traceEnt) { qboolean found = qfalse;
// CHRUKER: b006 - Only steal if we are alive
if( ent->client->sess.playerType == PC_COVERTOPS && !ent->client->ps.powerups[PW_OPS_DISGUISED] && ent->health > 0 ) { if( !ent->client->ps.powerups[PW_BLUEFLAG] && !ent->client->ps.powerups[PW_REDFLAG] ) { if( traceEnt->s.eType == ET_CORPSE ) {

Show index
Previous bug: Referee commands doesn't work in server console
Next bug: Missing increase in accuracy (spread reduction) at level 3

Color coding

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

©2017 Chruker