Page 1 of 1

Cosmetic Lasers

Posted: Sat Apr 09, 2011 12:34 pm
by Commander Wilmot
I was wondering if it would be possible to add dual lasers for cosmetic purposes; the player's ship would have only one laser still. I was thinking that for oxp ships which have dual lasers, the player should have two, because on some ships it would look better; Could someone adjust the laser position variable so that you can have two values that would show the laser beam twice.
Like so:
Image
(borrowed the picture from another game I play)

Re: Cosmetic Lasers

Posted: Sat Apr 09, 2011 12:40 pm
by Smivs
'fraid not, sorry.
The reasons why have been covered many times elsewhere on this forum, but the bottom line is, as the game stands, player twin lasers cannot be done.

Re: Cosmetic Lasers

Posted: Sat Apr 09, 2011 1:19 pm
by Commander Wilmot
Clarifying Statement:
Ok, but my understanding was that multiple lasers for player ships were impossible, I was not talking about twin lasers for the player, I was wondering if it would be possible, in a future version, to make the laser appear twice. I'll take your word for it that it's in the source code.
(Don't respond if the last statement is true)

Re: Cosmetic Lasers

Posted: Sat Apr 09, 2011 1:34 pm
by Smivs
As a cosmetic idea it's quite nice....it certainly would look cool. The single laser is sort of hard-coded in as far as I know, but it might be changeable.
You can change your laser colour, if you want to improve the look a bit.
Open your shipdata.plist (in the 'Config' folder of your ship's OXP) and add the line

Code: Select all

"laser_color" = magentaColor;
which will give you a magenta laser (like the Vipers).

You can find a list of the available colours here.
A word of warning:- if changing plists, always make a copy before you start so you have a record of the original (in case anything goes wrong), and DON'T use notepad as it breaks them by adding un-wanted characters. Use Notepad++ or gedit or something else.

Re: Cosmetic Lasers

Posted: Sat Apr 09, 2011 1:42 pm
by Commander Wilmot
Thanks, everyone's been every helpfull. I have a custom skin on my diamondback, maybe I should change the laser color as well... I always back up my mods and the original files,

Re: Cosmetic Lasers

Posted: Sat Apr 09, 2011 2:04 pm
by DaddyHoggy
There was, briefly, talk of splitting the output for a single laser into two beams, as per the original C64 (and others?) version of Elite - but as, I think Ahruman, pointed out, how would it work? Where would the beam focus? Would there have to be a convergent sweet spot? Would the beams cross (and look silly?) What if one beam hit and the other didn't - half damage? Therefore = too complicated for the sake of cosmetics?

(I was wondering with all this new whizzing scripting stuff in 1.75 if the beam position couldn't be rapidly moved between positions either side of the centre line thus giving the impression of two beams - although I suspect this would happen at a much slower than frame rate rate and thus would look silly and at best make even a mil laser look like two pulse lasers...)

Re: Cosmetic Lasers

Posted: Sat Apr 09, 2011 4:49 pm
by JensAyton
Smivs wrote:
You can find a list of the available colours here.
Lasers can have any colour whose HSV brightness is ≥ 50 %.
DaddyHoggy wrote:
(I was wondering with all this new whizzing scripting stuff in 1.75 if the beam position couldn't be rapidly moved between positions either side of the centre line thus giving the impression of two beams - although I suspect this would happen at a much slower than frame rate rate and thus would look silly and at best make even a mil laser look like two pulse lasers...)
It wouldn’t work. Laser entities don’t track the parent ship at all.

Re: Cosmetic Lasers

Posted: Wed May 04, 2011 2:25 am
by Commander Wilmot
Two questions.
  • One, is it possible to have a custom texture for the laser? I think this was done for the kamikaze drone in the armoury oxp.
  • Two, is possible to have clear as a laser color? If so would it be invisible (so you could have stealth npc ship with invisible lasers.)

Re: Cosmetic Lasers

Posted: Wed May 04, 2011 7:10 am
by JensAyton
No, and explicitly no.

Re: Cosmetic Lasers

Posted: Wed May 04, 2011 7:58 am
by Kaks
Commander Wilmot wrote:
  • Two, is possible to have clear as a laser color? If so would it be invisible (so you could have stealth npc ship with invisible lasers.)
You can always try black as the laser colour, and see what you get... :P

Re: Cosmetic Lasers

Posted: Wed May 04, 2011 8:03 am
by DaddyHoggy
Kaks wrote:
Commander Wilmot wrote:
  • Two, is possible to have clear as a laser color? If so would it be invisible (so you could have stealth npc ship with invisible lasers.)
You can always try black as the laser colour, and see what you get... :P
That would fall into the same category as "Black Flashers" that I asked before a few years ago before Ahruman carefully explained just how the flasher code worked...

Re: Cosmetic Lasers

Posted: Wed May 04, 2011 8:12 am
by Commander McLane
Kaks wrote:
Commander Wilmot wrote:
  • Two, is possible to have clear as a laser color? If so would it be invisible (so you could have stealth npc ship with invisible lasers.)
You can always try black as the laser colour, and see what you get... :P
Both blackColor and clearColor are supported colour names in Oolite. So you can very simply try them out. You'll be disappointed with the result, though.

Re: Cosmetic Lasers

Posted: Wed May 04, 2011 8:16 am
by Kaks
Yep, nothing better than a bit of personal experimentation, quite a few times it's faster than this already pretty fast forum! :)

I suppose the next question would be 'what about dark grey?' - it might well work, if 'somewhat' brighter than what you were hoping for! :D

Re: Cosmetic Lasers

Posted: Wed May 04, 2011 5:22 pm
by JensAyton
Ahruman wrote:
Lasers can have any colour whose HSV brightness is ≥ 50 %.

Re: Cosmetic Lasers

Posted: Wed May 04, 2011 9:59 pm
by Kaks
& anything darker gets automatically bumped up to said 50% brightness.