g_combat.c:G_Damage, around line 1409
if( dflags & DAMAGE_DISTANCEFALLOFF ) { vec_t dist;
vec3_t shotvec;
VectorSubtract( point, muzzleTrace, shotvec );
dist = VectorLength( shotvec );
if( dist > 1500.f ) {
if( dist > 2500.f ) {
take *= 0.2f;
} else {
float scale = 1.f - 0.2f * (1000.f / (dist - 1000.f));
take *= scale;
}
}
}
so, in the 1500-2500 range, damage is least close to 1500, and most near 2500 ? The code for body shots (g_weapon.c, Bullet_Fire_Extended) does the same thing… Or am I smoking crack ?
:moo: :poke:




