Back to Index Page generated: Sep 1, 2025, 4:12:03 AM

Expansion Distant Thunder (sound set)

Content

Warnings

  1. http://wiki.alioth.net/index.php/Distant%20Thunder%20(sound%20set) -> 404 Not Found

Manifest

from Expansion Manager's OXP list from Expansion Manifest
Description Miss Sexy Voice announces goings on, and thunderous hyperspace sound. Miss Sexy Voice announces goings on, and thunderous hyperspace sound.
Identifier oolite.oxp.Wildeblood.Distant_Thunder oolite.oxp.Wildeblood.Distant_Thunder
Title Distant Thunder (sound set) Distant Thunder (sound set)
Category Ambience Ambience
Author Wildeblood Wildeblood
Version 0.1 0.1
Tags
Required Oolite Version
Maximum Oolite Version
Required Expansions
Optional Expansions
Conflict Expansions
Information URL n/a
Download URL https://wiki.alioth.net/img_auth.php/7/77/Distant_Thunder.oxz Distant_Thunder.oxz
License CC-BY-NC-SA 4.0 CC-BY-NC-SA 4.0
File Size n/a
Upload date 1754822188

Documentation

Equipment

This expansion declares no equipment. This may be related to warnings.

Ships

This expansion declares no ships. This may be related to warnings.

Models

This expansion declares no models. This may be related to warnings.

Scripts

Path
Config/script.js
"use strict";

this.name    = "Distant_Thunder";
this.version = "0.1";
this.author  = "Qwen2.5-Max";

// Preload the sound files before first launch
this.missionScreenOpportunity = function () {
    // Load the sound files into Sound objects
    this.planetSound = Sound.load("[aegis-planet]");   // dt_nearing_planet.ogg
    this.stationSound = Sound.load("[aegis-station]"); // dt_nearing_station.ogg

    log(this.name, "Preloaded distant thunder sounds.");
    delete this.missionScreenOpportunity; // Ensure this function runs only once
};

// Event handler for entering planetary vicinity
this.shipEnteredPlanetaryVicinity = function (planet) {
    if (this.planetSound) {
        var soundSource = new SoundSource();
        soundSource.sound = this.planetSound;
        soundSource.volume = 1.0; // Full volume
        soundSource.play();

        log(this.name, "Played sound for nearing planet: " + planet.name);
    } else {
        log(this.name, "Error: Planet sound not loaded.");
    }
};

// Event handler for entering station aegis
this.shipEnteredStationAegis = function (station) {
    if (this.stationSound) {
        var soundSource = new SoundSource();
        soundSource.sound = this.stationSound;
        soundSource.volume = 1.0; // Full volume
        soundSource.play();

        log(this.name, "Played sound for nearing station: " + station.name);
    } else {
        log(this.name, "Error: Station sound not loaded.");
    }
};