mirror of
https://github.com/ENSL/NS.git
synced 2024-11-30 00:10:57 +00:00
o Fixed bounding box check for the hitbox
o Enabled "new" hitbox code git-svn-id: https://unknownworlds.svn.cloudforge.com/ns1@70 67975925-1194-0748-b3d5-c16f83f1a3a1
This commit is contained in:
parent
5af879678c
commit
5757b44974
1 changed files with 3 additions and 3 deletions
|
@ -1333,7 +1333,7 @@ void AvHGetLineBounds(const Vector& vecStart, const Vector& vecEnd, Vector& outM
|
||||||
|
|
||||||
outMaxs[0] += kBoundingBoxPadding;
|
outMaxs[0] += kBoundingBoxPadding;
|
||||||
outMaxs[1] += kBoundingBoxPadding;
|
outMaxs[1] += kBoundingBoxPadding;
|
||||||
outMins[2] += kBoundingBoxPadding;
|
outMaxs[2] += kBoundingBoxPadding;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1408,14 +1408,14 @@ void AvHSUServerTraceBullets(const Vector& inStart, const Vector& inEnd, IGNORE_
|
||||||
outProtected = false;
|
outProtected = false;
|
||||||
|
|
||||||
// This is the old way that doesn't take into account skulk rotation.
|
// This is the old way that doesn't take into account skulk rotation.
|
||||||
UTIL_TraceLine(inStart, inEnd, inIgnoreMonsters, /*dont_ignore_glass,*/ inIgnoreEdict, &outTraceResult);
|
// UTIL_TraceLine(inStart, inEnd, inIgnoreMonsters, /*dont_ignore_glass,*/ inIgnoreEdict, &outTraceResult);
|
||||||
|
|
||||||
// TEMP removed the skulk hitboxes since it's too risky for the LAN.
|
// TEMP removed the skulk hitboxes since it's too risky for the LAN.
|
||||||
// joev: 0000573
|
// joev: 0000573
|
||||||
// this was commented out meaning that it was just stock tracelines, not using Max M's superb hitbox collision code.
|
// this was commented out meaning that it was just stock tracelines, not using Max M's superb hitbox collision code.
|
||||||
// Now *all* hitboxes perform as expected and the crouched fade can be shot pretty much anywhere on the model
|
// Now *all* hitboxes perform as expected and the crouched fade can be shot pretty much anywhere on the model
|
||||||
// (allowing for about a 5% visual disparity)
|
// (allowing for about a 5% visual disparity)
|
||||||
//AvHTraceLine(inStart, inEnd, inIgnoreMonsters, /*dont_ignore_glass,*/ inIgnoreEdict, &outTraceResult);
|
AvHTraceLine(inStart, inEnd, inIgnoreMonsters, /*dont_ignore_glass,*/ inIgnoreEdict, &outTraceResult);
|
||||||
// :joev
|
// :joev
|
||||||
CBaseEntity* theEntityHit = CBaseEntity::Instance(outTraceResult.pHit);
|
CBaseEntity* theEntityHit = CBaseEntity::Instance(outTraceResult.pHit);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue