Note to self: the checkradius parameter of blockthingsiterator is a lie.
This commit is contained in:
parent
27017feed2
commit
951de234ed
1 changed files with 1 additions and 1 deletions
|
|
@ -933,7 +933,7 @@ Class UTMainHandler : StaticEventHandler
|
||||||
while ( bi.Next() )
|
while ( bi.Next() )
|
||||||
{
|
{
|
||||||
Actor a = bi.Thing;
|
Actor a = bi.Thing;
|
||||||
if ( !a || !a.bSHOOTABLE || !Source.CheckSight(a,0xf) || (a == Source) )
|
if ( !a || !a.bSHOOTABLE || !Source.CheckSight(a,0xf) || (a == Source) || (Source.Distance3D(a) > ExplosionRadius) )
|
||||||
continue;
|
continue;
|
||||||
Vector3 midpoint = a.Vec3Offset(0,0,a.height*0.5);
|
Vector3 midpoint = a.Vec3Offset(0,0,a.height*0.5);
|
||||||
a.vel += Level.Vec3Diff(Source.pos,midpoint).unit()*(MomentumTransfer/(Thinker.TICRATE*a.mass));
|
a.vel += Level.Vec3Diff(Source.pos,midpoint).unit()*(MomentumTransfer/(Thinker.TICRATE*a.mass));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue