text
stringlengths 0
451
|
---|
Actor Seg = self; |
if (i >= 0 && i < NUMWORMSEGS) |
{ |
Seg = SegList[i]; |
} |
if (Seg == null || Seg.Health <= 0) |
{ |
continue; |
} |
SegCount++; |
} |
if (SegCount <= 1) |
{ |
bFrightened = true; |
} |
if (SegCount < PrevSegs) |
{ |
FleeTime = WORMFLEETIME; |
} |
PrevSegs = SegCount; |
} |
override void OnDestroy(void) |
{ |
for (uint i = 0; i < NUMWORMSEGS; i++) |
{ |
if (SegList[i] != null) |
{ |
SegList[i].Destroy(); |
} |
} |
super.OnDestroy(); |
} |
override bool CanCollideWith(Actor other, bool passive) |
{ |
if ((other is "LargeWormSeg") |
|| (other is "LargeWormHead")) |
{ |
return false; |
} |
return super.CanCollideWith(other, passive); |
} |
override void PostTeleport(Vector3 destpos, double destangle, int flags) |
{ |
super.PostTeleport(destpos, destangle, flags); |
for (uint i = 0; i < NUMWORMSEGS; i++) |
{ |
let Seg = SnapActor(SegList[i]); |
if (Seg != null) |
{ |
Seg.Teleport(destpos, destangle, flags); |
} |
} |
for (uint i = 0; i < NumRecordedPos; i++) |
{ |
RecordedPos[i] = Pos; |
} |
} |
override void InitBossMeter() |
{ |
super.InitBossMeter(); |
for (uint i = 0; i < NUMWORMSEGS; i++) |
{ |
let Seg = SnapActor(SegList[i]); |
if (Seg != null) |
{ |
AddActorToBossMeter(Seg); |
} |
} |
} |
override void InitMonsterModifiers() |
{ |
for (uint i = 0; i < NUMWORMSEGS; i++) |
{ |
let Seg = SnapMonster(SegList[i]); |
if (Seg != null) |
{ |
Seg.MonsterModifiers = self.MonsterModifiers; |
Seg.UpdateOurMonsterModifiers(); |
} |
} |
bool WasGiant = bGiant; |
bGiant = false; |
super.InitMonsterModifiers(); |
if (WasGiant == true) |