Back to Index Page generated: Dec 20, 2024, 7:22:09 AM

Expansion Retro Rockets

Content

Manifest

from Expansion Manager's OXP list from Expansion Manifest
Description A handy little piece of equipment which gives your ship a backwards boost out of trouble. A handy little piece of equipment which gives your ship a backwards boost out of trouble.
Identifier oolite.oxp.Thargoid.RetroRockets oolite.oxp.Thargoid.RetroRockets
Title Retro Rockets Retro Rockets
Category Equipment Equipment
Author Thargoid Thargoid
Version 1.00 1.00
Tags equipment equipment
Required Oolite Version
Maximum Oolite Version
Required Expansions
Optional Expansions
Conflict Expansions
Information URL http://wiki.alioth.net/index.php/Retro_Rockets_OXP n/a
Download URL https://wiki.alioth.net/img_auth.php/1/1a/Retro_Rockets_1.00.oxz n/a
License Creative Commons Attribution - Non-Commercial - Share Alike 3.0 license with clauses - see readme file Creative Commons Attribution - Non-Commercial - Share Alike 3.0 license with clauses - see readme file
File Size n/a
Upload date 1610873241

Documentation

Also read http://wiki.alioth.net/index.php/Retro%20Rockets

Retro Rockets v1.00 ReadMe & License.txt

Retro Rockets OXP by Thargoid.

The Ships Systems Department of the Aquarian Shipbuilding Corporation would like to present to you their latest products, retro rockets. These are a redirection of the ships jets to provide reverse thrust when triggered (with the "n" key, after selection with shift-n). The rockets requre 1ly of witchspace fuel per use, and must be allowed to cool down for at least 30s between uses. Automatic system interlocks are include to ensure this.

Galcop have also stipulated that retro rockets are not usable within the aegis of any of their stations, so an interlock will trigger if such an attempt is made. The interlocks will also trigger if the ship is under either fuel injection or the torus drive, as the use of retro rockets under such conditions could cause serious hull damage.

The system can be purchased and fitted at any good tech level 9 or higher station, for a cost of 500 credits.

--------------------------------------------------------------

License:

This OXP is released under the Creative Commons Attribution - Non-Commercial - Share Alike 3.0 license with the following clauses:

* Whilst you are free (and encouraged) to re-use any of the scripting, models or texturing in this OXP, the usage must be distinct from that within this OXP. Unique identifiers such as (but not limited to) unique shipdata.plist entity keys, mission variables, script names (this.name), equipment identity strings (EQ_), description list arrays and entity roles must not be re-used without prior agreement.
* rebundling of this OXP within another distribution is permitted as long as it is unchanged. The following derivates however are permitted and except from the above:
	* the conversion of files between XML and openStep.
	* the merging of files with other files of the same type from other OXPs.
* Even though it is not compulsory, if you are re-using any sizable or recognisable piece of this OXP, please let me know :)

--------------------------------------------------------------

Instructions:

Unzip the file, and then move the folder "Retro Rockets 1.00.oxp" to the AddOns directory of your Oolite installation. Then start the game up whilst holding down the shift key (until the spinning Cobra Mk II screen appears) and the equipment should be added and available for purchase from sufficiently high-tech systems. 

This OXP requires Oolite version 1.74 or higher to run.

--------------------------------------------------------------

Version history:

04/07/2011 - Version 1.00, Initial release.

Equipment

Name Visible Cost [deci-credits] Tech-Level
Retro Rockets yes 5000 9+

Ships

This expansion declares no ships.

Models

This expansion declares no models.

Scripts

Path
Scripts/retroRockets.js
this.name					= "retroRockets.js";
this.author					= "Thargoid";
this.copyright				= "Creative Commons: attribution, non-commercial, sharealike with clauses - see readme.txt";
this.description			= "Script for retro rocket equipment";
this.version				= "1.00";

this.activated = function()
	{	
	if(!this.clockTime) {this.clockTime = -30;}
	
	if(player.ship.equipmentStatus("EQ_RETROROCKETS") !== "EQUIPMENT_OK" || player.ship.docked) {return;}
	
	if(player.ship.withinStationAegis)
		{
		player.consoleMessage("Retro rocket interlock - within station aegis.", 4);
		return;
		}
		
	if(player.ship.speed > player.ship.maxSpeed)
		{
		player.consoleMessage("Retro rocket interlock - speed is too high.", 4);
		return;
		}	
		
	if(player.ship.fuel < 1)
		{
		player.consoleMessage("Retro rocket interlock - insufficient fuel.", 4);
		return;
		}	
	
	if(clock.absoluteSeconds - this.clockTime < 30)
		{
		player.consoleMessage("Retro rocket interlock - rockets cooling.", 4);
		return;
		}		
	
	player.ship.fuel -= 1.0;
	player.ship.velocity = player.ship.velocity.subtract(player.ship.vectorForward.multiply(player.ship.maxSpeed*3));
	player.consoleMessage("Retro rockets activated.", 3);
	this.clockTime = clock.absoluteSeconds;
	}