mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-01-11 15:38:12 +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++;
|
||||
TraceResult 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;
|
||||
pClosest = pEdict;
|
||||
flMaxDot = flDot;
|
||||
|
Loading…
Reference in New Issue
Block a user