public static void MakeColonistActionOverlay(Pawn pawn, ThingDef moteDef) { MoteThrownAttached moteThrownAttached = (MoteThrownAttached)ThingMaker.MakeThing(moteDef, null); moteThrownAttached.Attach(pawn); moteThrownAttached.Scale = 1.5f; moteThrownAttached.SetVelocity(Rand.Range(20f, 25f), 0.4f); GenSpawn.Spawn(moteThrownAttached, pawn.Position, pawn.Map); }
public static void MakeColonistActionOverlay(Pawn pawn, ThingDef moteDef) { MoteThrownAttached obj = (MoteThrownAttached)ThingMaker.MakeThing(moteDef); obj.Attach(pawn); obj.exactPosition = pawn.DrawPos; obj.Scale = 1.5f; obj.SetVelocity(Rand.Range(20f, 25f), 0.4f); GenSpawn.Spawn(obj, pawn.Position, pawn.Map); }
public static void MakeIconOverlay(Pawn pawn, ThingDef moteDef) { MoteThrownAttached moteThrown = (MoteThrownAttached)ThingMaker.MakeThing(moteDef); moteThrown.Attach(pawn); moteThrown.exactPosition = pawn.DrawPos; moteThrown.Scale = 1.0f; moteThrown.SetVelocity(Rand.Range(20f, 25f), 0.4f); GenSpawn.Spawn(moteThrown, pawn.Position, pawn.Map); }