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: Correct placement of the map name
Next bug: When a landmine cannot be placed, the correct amount of weapon charge is given back

Bugfix 050 - Knife now has antilag

Problem:

The knife code didn't use the trace function which was antilagged.

Solution:

Let it use G_HistoricalTrace instead of trap_Trace.

Notes:

The bug was fixed in version 2.60

2.56 Code

g_weapon.c @ 106 CalcMuzzlePoint ( ent, ent->s.weapon, forward, right, up, muzzleTrace ); VectorMA (muzzleTrace, KNIFE_DIST, forward, end);
trap_Trace (&tr, muzzleTrace, NULL, NULL, end, ent->s.number, MASK_SHOT);
// CHRUKER: b050 - Applied rain's fix to antilag knife G_HistoricalTrace(ent, &tr, muzzleTrace, NULL, NULL, end, ent->s.number, MASK_SHOT);
if ( tr.surfaceFlags & SURF_NOIMPACT )

Show index
Previous bug: Correct placement of the map name
Next bug: When a landmine cannot be placed, the correct amount of weapon charge is given back

Color coding

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

©2017 Chruker