Exemplo n.º 1
0
        private void PodImpact()
        {
            for (int i = 0; i < 6; i++)
            {
                Vector3 spawnLoc = base.Position.ToVector3Shifted() + Gen.RandomHorizontalVector(1f);
                MoteMaker.ThrowDustPuff(spawnLoc, base.Map, 1.2f);
            }
            MoteMaker.ThrowLightningGlow(base.Position.ToVector3Shifted(), base.Map, 2f);
            Meteor meteor = (Meteor)ThingMaker.MakeThing(ThingDef.Named("Meteor"));

            meteor.info = this.contents;
            GenSpawn.Spawn(meteor, base.Position, base.Map, this.Rotation);
            this.Destroy(DestroyMode.Vanish);
        }
Exemplo n.º 2
0
        private void PodImpact()
        {
            for (int i = 0; i < 6; i++)
            {
                Vector3 spawnLoc = base.Position.ToVector3Shifted() + Gen.RandomHorizontalVector(1f);
                MoteMaker.ThrowDustPuff(spawnLoc, 1.2f);
            }
            MoteMaker.ThrowLightningGlow(base.Position.ToVector3Shifted(), 2f);
            MoteMaker.TryThrowSmoke(base.Position.ToVector3Shifted(), 2f);
            MoteMaker.ThrowExplosionCell(base.Position);
            MeteorIncoming.ExplodeSound.PlayOneShot(base.Position);
            foreach (IntVec3 current in GenAdj.AdjacentSquares8Way(this))
            {
                MoteMaker.ThrowAirPuffUp(base.Position.ToVector3Shifted(), AltitudeLayer.Floor);
            }
            Meteor meteor = (Meteor)ThingMaker.MakeThing(ThingDef.Named("Meteor"));

            meteor.info = this.contents;
            GenSpawn.Spawn(meteor, base.Position, base.Rotation);
            this.Destroy(DestroyMode.Vanish);
        }