Exemple #1
0
        public Delorean(Vector3 position, float heading = 0, DeloreanType type = DeloreanType.BTTF2) : base()
        {
            DeloreanType = type;

            Vehicle = World.CreateVehicle(new Model(LowerCaseDeloreanType), position, heading);
            Vehicle.IsInvincible   = true;
            Vehicle.IsRadioEnabled = false;

            Vehicle.InstallModKit();

            Vehicle.SetMod(VehicleMod.RearBumper, 2, true);
            Vehicle.ToggleMod(VehicleToggleMod.Turbo, true);
            Vehicle.SetMod(VehicleMod.Frame, -1, true);
            Vehicle.SetMod(VehicleMod.Horns, 16, true);
            Vehicle.SetMod(VehicleMod.RearBumper, 0, true);
            Vehicle.SetMod(VehicleMod.RightFender, 0, true);
            Vehicle.SetMod(VehicleMod.Fender, 0, true);
            Vehicle.SetMod(VehicleMod.ArchCover, 0, true);
            Vehicle.SetMod(VehicleMod.Exhaust, 0, true);
            Vehicle.SetMod(VehicleMod.Hood, 0, true);
            Vehicle.SetMod(VehicleMod.Ornaments, 0, true);

            Vehicle.DirtLevel = 0;

            Utils.SetDecorator(Vehicle, "IsBTTFTimeMachine", true);

            Circuits = new TimeCircuits(this);
        }
        private static void SwitchModel(DeloreanType to, bool hook = false)
        {
            if (isSwitching)
            {
                return;
            }

            isSwitching = true;
            switchTo    = to;
            hasHook     = hook;
            carChanged  = true;
        }
Exemple #3
0
 public DeloreanModsCopy(DeloreanMods deloreanMods)
 {
     DeloreanType          = deloreanMods.DeloreanType;
     SuspensionsType       = deloreanMods.SuspensionsType;
     Wheel                 = deloreanMods.Wheel;
     Exterior              = deloreanMods.Exterior;
     Interior              = deloreanMods.Interior;
     OffCoils              = deloreanMods.OffCoils;
     GlowingEmitter        = deloreanMods.GlowingEmitter;
     GlowingReactor        = deloreanMods.GlowingReactor;
     DamagedBumper         = deloreanMods.DamagedBumper;
     SteeringWheelsButtons = deloreanMods.SteeringWheelsButtons;
     HoverUnderbody        = deloreanMods.HoverUnderbody;
     Vents                 = deloreanMods.Vents;
     Seats                 = deloreanMods.Seats;
     Reactor               = deloreanMods.Reactor;
     Exhaust               = deloreanMods.Exhaust;
     Hoodbox               = deloreanMods.Hoodbox;
     Hook  = deloreanMods.Hook;
     Plate = deloreanMods.Plate;
 }