Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: Nuke on June 05, 2003, 04:37:23 pm

Title: smoketrails
Post by: Nuke on June 05, 2003, 04:37:23 pm
i can achieve the smoketrail effect on primaries by using the particle spew, and i think it could be used with missiles as an alternate to the old trail effect.

the only problem is that particle spew only works with primary weapons. i was wondering if a small tweak could let us use it as a secondary weapon trails. as well as make the trail tagset non-mandatory on secondary entries.
Title: smoketrails
Post by: Rampage on June 05, 2003, 05:30:20 pm
Smoke trails are nice to have but are undoubtedly unrealistic in Freespace 2, unless Venom releases his sky/ground meshes. ;7
Title: smoketrails
Post by: IceFire on June 05, 2003, 07:52:09 pm
Well it doesn't have to be smoke to use the particle effects.  It could be "plasma exhaust" or "supermegaawesomeenginestuff power" that throws rainbow colored bits everywhere.  :D
Title: smoketrails
Post by: Deepblue on June 05, 2003, 09:20:58 pm
You can already use pspew tags on secondaries...
Title: smoketrails
Post by: Bobboau on June 05, 2003, 09:27:05 pm
I thought you could too
Title: smoketrails
Post by: CP5670 on June 05, 2003, 10:03:14 pm
I tried doing that just a few days ago and it does not appear to work (the game works fine but no effect shows up).
Title: smoketrails
Post by: Nico on June 06, 2003, 02:06:03 am
Quote
Originally posted by Rampage
Smoke trails are nice to have but are undoubtedly unrealistic in Freespace 2, unless Venom releases his sky/ground meshes. ;7


"smashes rampage in the face"
that's what you get for not reading my threads :doubt:
the thing is already available, you droofus, in the thread where I talked about it.

anyway, I thought Bob added that kind of trail in the code already?
Title: smoketrails
Post by: TrashMan on June 06, 2003, 03:17:08 am
Could you post the tbl entry for a simple weapon with that effect?

Allso, could someone post a simple ballistic primary weapon tbl.
I tried to make one, but it just doesn't work (yes, I followed the instructions in FS2_Open readme...
Title: smoketrails
Post by: Rampage on June 06, 2003, 07:53:26 am
Quote
Originally posted by Venom
"smashes rampage in the face"
that's what you get for not reading my threads :doubt:
the thing is already available, you droofus, in the thread where I talked about it.


[Runs over and shoves Bible down Venom's throat.]

It is????  Hot diggity!
Title: smoketrails
Post by: phreak on June 06, 2003, 10:13:32 am
good way to use a bible
Title: smoketrails
Post by: TrashMan on June 06, 2003, 11:57:00 am
Quote
Originally posted by TrashMan
Could you post the tbl entry for a simple weapon with that effect?

Allso, could someone post a simple ballistic primary weapon tbl.
I tried to make one, but it just doesn't work (yes, I followed the instructions in FS2_Open readme... )


PLEASE!
Title: smoketrails
Post by: Solatar on June 06, 2003, 12:18:28 pm
For Ballistics, you need to edit the ships.tbl also. Like, add primary bank capacity.

I couldn't get them to work, but realized I forgot this.

Did you add the "Ballistic" tag to the weapons tags? Did you add the size (like in a secondary)?

Sorry, I can't find an example ATM.
Title: smoketrails
Post by: mikhael on June 06, 2003, 12:33:14 pm
Quote
Originally posted by PhReAk
good way to use a bible


Best use ever.
Title: smoketrails
Post by: Nico on June 06, 2003, 01:07:12 pm
Quote
Originally posted by Solatar
For Ballistics, you need to edit the ships.tbl also. Like, add primary bank capacity.

I couldn't get them to work, but realized I forgot this.

Did you add the "Ballistic" tag to the weapons tags? Did you add the size (like in a secondary)?

Sorry, I can't find an example ATM.


well, I couldn't get them to work either starting a new weapon from scratch ( it's odd coz I really checked everything and I couldn't finsd anything wrong ), so I just copied an entry that was provided somewhere, and modified it, and it worked well.
Title: smoketrails
Post by: TrashMan on June 06, 2003, 03:30:48 pm
)I followed the readme instructions to the letter...
Changed everything that needed to be changed, but it still won't work..

A tbl entry anyone?
(and that somoke trail effect too!:D )
Title: smoketrails
Post by: Solatar on June 07, 2003, 10:05:14 am
Part of a ships.tbl.
$Allowed PBanks:   ("M-72" "M-97" "IM-3")
$Allowed Dogfight PBanks:   (       )
$Default PBanks:   ( "M-72" "M-72" )
+Pbank Capacity: ( 7000, 7000 )
$Allowed SBanks:   (          "Raynor" "Longbow" "Crossbow" "Belial"  "Blackwidow" "Paint Missile"    )
$Allowed Dogfight SBanks:   ( "Raynor" "Longbow" "Crossbow" "Belial"  "Blackwidow"   )
$Default SBanks:   ( "Belial" )
$SBank Capacity:   ( 50,  )
$Shields:         0
$Power Output:      1.0
$Max Oclk Speed:   85.0
$Max Weapon Eng:   1000.0
$Hitpoints:         350
$Flags:            ( "player_ship" "fighter" "ballistic primaries" "in tech database"  )
$AI Class:         Captain
$Afterburner:      YES

Notice the PBank Capacity, and the Ballistic Primaries Flag.
Here's a weapon. This weapon is one fo the UW weapons, so please don't use it in any campaigns or public releases.


; ----------------------------------------------------------------------------------
; Light Machine Gun
;
$Name:                                  M-72
+Title:                                 XSTR("M-72 Machine Gun", 3317)
+Description:
XSTR(
"Standard Issue
High Ammo Count
Steel Alloy Projectile", 3318)
$end_multi_text
+Tech Title:               XSTR("M-72", 3319)
+Tech Anim:                  Tech_GTW-66_Maxim
+Tech Description:
XSTR("The M-72 is the basic fighter weapon given to new pilots. It has an adequate range, and a medium impact bullet launched through a smooth-bore barrel. ", 3320)
$end_multi_text
$Model File:               none
@Laser Bitmap:                        newglo9
@Laser Glow:                        newglo9
@Laser Color:                        250, 90, 30
@Laser Color2:                        250, 90, 30
@Laser Length:                        5
@Laser Head Radius:                   0.30
@Laser Tail Radius:                   0.10
$Mass:                           0.01
$Velocity:                        550.0
$Fire Wait:                        0.1
$Damage:                        1                       ;; dthin inner radius
$Blast Force:                     0
$Inner Radius:                     0                  ;; 0 for impact only)
$Outer Radius:                     0      ;; attenuated damage (0 for impact only)
$Shockwave Speed:                     0               ;; velocity of shockwave.  0 for none.
$Armor Factor:                     1
$Shield Factor:                     0
$Subsystem Factor:                  0.35
$Lifetime:                        2
$Energy Consumed:                     0.0   ;; Energy used when fired
$Cargo Size:                     1.0   ;; Amount of space taken up in weapon cargo
$Homing:                        NO
$LaunchSnd:                        164                ;; The sound it makes when fired
$ImpactSnd:                        85                 ;; The sound it makes when it hits something
$Rearm Rate:                     100.0      ;; number of missiles/sec that are rearmed
$Flags:                           ("in tech database" "player allowed" "ballistic" )                  
$Trail:                        ;; Trail cannot be set if Exhaust is set
   +Start Width:                  0.1                          ;; Width of trail nearest missile
   +End Width:                     0                          ;; Width of trail before it "evaporates"
   +Start Alpha:                  1.0
   +End Alpha:                     0.0
   +Max Life:                     0.1                  ;; how many seconds before trail disappears
   +Bitmap:                     tracer   ;; o draw trail
$Icon:                           IconGun03
$Anim:                           FS2Gun2
$Impact Explosion:                  none
$FOF:               1.2
$Shots:             1

Notice the ballistic flag, the size.
In the ships.tbl, a ship MUST have the ballistic flag in order to carry ballistic weapons. It can still cary non-ballistic weapons even with the flag.
Title: smoketrails
Post by: Rampage on June 07, 2003, 10:59:34 am
Quote
Originally posted by mikhael


Best use ever.


[Spoils Blasphemy] Best use is reading it. :nod:
Title: smoketrails
Post by: redmenace on June 07, 2003, 07:09:19 pm
Quote
Originally posted by Rampage


[Runs over and shoves Bible down Venom's throat.]

It is????  Hot diggity!


Quote

quote:
--------------------------------------------------------------------------------
Originally posted by PhReAk
good way to use a bible
--------------------------------------------------------------------------------



Best use ever.
[/B]

:wtf:
Title: smoketrails
Post by: Nico on June 08, 2003, 05:35:16 am
don't you all even dare turn this into a religion thread.
Title: smoketrails
Post by: TrashMan on June 08, 2003, 06:05:39 am
Thaks! It works now!:D

Now - all I need is a corkscrew example and that smoketrail!
Title: smoketrails
Post by: mikhael on June 08, 2003, 10:00:04 pm
Quote
Originally posted by Rampage


[Spoils Blasphemy] Best use is reading it. :nod:


Best use is living it. Something I've not see those who thump it ever actually do. Thanks. Move along.

Further discussion on those lines can got to PMs, or the spa--er, HardLight Forum.
Title: smoketrails
Post by: Nuke on June 09, 2003, 12:26:24 am
the best use for a bible imho is in part of a table that support my guinnes mug. it makes a fine table when stacked atop the qoran, the vedas, the tora, and even anton leveigh's satanic bible.  i find litle use in any of them, they all take cheap cracks at one another, they are all kinda obsolete imhl, except anton's book, which was written in the 1960's. but even that is childish occult bs. athiests need an official book, so i can get my mug up another 3 inches. i find religion, second only to politics, to be a discrace of mankind. but who am i to argue with anchient writings, i think i smoked too much dope growing up.

anyway, back to topic it only works with primaries, i tried every possible combination.