Documentation
Also read http://wiki.alioth.net/index.php/Noshader%20chunky%20exploding%20asteroids
readme/
readme/Changelog.txt
2014.0.noshader converted the original Griff_normalmapped Cargpods2014 for a noshadered ooniverse.
edited shipyard.plist and shipdata.plist (mld)
2014.1.noshader fixed bug which prevented loading of a boulder diffuse texture (mld)
2014.2.noshader added manifest plist to make Oolite v1.81+ happy
2014.3.noshader fixed debris_rols bug reported by Spara for Griff's asteroids
readme/readme.txt
noshaders_Asteroids2014 Chunky explosions
generally breaks up asteroids into some small debris fragments when destroying an asteroids. Makes shooting asteroids a bit nicer.
* needs noshaders_Asteroid2014.x
Thanks to Spara for the idea, after a bug report on ZygoUgo's asteroids
License:
This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License version 3.0.
Michael "Amah" Doering
Path |
Scripts/noshaders_remove_rock_chunks.js |
this.name = "noshader_remove_rock_chunks.js"
this.author = "Griff"
this.licence = "Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License"
this.description = "removes griff rock chunks";
this.version = "1.0"
this.shipSpawned = function ()
{
// Put here your code for when a ship is created
this.ship.owner
this.ship.velocity = new Vector3D.random(50.0 + Math.random( ) * 50.0)
};
this.shipRemove = function() // Remove the object silently
{
this.ship.remove()
} |
Scripts/noshaders_spawn_biggerrock_chunk.js |
this.name = "noshaders_spawn_biggerrock_chunk.js";
this.author = "Thargoid";
this.copyright = "� 2008 the Oolite team.";
this.description = "Break-up of griff asteroids";
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) > 20000)) return; // exit the script if the explosion happens far from the player
this.chunk_Count = (Math.ceil(Math.random() * 1) + 63);
this.ship.spawn("noshaders_rockchunk", this.chunk_Count); // spawn the rock chunks
} |
Scripts/noshaders_spawn_rock_chunk.js |
this.name = "noshaders_spawn_rockchunk.js";
this.author = "Thargoid";
this.copyright = "� 2008 the Oolite team.";
this.description = "Break-up of griff asteroids";
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) > 20000)) return; // exit the script if the explosion happens far from the player
this.chunk_Count = (Math.ceil(Math.random() * 24) + 40);
this.ship.spawn("noshaders_rockchunk", this.chunk_Count); // spawn the rock chunks
} |