Back to Index Page generated: Aug 1, 2026, 4:49:46 AM

Expansion Quirium Cascade Bomb

Content

Manifest

from Expansion Manager's OXP list from Expansion Manifest
Description Makes the Quirium Cascade mine work the same way as the Energy Bomb did. Takes it off the pylon mounts and makes it a pure equipment item. Makes the Quirium Cascade mine work the same way as the Energy Bomb did. Takes it off the pylon mounts and makes it a pure equipment item.
Identifier oolite.oxp.phkb.QuiriumCascadeBomb oolite.oxp.phkb.QuiriumCascadeBomb
Title Quirium Cascade Bomb Quirium Cascade Bomb
Category Weapons Weapons
Author phkb phkb
Version 1.2 1.2
Tags
Required Oolite Version
Maximum Oolite Version
Required Expansions
Optional Expansions
Conflict Expansions
Information URL https://wiki.alioth.net/index.php/Quirium_Cascade_Mine#OXPs n/a
Download URL https://wiki.alioth.net/img_auth.php/a/a2/QuiriumCascadeBomb.oxz n/a
License CC-BY-NC-SA 3.0 CC-BY-NC-SA 3.0
File Size n/a
Upload date 1782192604

Relationships Diagram

Documentation

Also read http://wiki.alioth.net/index.php/Quirium%20Cascade%20Bomb

Equipment

Name Visible Cost [deci-credits] Tech-Level
Quirium Cascade Bomb yes 28000 8+

Ships

Name
qc_dummy_target

Models

This expansion declares no models.

Scripts

Path
Scripts/quirium-bomb-equipment.js
"use strict";
this.author = "phkb";
this.copyright = "2025 phkb";
this.licence = "CC-BY-NC-SA 3.0";
this.name = "quirium-bomb-equipment";

this.activated = function () {
	if (!player.ship.weaponsOnline) {
		return;
	}
	if (oolite.compareVersion("1.91") > 0) {
		var m = player.ship.missiles;
		var removed = "";
		if (m.length == player.ship.missileCapacity) {
			// make a note of the last item in the missile Array
			removed = m[m.length - 1].equipmentKey;
			player.ship.removeEquipment(removed);
		}
		player.ship.awardEquipment("EQ_QC_MINE");
		// you need a target in order to fire a missile
		var tgt = player.ship.target;
		var useTemp = false;
		if (!tgt) {
			useTemp = true;
			var temp = system.addShips("[qc_dummy_target]", 1, player.ship.position.add(player.ship.vectorUp.multiply(300)))[0];
			player.ship.target = temp;
		}
		var qc = player.ship.fireMissile("EQ_QC_MINE");
		if (removed != "") player.ship.awardEquipment(removed) // put back the missile we removed
		// make the mine stop, otherwise it will shoot off like a missile
		qc.velocity = [0, 0, 0];
		qc.thrust = 0;
		qc.maxSpeed = 0;
		if (useTemp) temp.remove(true);
	} else {
		var qc = player.ship.spawn("EQ_QC_MINE")[0];
	}
	qc.AIScript.shipWasDumped();
	player.ship.removeEquipment("EQ_QC_BOMB_ITEM");
	player.consoleMessage(expandDescription("[energy-bomb-activated]"), 4.5);
	var sound = new SoundSource;
	sound.sound = "[energy-bomb-fired]";
	sound.play();
}

this.allowAwardEquipment = function(equipment, ship, context) {
	if (context == "scripted") return true;
	if (oolite.compareVersion("1.91") > 0) {
		// if we're in v1.90, and we don't have any missile capacity, we can't use this equipment
		if (player.ship.missileCapacity == 0) return false;
	}
	return true;
}