public static void OnSoundEmitterComponentVehicleDestroyed(ComponentHoverboardEngineSoundEmitter component)
        {
            if (VehicleSoundEmitters.TryGetValue(component.Vehicle.Id, out var currentComponent) &&
                currentComponent == component)
            {
                VehicleSoundEmitters.Remove(component.Vehicle.Id);
            }

            if (!component.SceneObject.IsDestroyed)
            {
                component.SceneObject.Destroy();
            }
        }
Exemple #2
0
 protected virtual void ClientSetupEngineAudio(
     IDynamicWorldObject vehicle,
     ComponentHoverboardEngineSoundEmitter component)
 {
 }