Esempio n. 1
0
        public void LoadRes()
        {
            _refuelPlayer?.Dispose();
            _emptySound?.Dispose();
            _refuelSound?.Dispose();

            if (Mods.Reactor == ReactorType.Nuclear)
            {
                _refuelPlayer = new PlutoniumRefillPlayer(TimeCircuits);
                _emptySound   = TimeCircuits.AudioEngine.Create("bttf1/timeCircuits/plutoniumEmpty.wav", Presets.Interior);
                _refuelSound  = TimeCircuits.AudioEngine.Create("bttf1/refuel.wav", Presets.Exterior);

                _emptySound.SourceBone = "bttf_tcd_green";
            }
            else
            {
                _refuelPlayer = new MrFusionRefillPlayer(TimeCircuits);
            }

            _emptyGlowing = new AnimateProp(Vehicle, ModelHandler.RequestModel(ModelHandler.Empty), Vector3.Zero, Vector3.Zero);
            _emptyOff     = new AnimateProp(Vehicle, ModelHandler.RequestModel(ModelHandler.EmptyOff), Vector3.Zero, Vector3.Zero);
        }