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: Akimbo weapons can now lose XP on teamkills
Next bug: Output from various commands are cluttering the popupmessages

Bugfix 045 - Akimbo weapons didn't use the spread reduction you get at level 3 light weapons

Problem:

Akimbo weapons didn't get the spread reduction that you get with level 3 light weapons. If you have the akimbos you also got level 3 light weapon skills.

Solution:

Add the akimbos to the list of weapons that get the spread reduction.

Notes:

The bug is still present in version 2.60

2.56 & 2.60 Code

g_weapon.c @ 3068 (2.56) @ 3147 (2.60) case WP_SILENCER: case WP_SILENCED_COLT:
case WP_AKIMBO_LUGER: // CHRUKER: b045 - Akimbo weapons also need spread reduction case WP_AKIMBO_COLT: // CHRUKER: b045 - Akimbo weapons also need spread reduction case WP_AKIMBO_SILENCEDLUGER: // CHRUKER: b045 - Akimbo weapons also need spread reduction case WP_AKIMBO_SILENCEDCOLT: // CHRUKER: b045 - Akimbo weapons also need spread reduction
if( ent->client->sess.skill[SK_LIGHT_WEAPONS] >= 3 ) // CHRUKER: b007 - The reduction should kick in at level 3 not level 4 spread *= .65f;

Show index
Previous bug: Akimbo weapons can now lose XP on teamkills
Next bug: Output from various commands are cluttering the popupmessages

Color coding

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

©2017 Chruker