Exemplo n.º 1
0
 public override void OnFire(Pointer <AbstractClass> pTarget, int weaponIndex)
 {
     if (Target.Get() == null)
     {
         if (pTarget.CastToTechno(out Pointer <TechnoClass> pTechno))
         {
             KillStart(TechnoExt.ExtMap.Find(pTechno));
         }
     }
 }
Exemplo n.º 2
0
 public override void OnFire(Pointer <AbstractClass> pTarget, int weaponIndex)
 {
     if (pTarget.CastToTechno(out Pointer <TechnoClass> pTechno))
     {
         TechnoExt pTargetExt = TechnoExt.ExtMap.Find(pTechno);
         if (pTargetExt.Get(MissileFall.ID) == null)
         {
             pTargetExt.CreateDecorator <MissileFall>(MissileFall.ID, "Missile Fall Decorator", this, weaponIndex != 0);
         }
     }
 }