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

Expansion Griff Alloys and Wreckage

Content

Manifest

from Expansion Manager's OXP list from Expansion Manifest
Description Alloys and Wreckage. Requires a video card capable of supporting Oolite Shaders. Alloys and Wreckage. Requires a video card capable of supporting Oolite Shaders.
Identifier oolite.oxp.Griff_alloys_and_wreckage oolite.oxp.Griff_alloys_and_wreckage
Title Griff Alloys and Wreckage Griff Alloys and Wreckage
Category Retextures Retextures
Author Griff Griff
Version 1.0.1 1.0.1
Tags
Required Oolite Version
Maximum Oolite Version
Required Expansions
Optional Expansions
Conflict Expansions
Information URL http://wiki.alioth.net/index.php/Griff_Industries n/a
Download URL https://wiki.alioth.net/img_auth.php/0/01/Oolite.oxp.Griff.Alloys_and_wreckage.oxz n/a
License CC-BY-NC-SA 4.0 CC-BY-NC-SA 4.0
File Size n/a
Upload date 1610873209

Documentation

Also read http://wiki.alioth.net/index.php/Griff%20Alloys%20and%20Wreckage

Equipment

This expansion declares no equipment.

Ships

Name
Metal fragment
Metal fragment
Metal fragment
Metal fragment
Metal fragment
Metal fragment
Metal fragment
Metal fragment
Wreckage
Wreckage
Wreckage
Wreckage
Wreckage
Wreckage
Wreckage
Wreckage
griff_spinspark_2
griff_spinspark_3
Wreckage
Wreckage
Wreckage
Wreckage
Wreckage
Wreckage

Models

This expansion declares no models.

Scripts

Path
Scripts/griff_remove_spark_debris.js
"use strict";
this.name           = "griff_remove_spark_debris"
this.author         = "Griff"
this.licence        = "Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License"
this.description    = "Randomly disperses and removes griff spark items";
this.version        = "1.0"

this.shipSpawned = function () 
{
	// Put here your code for when a ship is created
       this.ship.velocity = new Vector3D.random(50.0 + Math.random( ) * 50.0)

};

this.shipRemove = function()  // Remove the object silently
	{
	this.ship.remove()
	}
Scripts/griff_spawn_sparks.js
"use strict";
this.name = "griff_spawn_sparks"; 
this.author = "Thargoid"; 
this.copyright = "� 2008 the Oolite team."; 
this.description = "Break-up of griff wreckage into a tiny spark cluster"; 
this.version = "1.0"; 

this.shipSpawned = function () 
{
	// Put here your code for when a ship is created
      this.ship.velocity = new Vector3D.random(50.0 + Math.random( ) * 50.0)

};

this.shipDied = function()
	{
	if(!this.ship || (player.ship.isValid && this.ship.position.distanceTo(player.ship.position) > 50000)) return; // exit the script if the explosion happens far from the player
	this.tinysparkCount = (Math.ceil(Math.random() * 8) + 2); // between 2-10 tiny spark fragments
	this.ship.spawn("griffspark", this.tinysparkCount); // spawn the tiny spark fragments
	}
Scripts/griff_spawn_wreckage.js
"use strict";
this.name = "griff_spawn_wreckage"; 
this.author = "Thargoid"; 
this.copyright = "� 2008 the Oolite team."; 
this.description = "Spawn wreckage and sparks from dead ship"; 
this.version = "1.1"; 

this.shipDied = function() // event that occurs when the entity (ship) whose script this is dies
	{

	if(!this.ship || (player.ship.isValid && this.ship.position.distanceTo(player.ship.position) > 50000)) return; // exit the script if the explosion happens far from the player

 		this.largeCount = (Math.ceil(Math.random() * 4)); // between 0-4 pieces of wreckage
		this.tinyCount =  (Math.ceil(Math.random() * 10) + 5); // between 5-10 tiny spark fragments
		this.sparkCount =  (Math.ceil(Math.random() * 20) + 10); // between 10-20 spin spark fragments
		this.ship.spawn("griffspark", this.tinyCount); // spawn the tiny spark fragments


	if(this.largeCount > 0) // if there is large wreckage
		{
		this.ship.spawn("griffwreckage", this.largeCount); // spawn the larger wreckage
		this.ship.spawn("spinspark", this.sparkCount); // spawn the spin sparks

		}

	}