Something Lurking in the Dark - Oxp idea

An area for discussing new ideas and additions to Oolite.

Moderators: winston, another_commander

Post Reply
User avatar
Amen Brick
Deadly
Deadly
Posts: 187
Joined: Sat May 10, 2008 5:22 pm
Location: Bolton!

Something Lurking in the Dark - Oxp idea

Post by Amen Brick »

An off shoot of the 'why no ships in deep space?' thread. Could someone please design an(or is there already an) OXP where a new alien threat lurks outside the shipping lanes, picking off the curious for vile experiments/shooting practice/vile reasons unknown?
User avatar
LittleBear
---- E L I T E ----
---- E L I T E ----
Posts: 2882
Joined: Tue Apr 04, 2006 7:02 pm
Location: On a survey mission for GalCop. Ship: Cobra Corvette: Hidden Dragon Rated: Deadly.

Post by LittleBear »

Its fairly do-able. One of the missions in Assassins requires you to take a trip out of the space lanes. :wink: . But your target is marked on the Compass so you know where to go. In Oolite (as in Elite) space is infinate (as it effectively would be at sub-light travel in RL). The real difficulty of putting anything outside the space lanes is that extreem unliklihood of the player bumping into it! A random chance of somthing nasty being spawned in the player's location (only when outside the main lane) would be doable though.
OXPS : The Assassins Guild, Asteroid Storm, The Bank of the Black Monks, Random Hits, The Galactic Almanac, Renegade Pirates can be downloaded from the Elite Wiki here.
User avatar
Eric Walch
Slightly Grand Rear Admiral
Slightly Grand Rear Admiral
Posts: 5536
Joined: Sat Jun 16, 2007 3:48 pm
Location: Netherlands

Post by Eric Walch »

LittleBear wrote:
Its fairly do-able. ..... A random chance of somthing nasty being spawned in the player's location (only when outside the main lane) would be doable though.
Next line will add a ship with role "nasty_alien" 50 000 meters in front of the flightdirection of the player.

Code: Select all

system.legacy_addShipsAtPrecisely("nasty_alien", 1, "abs", player.position.add(player.heading.multiply(50000)))
It can be added with an timer. It just needs an oxp-er that can incorporate this in an greater story.

EDIT: After testing it didn't work. Heading is always correct for NPC ships, but the w-coordinate is inverted for the player orientation. Next code does work and places ships in front of the player:

Code: Select all

let orientation = player.orientation; orientation.w = -orientation.w
system.legacy_addShipsAtPrecisely("pirate", 3, "abs", player.position.add(orientation.vectorForward().multiply(50000)))
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Post by JensAyton »

Eric Walch wrote:
EDIT: After testing it didn't work. Heading is always correct for NPC ships, but the w-coordinate is inverted for the player orientation.
I thought this was fixed, but it seems it isn’t. Fixing for 1.72.
User avatar
nijineko
---- E L I T E ----
---- E L I T E ----
Posts: 353
Joined: Wed Jul 04, 2007 3:37 pm
Location: two strange quarks short of a graviton....
Contact:

Post by nijineko »

as long as the so-called "nasty_aliens" don't have tentacles and/or the "sense schoolgirl (su): 60ly radius" ability, i can applaud this. ^^ gee, any guesses as to what kind of cultural media i won't watch?
arukibito ga michi wo erabu no ka, michi ga arukibito wo erabu no deshou ka?

Image
Play games. Win Amazon gift cards! Brag. Repeat.
User avatar
Commander McLane
---- E L I T E ----
---- E L I T E ----
Posts: 9520
Joined: Thu Dec 14, 2006 9:08 am
Location: a Hacker Outpost in a moderately remote area
Contact:

Post by Commander McLane »

My suggestion in another thread where we discussed this was to use the Orb as aliens.

Of course they could be made nastier...

But they're definitely alien.
Post Reply