mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-02-04 11:04:28 +00:00
Fix gibs and small objects pulling
This commit is contained in:
parent
28bc8113a3
commit
c99eca226f
@ -413,7 +413,7 @@ CBaseEntity *CGrav::GetCrossEnt( Vector gunpos, Vector aim, float radius )
|
|||||||
tracecount++;
|
tracecount++;
|
||||||
TraceResult tr;
|
TraceResult tr;
|
||||||
UTIL_TraceLine(gunpos, origin, missile, player, &tr);
|
UTIL_TraceLine(gunpos, origin, missile, player, &tr);
|
||||||
if( ( tr.vecEndPos - gunpos ).Length() < (origin - gunpos).Length())
|
if( ( tr.vecEndPos - gunpos ).Length() + 30 < (origin - gunpos).Length())
|
||||||
continue;
|
continue;
|
||||||
pClosest = pEdict;
|
pClosest = pEdict;
|
||||||
flMaxDot = flDot;
|
flMaxDot = flDot;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user