Discussion and information relevant to creating special missions, new ships, skins etc.
Moderators: winston , another_commander
Smivs
Retired Assassin
Posts: 8408 Joined: Tue Feb 09, 2010 11:31 am
Location: Lost in space
Contact:
Post
by Smivs » Sun Jan 16, 2011 9:44 am
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";
Thargoid
Thargoid
Posts: 5528 Joined: Thu Jun 12, 2008 6:55 pm
Post
by Thargoid » Sun Jan 16, 2011 9:48 am
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.
Smivs
Retired Assassin
Posts: 8408 Joined: Tue Feb 09, 2010 11:31 am
Location: Lost in space
Contact:
Post
by Smivs » Sun Jan 16, 2011 10:19 am
Thanks Thargoid,
I thought that was likely. Shame really.
Killer Wolf
---- E L I T E ----
Posts: 2279 Joined: Tue Jan 02, 2007 12:38 pm
Post
by Killer Wolf » Sun Jan 16, 2011 10:29 am
The Vampires get around this using sub ents, they're all front-facing though, dunno if there's any quirks buidling additional rear guns.
Commander McLane
---- 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 » Mon Jan 17, 2011 9:07 am
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.
Smivs
Retired Assassin
Posts: 8408 Joined: Tue Feb 09, 2010 11:31 am
Location: Lost in space
Contact:
Post
by Smivs » Mon Jan 17, 2011 9:38 am
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.
sqwer
Average
Posts: 8 Joined: Tue Dec 28, 2010 5:35 am
Post
by sqwer » Wed Jan 19, 2011 12:06 am
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
Commander McLane
---- 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 » Wed Jan 19, 2011 8:49 am
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.