Page 1 of 1

Laser color

Posted: Sun Jan 16, 2011 9:44 am
by Smivs
Hi,
Quick question regarding laser color, can you set different colors for forward and aft lasers on NPCs?
Would this work?

Code: Select all

forward_weapon_type = "WEAPON_MILITARY_LASER";
"laser_color" = "cyanColor";
aft_weapon_type = "WEAPON_BEAM_LASER";
"laser_color" = "magentaColor";

Re: Laser color

Posted: Sun Jan 16, 2011 9:48 am
by Thargoid
I don't think it's possible - it's one laser colour per ship (or per shipdata iyswim). Don't forget it's a non-ordered list in essence, hence in effect you've just got a duplicate key there (laser_color) being assigned two different values. At best the second interpretted one would just overwrite the first, or at worst things would choke.

Re: Laser color

Posted: Sun Jan 16, 2011 10:19 am
by Smivs
Thanks Thargoid,
I thought that was likely. Shame really. :(

Re: Laser color

Posted: Sun Jan 16, 2011 10:29 am
by Killer Wolf
The Vampires get around this using sub ents, they're all front-facing though, dunno if there's any quirks buidling additional rear guns.

Re: Laser color

Posted: Mon Jan 17, 2011 9:07 am
by Commander McLane
Killer Wolf has the answer: If you want different colours, use a subentity. You can attach a front-laser-subentity and then not give the main entity a front laser, or do the same at the rear (or both). If you make the subentity non-frangible, the player won't notice that it's anything else than a normal ship.

And as for plists, Thargoid is right. It's a non-ordered array with named keys instead of numbers. But you can use each key only once per array.

Re: Laser color

Posted: Mon Jan 17, 2011 9:38 am
by Smivs
Thanks guys, but It's not really worth the effort for what I had in mind. It was a tiny detail that probably no-one would even notice.

Re: Laser color

Posted: Wed Jan 19, 2011 12:06 am
by sqwer
if it possible to use pictures / animated for laser shoot (ani,bmp,png,pcx etc.)
like other games ?

if it possible to use pictures , to show pictures by pressing a key ?

ok, i know it, is hard scripting answer ...

thx

Re: Laser color

Posted: Wed Jan 19, 2011 8:49 am
by Commander McLane
sqwer wrote:
if it possible to use pictures / animated for laser shoot (ani,bmp,png,pcx etc.)
like other games ?
No.
sqwer wrote:
if it possible to use pictures , to show pictures by pressing a key ?
What kind of pictures? And where do you want to show them?

You can show any picture on a mission screen, and you don't need a special keypress for that.

But if you're thinking about creating a pop-up window with a picture in it, the answer is no.