public static void DebugError(string msg, Vector3D atPosition) { if (DebugMode) { Error(msg); DuckUtils.AddGpsToAllPlayers("ERROR: " + msg, "An error happened here!", atPosition); } }
public DustStorm() { playerEntity = MyAPIGateway.Session?.Player?.Controller?.ControlledEntity?.Entity; planet = DuckUtils.FindPlanetInGravity(playerEntity.GetPosition()); //TODO find vector4 of wheat color and apply into particle effect MyAPIGateway.Utilities.ShowNotification("Wheat: " + Color.Wheat.ToVector4(), 30000); // DustClouds.Add(new DustCloud(center => // new MatrixD(center) {Translation = center.Translation + center.Up * 3})); // DustClouds.Add(new DustCloud(center => // new MatrixD(center) {Translation = center.Translation + center.Forward * 30})); DustClouds.Add(new DustCloud(center => new MatrixD(center) { Translation = center.Translation + center.Forward * 1 })); // DustClouds.Add(new DustCloud(center => // new MatrixD(center) {Translation = center.Translation + center.Forward * 60})); // DustClouds.Add(new DustCloud(center => // new MatrixD(center) {Translation = center.Translation + center.Right * 3})); }
protected static Action AddGps(string name, string description, Vector3D coords) { return(() => { DuckUtils.AddGpsToAllPlayers(name, description, coords); }); }