Hard Light Productions Forums

Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: Mobius on March 11, 2008, 04:13:32 pm

Title: A torpedo with two trails...
Post by: Mobius on March 11, 2008, 04:13:32 pm
No Latin name...happy?  :doubt:

I want a torpedo with two trails. One is a normal torpedo trail while the second is a railgun trail.

Is there a way to make it possible?
Title: Re: A torpedo with two trails...
Post by: Wanderer on March 11, 2008, 04:22:40 pm
Care to give a tad more specific information?
Title: Re: A torpedo with two trails...
Post by: Mobius on March 11, 2008, 04:24:26 pm
I want two trails. Beams can have multiple sections and I want to know if torpedoes can have two or more trails.

I don't think I can make the table entry public, anyway...it's for INFA.
Title: Re: A torpedo with two trails...
Post by: Wanderer on March 11, 2008, 04:33:42 pm
Well... Depends on what you want it to look like. You can have a single 'beam type' missile trail and one 'particle trail' with current table.
Title: Re: A torpedo with two trails...
Post by: Polpolion on March 11, 2008, 04:52:49 pm
Looking at the code, I think it's possible. I know for a fact that ships can have more than one trail (the max trails for a ship is defined by MAX_SHIP_CONTRAIL), and AFAIK the only thing they do differently when the trails on a ship (in the trails.cpp, no idea yet what's going on in shipcontrails.cpp), is if it's your ship and you're not looking backwards.

And so if the code parses the ship.tbl and the weapons.tbl in the same way regarding trails, all you do is make a second $trail: entry. If that won't work, then AFAIK, you'd be stuck with having the missile as a ship, and having to spawn it manually in FRED and set it to kamikaze.

EDIT: And looking at the shipcontrails.cpp, it looks like if the object is a ship, it doesn't really use the trails.cpp for anything other than rendering or something. Disregard everything I said, just to be safe.
Title: Re: A torpedo with two trails...
Post by: Darius on March 12, 2008, 05:32:22 am
Something like this?

Standard trail with particle effects (ie "railgun" trails)

[attachment deleted by ninja]
Title: Re: A torpedo with two trails...
Post by: Titan on March 12, 2008, 07:00:06 am
What is that from... Blue Planet 2? (please?)
Title: Re: A torpedo with two trails...
Post by: Polpolion on March 12, 2008, 07:13:40 am
Something like this?

Standard trail with particle effects (ie "railgun" trails)

What the heck is up with the spec settings?
Title: Re: A torpedo with two trails...
Post by: Talon 1024 on March 12, 2008, 11:02:20 am
I dunno.  But it looks amazing! :nod:

Anyways, I think that is what he wanted.
Title: Re: A torpedo with two trails...
Post by: ShadowGorrath on March 12, 2008, 12:22:01 pm
I think it's from BP2, as for the fact that there are no nebulas and posted by Darius.
Title: Re: A torpedo with two trails...
Post by: Mobius on March 12, 2008, 01:55:37 pm
Something like this?

Standard trail with particle effects (ie "railgun" trails)

May I know how to get that effect? Paste here the entry... ;)
Title: Re: A torpedo with two trails...
Post by: Colonol Dekker on March 12, 2008, 02:56:06 pm
How long have weapons had particle support? :WTF: is it in the tbl? I'll ramp up some concepts on a campaign
I've been working on for a bit.
Title: Re: A torpedo with two trails...
Post by: Wanderer on March 12, 2008, 03:45:49 pm
Since retail.... (flak). Actual option for setting was introduced way before 3.6.7... And should we be lucky we might get taylors '0-lifetime' particle fix - basically particles set with 0 lifetime would be render as single particle effect per frame (so to speak).
Title: Re: A torpedo with two trails...
Post by: Darius on March 12, 2008, 05:37:51 pm
May I know how to get that effect? Paste here the entry... ;)

Basically the same as for primary weapons. Put "particle spew" in the weapon's flag, and then make a $Pspew entry. :)

Maybe copy the $Pspew from the INFA railgun and play around with the particle size to fit the torpedo.
Title: Re: A torpedo with two trails...
Post by: Wanderer on March 13, 2008, 12:59:13 am
http://www.hard-light.net/wiki/index.php/Weapons.tbl