Updates for GZDoom 4.12, part 1 (new functions, variables, flags, etc.).
This commit is contained in:
parent
1fb4c27383
commit
f38db38751
79 changed files with 349 additions and 183 deletions
|
|
@ -1040,9 +1040,8 @@ Class MisterGrenade : Actor
|
|||
// "safe delay" for main grenade
|
||||
if ( !bAMBUSH && (ReactionTime > default.ReactionTime-20) ) return;
|
||||
let bt = BlockThingsIterator.Create(self,bAMBUSH?80:120);
|
||||
while ( bt.Next() )
|
||||
foreach ( t,p,f:bt )
|
||||
{
|
||||
let t = bt.Thing;
|
||||
if ( !t || !t.bSHOOTABLE || (!t.bISMONSTER && !(t is 'BossBrain') && !t.player) || (t.Health <= 0) || (target && t.IsFriend(target)) || !SWWMUtility.SphereIntersect(t,level.Vec3Offset(pos,vel),bAMBUSH?80:120) || !CheckSight(t,SF_IGNOREVISIBILITY|SF_IGNOREWATERBOUNDARY) ) continue;
|
||||
special1++;
|
||||
tracer = t;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue