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: Compact scoreboard - Normal background is used when names are compact
Next bug: Negative XP doesn't show up on the playerstat dropdown

Bugfix 036 - Mine flags blocking other mines from being spotted

Problem:

Mine flags could be blocking other mines from being spotted.

Solution:

Change the content type of the mine flags, to a type that doesn't block the trace. CONTENT_TRANSLUCENT seems to do the job.

Notes:

The bug is still present in version 2.60
I reduced the indentation to make the code fit on the page.

2.56 & 2.60 Code

g_teammapdata.c @ 1019 (2.56) @ 1029 (2.60) // for marker
// CHRUKER: b036 - Landmine flags shouldn't block our view
ent->client->landmineSpotted->s.frame = rand() % 20; ent->client->landmineSpotted->r.contents = CONTENTS_TRANSLUCENT; trap_LinkEntity( ent->client->landmineSpotted );
g_teammapdata.c @ 1062 (2.56) @ 1073 (2.60) // for marker
// CHRUKER: b036 - Landmine flags shouldn't block our view
ent->client->landmineSpotted->s.frame = rand() % 20; ent->client->landmineSpotted->r.contents = CONTENTS_TRANSLUCENT; trap_LinkEntity( ent->client->landmineSpotted );

Show index
Previous bug: Compact scoreboard - Normal background is used when names are compact
Next bug: Negative XP doesn't show up on the playerstat dropdown

Color coding

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

©2017 Chruker