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: During intermission the 'players' command was checking the wrong flag to see who is ready
Next bug: Players can appear duplicated in the scoreboard on large servers

Bugfix 062 - Flamethrower serverside chunks can fly across the map if aimed properly

Problem:

When the flamechunk was reflected its speed wasn't normalized. This meant that in certain situations the chunks reflected speed would be enourmous.

Solution:

Normalize vel right after it gets copied.

Notes:

The bug is still present in version 2.60

2.56 & 2.60 Code

g_missile.c @ 1016 (2.56) @ 1030 (2.60) // uninitialized VectorCopy( ent->s.pos.trDelta, vel );
speed = VectorNormalize( vel ); // CHRUKER: b062 - TAT forgot to normalize it :-)
// Adust the current speed of the chunk if ( level.time - ent->timestamp > 50 ) {
speed = VectorNormalize( vel );
speed -= (50.f/1000.f) * FLAME_FRICTION_PER_SEC;

Show index
Previous bug: During intermission the 'players' command was checking the wrong flag to see who is ready
Next bug: Players can appear duplicated in the scoreboard on large servers

Color coding

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

©2017 Chruker