Exemplo n.º 1
0
 public static void DebugError(string msg, Vector3D atPosition)
 {
     if (DebugMode)
     {
         Error(msg);
         DuckUtils.AddGpsToAllPlayers("ERROR: " + msg, "An error happened here!", atPosition);
     }
 }
Exemplo n.º 2
0
        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}));
        }
Exemplo n.º 3
0
 protected static Action AddGps(string name, string description, Vector3D coords)
 {
     return(() => { DuckUtils.AddGpsToAllPlayers(name, description, coords); });
 }