Ejemplo n.º 1
0
        private void Hatch()
        {
            var spawnXenoPawn = XenoLifecycle.SpawnXenoPawn("THU_Facehugger", Position, Map);

            spawnXenoPawn.mindState.mentalStateHandler.TryStartMentalState(MentalStateDefOf.Manhunter, forceWake: true);

            GenSpawn.Spawn(ThingDef.Named("THU_XenoEggHatched"), Position, Map);
        }
        public ChestbursterPawn()
        {
            SpawnXenoAtTick = Find.TickManager.TicksGame +
                              overrideXenoSpawnDelay ?? GameTime.RandomTickNextNight(Find.TickManager.TicksGame, GenLocalDate.HourOfDay(this));

            Log.Message("Will spawn xeno at " + SpawnXenoAtTick + " (now its " + Find.TickManager.TicksGame + ")");

            XenoLifecycle.Instance().Register(this);
        }
Ejemplo n.º 3
0
 public static XenoLifecycle Instance()
 {
     return(singleton ?? (singleton = new XenoLifecycle()));
 }
Ejemplo n.º 4
0
        public override void Notify_PawnDied()
        {
            base.Notify_PawnDied();

            XenoLifecycle.Instance().SpawnChestburster(pawn);
        }