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: Engineers landmine abilities are increased at level 2 instead of level 3
Next bug: Level 0 fieldops was using the medic charge times when handing out ammo

Bugfix 027 - Engineers at level 3 and higher used 66% of their chargebar for landmines, its now changed to 33%

Problem:

Engineers used 66% of their chargebar for setting a landmines. However it should be 33% instead, which is what is documented. Also level 0 to 2 use 50% so there would be no logic in it getting more difficult.

Solution:

Change the value.

Notes:

The bug was fixed in version 2.60

2.56 Code

g_weapon.c @ 4000 if( ent->client->sess.skill[SK_EXPLOSIVES_AND_CONSTRUCTION] >= 3 ) {
// CHRUKER: b027 - Should only take 33% of the charge, and not 66%
ent->client->ps.classWeaponTime += .33f * level.engineerChargeTime[ent->client->sess.sessionTeam-1]; } else { ent->client->ps.classWeaponTime += .5f * level.engineerChargeTime[ent->client->sess.sessionTeam-1];

Show index
Previous bug: Engineers landmine abilities are increased at level 2 instead of level 3
Next bug: Level 0 fieldops was using the medic charge times when handing out ammo

Color coding

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

©2017 Chruker