- Characters in character.plist now always do a basic setup. That way there is always a valid pilot when not using all character keys. This allows for partial randomisation of pilots for the unused keys.
- Added a JS script for the constrictor-pilot.
- Added default pilots to be used by oxps.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3841 127b21dd-08f5-0310-b4b7-95ae10353056
view screen and custom view changes.
- Renamed the JS property viewID to viewDirection, as the ID suffix usually denotes integer type rather than string.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3837 127b21dd-08f5-0310-b4b7-95ae10353056
- for named snapshots, i.e. takeSnapShot('foo'), if the file foo.png already exists, the snapshot will be saved as foo-001.png, etc...
- tiny code cleanup!
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3828 127b21dd-08f5-0310-b4b7-95ae10353056
- while inside the escape pod, stopped js from accessing Ship & PlayerShip properties of player.ship (while in the pod, we still had access to all the equiment inside the original player.ship, etc...)
- new js function: player.setEscapePodDestination() - takes 1 argument to override the standard destination (main station, or none if in witchspace). Accepts either null/false, a specific station inside the current system, or the string 'NEARBY_SYSTEM' to send the rescued capsule to a nearby system's main station - can only be used while inside the pod, via one of the 2 pod triggered events (or the debug console!).
- collision when docking: removed second AI collision message, to prevent carriers from moving about in reaction to a bad docking.
- some cleanup & minor code optimisation...
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3815 127b21dd-08f5-0310-b4b7-95ae10353056
By default, Eric's suggestion is enabled (Case 1). Case 0 is current
behaviour, and Case 2 is my suggestion.
Once a solution is picked, the others should be removed.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3814 127b21dd-08f5-0310-b4b7-95ae10353056
- player and NPCs can eject at all times now.
- if pod ejected in witchspace, it's game over for the player, unless overridden by oxp.
- if pod ejected in normal space, the player will always reappear at the main station, unless overridden by oxp!
- new worldScript event 'escapePodSequenceOver' to override escape pod behaviour: if at the end of the event player.ship.target is a dockable station, the player will reappear inside it, otherwise game over!
- new translation string: gameover-escape-pod
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3809 127b21dd-08f5-0310-b4b7-95ae10353056
- fix: looking at the F7 screen while docked in interstellar space would disable F1.
- fix: launching the escape pod is meant to reset the player's legal status. Occasionally that wouldn't happen.
- change: escape pod will dock at the nearest friendly station/carrier. Defaults to the system main station otherwise.
- change: if a friendly carrier/temporary station is present in interstellar space, the escape pod can now be ejected.
- cleanup!
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3804 127b21dd-08f5-0310-b4b7-95ae10353056
The name is now only visible for the player and not for the new receivedCommsMessage handler, that can use the shipEntity to get the name.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3802 127b21dd-08f5-0310-b4b7-95ae10353056
- 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