Ship with 2 forward lasers?

General discussion for players of Oolite.

Moderators: winston, another_commander

S-P
Dangerous
Dangerous
Posts: 64
Joined: Wed Aug 10, 2011 8:34 pm

Ship with 2 forward lasers?

Post by S-P »

I'm just wondering what ship attacked me earlier, it had two front lasers. I didn't get a good look at it as I was running for my life. :o Anyone know what ship it might be, I'm using the below OXPs that add some ships.


Wolfwoods variants
Neolite compainion and wolfies
PAG old ships
User avatar
Tricky
---- E L I T E ----
---- E L I T E ----
Posts: 821
Joined: Sun May 13, 2012 11:12 pm
Location: Bradford, UK. (Anarchic)

Re: Ship with 2 forward lasers?

Post by Tricky »

S-P wrote:
I'm just wondering what ship attacked me earlier, it had two front lasers. I didn't get a good look at it as I was running for my life. :o Anyone know what ship it might be, I'm using the below OXPs that add some ships.


Wolfwoods variants
Neolite compainion and wolfies
PAG old ships
Sounds like a Wolf. BTW, you don't need Wolfwoods variants because Neolite Wolfies replaces it.
User avatar
Gimbal Locke
---- E L I T E ----
---- E L I T E ----
Posts: 293
Joined: Sun Jan 08, 2012 11:32 pm
Location: Brussels
Contact:

Re: Ship with 2 forward lasers?

Post by Gimbal Locke »

Maybe a Cat?
S-P
Dangerous
Dangerous
Posts: 64
Joined: Wed Aug 10, 2011 8:34 pm

Re: Ship with 2 forward lasers?

Post by S-P »

Tricky wrote:
S-P wrote:
I'm just wondering what ship attacked me earlier, it had two front lasers. I didn't get a good look at it as I was running for my life. :o Anyone know what ship it might be, I'm using the below OXPs that add some ships.


Wolfwoods variants
Neolite compainion and wolfies
PAG old ships
Sounds like a Wolf. BTW, you don't need Wolfwoods variants because Neolite Wolfies replaces it.
Thanks Tricky, I probably added neolite and forgot to remove the old one. :oops: Going to have to get me one of those Wolfs. 8)
Gimbal Locke wrote:
Maybe a Cat?
It may have been one of these, I'm not sure now.. :?
User avatar
Tricky
---- E L I T E ----
---- E L I T E ----
Posts: 821
Joined: Sun May 13, 2012 11:12 pm
Location: Bradford, UK. (Anarchic)

Re: Ship with 2 forward lasers?

Post by Tricky »

Add [EliteWiki] Isis Interstellar's [wiki]Werewolf[/wiki] if you want another double front laser ship with the wolf theme. :D
User avatar
Disembodied
Jedi Spam Assassin
Jedi Spam Assassin
Posts: 6885
Joined: Thu Jul 12, 2007 10:54 pm
Location: Carter's Snort

Re: Ship with 2 forward lasers?

Post by Disembodied »

S-P wrote:
Thanks Tricky, I probably added neolite and forgot to remove the old one. :oops: Going to have to get me one of those Wolfs. 8)
There's always the Iguana, too ... but note that a player never gets two lasers on the same facing. If you get a Wolf II, or an Iguana, or a Cat, you'll just have the one laser. A Wolf II is still a mean ship, though: and just that little bit meaner still is the rare Wolf II SE.
User avatar
Shipbuilder
---- E L I T E ----
---- E L I T E ----
Posts: 877
Joined: Thu May 10, 2012 9:41 pm
Location: Derby

Re: Ship with 2 forward lasers?

Post by Shipbuilder »

What about a Griff Krait ?
The GalTech Industries Corporation - Building ships to populate the galaxies.

Increase the variety of ships within your Ooniverse by downloading my OXPs

Flying the [wiki]Serpent_Class_Cruiser[/wiki] "Thargoid's Bane"
S-P
Dangerous
Dangerous
Posts: 64
Joined: Wed Aug 10, 2011 8:34 pm

Re: Ship with 2 forward lasers?

Post by S-P »

Tricky wrote:
Add [EliteWiki] Isis Interstellar's [wiki]Werewolf[/wiki] if you want another double front laser ship with the wolf theme. :D

Those ships look dangerous. :shock:
Disembodied wrote:
S-P wrote:
Thanks Tricky, I probably added neolite and forgot to remove the old one. :oops: Going to have to get me one of those Wolfs. 8)
So the player can't have the double laser mounts. :( Is it in the coding somewhere, that prevents the player having them?
User avatar
Disembodied
Jedi Spam Assassin
Jedi Spam Assassin
Posts: 6885
Joined: Thu Jul 12, 2007 10:54 pm
Location: Carter's Snort

Re: Ship with 2 forward lasers?

Post by Disembodied »

S-P wrote:
So the player can't have the double laser mounts. :( Is it in the coding somewhere, that prevents the player having them?
I imagine (although it should be stressed that, as regards code, "imagine" is all I can do - there could be tiny electronic mice doing the work here) that there isn't any code preventing the player having two laser mounts. It's more likely that no code exists to allow the player to have two laser mounts.
User avatar
Cmdr James
Commodore
Commodore
Posts: 1357
Joined: Tue Jun 05, 2007 10:43 pm
Location: Berlin

Re: Ship with 2 forward lasers?

Post by Cmdr James »

It isnt so much that 2 lasers are explicitly prevented, but that the code assumes (and in some places enforces) that there are only 4 possible slots: front rear left and right.

Each mount point can only take one weapon, and the weapon must be one of the supported ones ie there is no "double laser" you could add.

Someone had a nice idea of fitting the rear laser so that it appears to be firing from the front. In principle I guess it wouldnt be too hard to have the 4 mountings more flexible in location but Im not convinced that is a good idea (and I am certainly not about to start making those types of changes).
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16081
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Re: Ship with 2 forward lasers?

Post by Cody »

Cmdr James wrote:
Someone had a nice idea of fitting the rear laser so that it appears to be firing from the front.
I think that's how the [EliteWiki] Green Gecko does it... in fact, I'm sure that's how.

Image

The two laser beams come from that double-barrelled fore laser quite nicely!
I would advise stilts for the quagmires, and camels for the snowy hills
And any survivors, their debts I will certainly pay. There's always a way!
User avatar
Wildeblood
---- E L I T E ----
---- E L I T E ----
Posts: 2453
Joined: Sat Jun 11, 2011 6:07 am
Location: Western Australia
Contact:

Re: Ship with 2 forward lasers?

Post by Wildeblood »

Cmdr James wrote:
...Each mount point can only take one weapon, and the weapon must be one of the supported ones...
Digressing from the multiple lasers theme for a moment: if you just want additional combinations of laser performance parameters how many places in the code do you need to add them? Last year Cdr. Jettison posted this snippet from PlayerEntity.m where there are definitions like:-

Code: Select all

case WEAPON_PULSE_LASER :
      weapon_energy_use = 0.8f;
      weapon_shot_temperature = 7.0f;
      weapon_reload_time = 0.5f;
      break;
But they include no mention of range, so there must be at least one other place where the various weapons are defined? So, are there two places to edit... or dozens?
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Re: Ship with 2 forward lasers?

Post by JensAyton »

Five.

Obviously if a developer felt it would be a good idea to add more weapon types, that would be a good time to put the various weapon parameters in the equipment definition instead of hard-coding them.
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16081
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Re: Ship with 2 forward lasers?

Post by Cody »

El Viejo wrote:
I think that's how the [EliteWiki] Green Gecko does it... in fact, I'm sure that's how
The boffin tells me I'm wrong about that... hey-ho! <chortles merrily>
I would advise stilts for the quagmires, and camels for the snowy hills
And any survivors, their debts I will certainly pay. There's always a way!
User avatar
Wildeblood
---- E L I T E ----
---- E L I T E ----
Posts: 2453
Joined: Sat Jun 11, 2011 6:07 am
Location: Western Australia
Contact:

Re: Ship with 2 forward lasers?

Post by Wildeblood »

El Viejo wrote:
...the [EliteWiki] Green Gecko...
Which is a year old today; happy birthday, Green Gecko! In that year, has anyone queried whether this is an error?

Code: Select all

this.shipWillExitWitchspace = function() 
{
    this.shipWillExitWitchspace = function()
{
    if (Math.random() > 0.98)   // Below statement will be executed only if a random number (range 0.0-1.0) higher than 0.98 is returned, i.e. 2% of the time
    {
        system.addShips(this.role1, this.count1, player.ship.position, 10000);
    }
}
};
Post Reply