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: Kick command is not able to kick some players by name
Next bug: Calling for a lot of artillery or airstrikes can result voice over spam

Bugfix 098 - Garand couldn't reload mid-clip

Problem:

The M1 Garand weapons (engineer and sniper rifles) can't reload due to a piece of code put in by dear Gordon.

Solution:

Remove the code.

References:

M1 Garand article

Notes:

I'm still not sure if this should be classified as a bug. I finally found an article describing how the M1 Garand could be reloaded mid-clip. So the game's Garand should also be reloadable.

2.60 Code

bg_pmove.c @ 2312 if(pm->ps->weaponstate != WEAPON_READY && pm->ps->weaponstate != WEAPON_FIRING ) return;
// CHRUKER: b098 - Garand couldn't reload mid-clip
if(((weapon == WP_CARBINE) && pm->ps->ammoclip[WP_CARBINE] != 0) || ((weapon == WP_MOBILE_MG42 || weapon == WP_MOBILE_MG42_SET) && pm->ps->ammoclip[WP_MOBILE_MG42] != 0) || ((weapon == WP_GARAND || weapon == WP_GARAND_SCOPE) && pm->ps->ammoclip[WP_GARAND] != 0)) { return; // Gordon: no reloading of the carbine until clip is empty } if((weapon <= WP_NONE || weapon > WP_DYNAMITE) && !(weapon >= WP_KAR98 && weapon < WP_NUM_WEAPONS))

Show index
Previous bug: Kick command is not able to kick some players by name
Next bug: Calling for a lot of artillery or airstrikes can result voice over spam

Color coding

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

©2016 Chruker