Remove unnecessary uses of "action" and "invoker".

This commit is contained in:
Mari the Deer 2022-11-26 11:57:17 +01:00
commit 23947d8471
11 changed files with 99 additions and 98 deletions

View file

@ -7,7 +7,7 @@ Class mkBlood : SWWMNonInteractiveActor
{
+PUFFGETSOWNER;
}
action void A_Bleed( int str = 1 )
void A_Bleed( int str = 1 )
{
if ( !target ) return;
let b = Spawn("mkBloodSpray",pos);
@ -526,7 +526,7 @@ Class mkFlyingGib : Actor
return true;
}
action void A_Bleed()
void A_Bleed()
{
if ( vel.length() < .5 ) ExplodeMissile(null,null);
else
@ -537,9 +537,9 @@ Class mkFlyingGib : Actor
dir = (dir+SWWMUtility.Vec3FromAngles(FRandom[Blood](0,360),FRandom[Blood](-90,90))*.3).unit();
vel = dir*spd;
}
invoker.rollvel = FRandom[Gibs](10,50)*RandomPick[Gibs](-1,1)*clamp(vel.length()/10.,.25,4.);
if ( invoker.lastbleed > level.maptime ) return;
invoker.lastbleed = level.maptime+5;
rollvel = FRandom[Gibs](10,50)*RandomPick[Gibs](-1,1)*clamp(vel.length()/10.,.25,4.);
if ( lastbleed > level.maptime ) return;
lastbleed = level.maptime+5;
TraceBleedAngle(int(vel.length()),angle+180,-pitch);
}
@ -594,7 +594,7 @@ Class mkFlyingGib : Actor
// floor drop
let b = Spawn("mkBloodDrop",pos);
b.scale *= 2.0;
b.SetShade(invoker.shadecol);
b.SetShade(shadecol);
}
Stop;
}