Code: Select all
//if ((ONSPowerNodeEnergySphere(HitActor) != None) || (ONSPowerNodeShield(HitActor) != None)) Node = DestroyableObjective(HitActor.Owner);
if (HitActor.IsA('ONSPowerNodeEnergySphere')
|| HitActor.IsA('ONSPowerNodeShield')
|| HitActor.IsA('ONSSpecialLinkBeamCatcher')
|| HitActor.IsA('ONSSpecialPowerNodeShield')
|| HitActor.IsA('ONSSpecialPowerNodeEnergySphere'))
Node = DestroyableObjective(HitActor.Owner);
Sphere is ONSPowerNodeEnergySphere->ONSSpecialPowerNodeEnergySphere
So the Specials subclass the normal game class.
So ONSPowerNodeEnergySphere(HitActor), where HitActor is ONSSpecialPowerNodeEnergySphere SHOULD be True, but I've seen instances where that doesn't always work (case in point with ONSForcedVehicleFactory).
So I wonder if its the special nodes? AJY though doesn't have them.