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: No warmupdamage makes every func_explosive undamagable
Next bug: Engineers landmine abilities are increased at level 2 instead of level 3

Bugfix 025 - Free look broken

Problem:

The feature seems to have been disabled in ET.

Solution:

Reactivate it, and add the new limbo check.

References:

Original fix

Notes:

The bug was fixed in version 2.60, and it even looks more smooth.

2.56 Code

cg_view.c @ 252 VectorCopy( cg.refdefViewAngles, focusAngles );
// CHRUKER: b025 - Free look broken. This code was commented out and missing the PMF_LIMBO check
/* if ( cg.predictedPlayerState.stats[STAT_HEALTH] <= 0 && !(cg.predictedPlayerState.pm_flags & PMF_LIMBO) ) { focusAngles[YAW] = cg.predictedPlayerState.stats[STAT_DEAD_YAW]; cg.refdefViewAngles[YAW] = cg.predictedPlayerState.stats[STAT_DEAD_YAW]; }*/ if ( focusAngles[PITCH] > 45 ) {
cg_view.c @ 962 } else */
// CHRUKER: b025 - Free look broken
if( cg.snap->ps.pm_type == PM_FREEZE || (cg.snap->ps.pm_type == PM_DEAD && (cg.snap->ps.pm_flags & PMF_LIMBO)) || cg.snap->ps.pm_flags & PMF_TIME_LOCKPLAYER ) { // No movement for pauses cg.zoomSensitivity = 0;

Show index
Previous bug: No warmupdamage makes every func_explosive undamagable
Next bug: Engineers landmine abilities are increased at level 2 instead of level 3

Color coding

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

©2017 Chruker