コード例 #1
0
 public override void Tick()
 {
     base.Tick();
     if (--Burnticks == 0)
     {
         ExhaustFlames.ThrowSmokeForRocketsandMortars(base.Position.ToVector3Shifted(), 1f);
         ExhaustFlames.ThrowRocketExhaustFlame(base.Position.ToVector3Shifted(), 2f);
         Burnticks = 3;
     }
     if (this.ticksToDetonation > 0)
     {
         this.ticksToDetonation--;
         if (this.ticksToDetonation <= 0)
         {
             this.Explode();
         }
     }
 }
コード例 #2
0
 public override void SpawnSetup()
 {
     base.SpawnSetup();
     ExhaustFlames.ThrowSmokeForRocketsandMortars(base.Position.ToVector3Shifted(), 4f);
     ExhaustFlames.ThrowRocketExhaustFlame(base.Position.ToVector3Shifted(), 1f);
 }