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(); } } }
public override void SpawnSetup() { base.SpawnSetup(); ExhaustFlames.ThrowSmokeForRocketsandMortars(base.Position.ToVector3Shifted(), 4f); ExhaustFlames.ThrowRocketExhaustFlame(base.Position.ToVector3Shifted(), 1f); }