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: Backstab knife damage on wounded players exploit
Next bug: Rifle grenade through door exploit

Bugfix 003 - Self headshot when proned

Problem:

When you prone in front of a breakable object and fire your weapon, you can hit yourself in the head.

Solution:

I'm not entirely sure why the fix works, but it does.

References:

Original fix

Notes:

The bug was fixed in version 2.60

2.56 Code

g_weapon.c @ 3096 qboolean reducedDamage = qfalse;
// CHRUKER: b003 - Added bani's fix to prevent shooting ourselves in the head when proned and firering // through a breakable object if( g_entities[ attacker->s.number ].client && g_entities[ attacker->s.number ].r.linked == qtrue ) { g_entities[ attacker->s.number ].r.linked = qfalse; G_HistoricalTrace(source, &tr, start, NULL, NULL, end, source->s.number, MASK_SHOT); g_entities[ attacker->s.number ].r.linked = qtrue; } else // b003
G_HistoricalTrace(source, &tr, start, NULL, NULL, end, source->s.number, MASK_SHOT); // bullet debugging using Q3A's railtrail

Show index
Previous bug: Backstab knife damage on wounded players exploit
Next bug: Rifle grenade through door exploit

Color coding

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

©2017 Chruker