14 Commits

Author SHA1 Message Date
Chris Morris
603a934fa8 Add interfaces for cargo and passenger contracts. Including:
- API to allow OXPs to insert contracts
 - New customsounds entries for contract acceptance and rejection
 - New choicesKey parameter to make choice unselectable
 - More than 5 contracts viewable at once


git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@5466 127b21dd-08f5-0310-b4b7-95ae10353056
2012-11-01 20:36:08 +00:00
Marc
ec4a512194 * Primable equipment! Use shift-n to select, and n to activate the equipment.
- New primed equipment key in savegames.
- Equipment scripts only respond to the activate event.
- Equipment scripts have access to this.equipmentKey, which contains the equipment type the script is associated to (e.g. 'EQ_WHATEVER')
* More commsMessage stuff:
- new parameter: ship.commsMessage(message [, toShip]) the second - optional - parameter now allows for narrowcast, as opposed to generic broadcast within scanner range - in crowded systems it's faster to narrowcast to a couple of ships, than to just broadcast the message to all ships in range!
- commsMessageReceived event: the ship sending the message is now passed as a second parameter to the event handler.
* new equipmentInfo property: scriptName
* new ship property: isPiloted
* assorted code cleanup...

git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3799 127b21dd-08f5-0310-b4b7-95ae10353056
2010-11-10 21:49:23 +00:00
Nikos Barkas
05694cebdc Implemented weapons lockdown toggle. Defaults to '_' and the weapons online/offline status is saved in the player's savefile. Affects lasers, missiles, mines and energy bomb.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3774 127b21dd-08f5-0310-b4b7-95ae10353056
2010-10-21 09:27:33 +00:00
Jens Ayton
2e5fbccf83 Yet more legacy sound code stripped out for the great interface simplicity win.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1737 127b21dd-08f5-0310-b4b7-95ae10353056
2008-08-22 14:43:25 +00:00
Jens Ayton
35d09e3f75 Updated remaining old-style sound code. Afterburner loop fixed to use a single sound file instead of two identical ones.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1736 127b21dd-08f5-0310-b4b7-95ae10353056
2008-08-21 20:48:24 +00:00
Marc
3990d547dc Minor plists cleanup, added player.equipmentStatus & player.setEquipmentStatus, to allow damaging and repairing equipment via javascript.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1511 127b21dd-08f5-0310-b4b7-95ae10353056
2008-03-25 03:38:50 +00:00
Jens Ayton
2daba8a6bf Several fixes for an exception when trying to use OXP verifier while a requires.plist-incompatible OXP is installed, due to use of DESC in generating incompatibility warnings (Universe is not set up when OXP verifier runs).
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1504 127b21dd-08f5-0310-b4b7-95ae10353056
2008-03-23 15:12:22 +00:00
Jens Ayton
f67b87aa0d Ahruman's dazzling distraction attack strikes again. All beep, boop and click sounds now go through customsounds.plist. Setting the player's target through JS now works more or less as expected (locks on ident, with UI feedback, unless a missile is selected in which case current missile is locked on to the new target). Custom sound tags can now expand to other custom sound tags (with recursion checking), and final results are cached. No actual progress on the nova script I thought I was working on.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1477 127b21dd-08f5-0310-b4b7-95ae10353056
2008-03-11 19:49:46 +00:00
Jens Ayton
3f74d1b923 Got Instruments working and fixed several small leaks. Currently mostly seeing occasional leaks of OOWeakReferences to ships (but the ships themselves aren't leaked and OOWeakReferences are only 8 bytes.) Cobbled together a class for handling groups of sources for related sounds, so that e.g. the number of simultanous scrape sounds is limited. Moved bits of player launching logic from pollDockedControls: to leaveDock: (which is also called from other places).
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1465 127b21dd-08f5-0310-b4b7-95ae10353056
2008-03-08 17:16:10 +00:00
Giles Williams
848e522d34 can rescue and capture NPCs in escape pods
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@533 127b21dd-08f5-0310-b4b7-95ae10353056
2006-05-09 19:53:21 +00:00
Giles Williams
274d214868 added last few custom sounds replacements for 'boop'
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@500 127b21dd-08f5-0310-b4b7-95ae10353056
2006-04-28 09:42:17 +00:00
Giles Williams
ff9488d2b5 added [wormhole-created]
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@472 127b21dd-08f5-0310-b4b7-95ae10353056
2006-04-18 12:31:55 +00:00
Giles Williams
4d2e0a6304 more custom sounds
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@425 127b21dd-08f5-0310-b4b7-95ae10353056
2006-04-04 00:12:18 +00:00
Giles Williams
ed8f0cbbf8 implemented a plist of custom sound effects (customsounds.plist) - some of which are new, others replace existing sound effects
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@364 127b21dd-08f5-0310-b4b7-95ae10353056
2006-03-24 10:17:41 +00:00