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: Couldn't disarm enemy landmines when we have used all our own landmines
Next bug: Coverts shouldn't loose their uniform for using the binoculars

Bugfix 053 - Binoculars can no longer be applied when mobile mg42 is deployed

Problem:

Was missing the check for a deployed mobile MG42. Since it fixes the fov the binoculars were useless.

Solution:

Only allow zooming if the weapon isn't the deployed MG42.

Notes:

The bug was fixed in version 2.60

2.56 Code

bg_pmove.c @ 5154 if(!BG_IsScopedWeapon(pm->ps->weapon)) { // don't allow binocs if using the sniper scope if (!BG_PlayerMounted(pm->ps->eFlags)) { // or if mounted on a weapon
if (pm->ps->weapon != WP_MOBILE_MG42_SET) { // CHRUKER: b053 - Or has a mobile MG42 deployed
pm->ps->eFlags |= EF_ZOOMING;
}
} }

Show index
Previous bug: Couldn't disarm enemy landmines when we have used all our own landmines
Next bug: Coverts shouldn't loose their uniform for using the binoculars

Color coding

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

©2017 Chruker