Fix toe stubbing on small objects on ground.
This commit is contained in:
parent
58bbc134eb
commit
82d0100dec
2 changed files with 4 additions and 4 deletions
|
|
@ -1,3 +1,3 @@
|
|||
[default]
|
||||
SWWM_MODVER="\chSWWM \czGZ\c- \cw0.9.11b-pre r380 \cu(Fri 19 Mar 22:17:40 CET 2021)\c-";
|
||||
SWWM_SHORTVER="\cw0.9.11b-pre r380 \cu(2021-03-19 22:17:40)\c-";
|
||||
SWWM_MODVER="\chSWWM \czGZ\c- \cw0.9.11b-pre r381 \cu(Sat 20 Mar 13:50:12 CET 2021)\c-";
|
||||
SWWM_SHORTVER="\cw0.9.11b-pre r381 \cu(2021-03-20 13:50:12)\c-";
|
||||
|
|
|
|||
|
|
@ -1036,8 +1036,8 @@ Class Demolitionist : PlayerPawn
|
|||
{
|
||||
a = bi.Thing;
|
||||
if ( !a || (a == self) || (!a.bSOLID && !a.bSHOOTABLE) || a.bTHRUACTORS || a.bCORPSE ) continue;
|
||||
if ( !SWWMUtility.ExtrudeIntersect(self,a,dir*spd,8,16) ) continue;
|
||||
if ( !CheckSight(a,SF_IGNOREVISIBILITY|SF_IGNOREWATERBOUNDARY) ) continue;
|
||||
if ( !SWWMUtility.ExtrudeIntersect(self,a,dir*(spd+radius),8) ) continue;
|
||||
if ( (a.pos.z <= a.floorz) && (a.height <= MaxStepHeight) ) continue;
|
||||
Vector3 diff = level.Vec3Diff(pos,a.pos);
|
||||
Vector3 dirto = diff.unit();
|
||||
if ( dir dot dirto < .1 ) continue;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue