Hard Light Productions Forums

Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: TrashMan on July 14, 2009, 11:49:45 am

Title: Why doesn't muzzleflash work with PSpew?
Post by: TrashMan on July 14, 2009, 11:49:45 am
The above question....yeah... :confused:

If I add both to a weapon it doesn't work and I get a weapons.tbl error
Title: Re: Why doesn't muzzleflash work with PSpew?
Post by: Wanderer on July 14, 2009, 11:53:56 am
First guess is that you placed them in wrong order to the table entry
Title: Re: Why doesn't muzzleflash work with PSpew?
Post by: Qent on July 15, 2009, 09:26:50 pm
Retail flak guns have both $Muzzleflash and the "particle spew" flag. MediaVP flak guns also have $Pspew defined. So yeah, it must be order or something. :)
Title: Re: Why doesn't muzzleflash work with PSpew?
Post by: TrashMan on July 16, 2009, 06:02:21 am
Well, I changed the order and now I don't get any errors, but the muzzleflash doesn't appear, even tough I made it VERY large (30 meters)... :wtf:
Title: Re: Why doesn't muzzleflash work with PSpew?
Post by: General Battuta on July 16, 2009, 02:50:37 pm
Why not use a flak gun entry as a model?
Title: Re: Why doesn't muzzleflash work with PSpew?
Post by: Droid803 on July 16, 2009, 02:56:21 pm
Uhm, just copy the MVPs Kayser entry? (you;d have to put the parts in the TBMs together though) It's an actual "laser" weapon with muzzle flash and pspew. It definitely works.
Don't use flak if your weapon isn't flak!

Also, chances are there's something wrong with your muzzle flash graphic then.
Title: Re: Why doesn't muzzleflash work with PSpew?
Post by: TrashMan on July 16, 2009, 02:59:12 pm
Here's the weapon entry.

Code: [Select]
$Name:                        Heavy Ion Cannon
$Model File:                  none
@Laser Bitmap:                laserglow03
@Laser Glow: 2_laserglow03
@Laser Color: 10, 50, 255
@Laser Color2: 20, 20, 255
@Laser Length:        80.0
@Laser Head Radius:  15.00
@Laser Tail Radius:  15.00
$Mass:                        10
$Velocity:                    750.0                           
$Fire Wait:                   5.0                     
$Damage:                      12500
$Blast Force:                 500.0
$Inner Radius: 80.0
$Outer Radius: 200.0
$Shockwave Speed: 100
$Armor Factor:                  1.0
$Shield Factor:                 0.8
$Subsystem Factor:              0.8
$Lifetime:                      15.0
$Energy Consumed:               0.30                           
$Cargo Size:                    0.0                             
$Homing:                       NO
$LaunchSnd:                    205                                     
$ImpactSnd:                    85                                     
$Flags:                       ("Big Ship" "Huge" "supercap" "particle spew" )
$Icon:                         icongun03
$Anim:                         LoadGun02
$Impact Explosion:             ExpMissileHit1
$Impact Explosion Radius: 100.0
$Muzzleflash: huge_muzzle
$Pspew:
+Count: 2
+Time: 20
+Vel: 0.20
+Radius: 10.0
+Life: 6.0
+Scale: 0.1
+Bitmap: Kayser_Particle
Title: Re: Why doesn't muzzleflash work with PSpew?
Post by: Droid803 on July 16, 2009, 03:00:57 pm
Well, according to this article (http://www.hard-light.net/wiki/index.php/Weapons.tbl), the order appears to be fine.
So that leaves your problem with being the muzzleflash itself. (unless of course, the same muzzle flash is working on ANOTHER weapon, in which case I would check if you spelled it right).

And shouldn't this be in FS Modding?
Title: Re: Why doesn't muzzleflash work with PSpew?
Post by: Qent on July 16, 2009, 07:46:02 pm
I just tried that table entry and it worked, although I had to define huge_muzzle in mflash-mfl.tbm; I saw both the gigantic muzzle flash and the Kayser particles.

Edit: Also the debug build complained about the LaunchSnd being out of bounds.

And shouldn't this be in FS Modding?
I think so.
Title: Re: Why doesn't muzzleflash work with PSpew?
Post by: TrashMan on July 17, 2009, 05:16:35 am
I just tried that table entry and it worked, although I had to define huge_muzzle in mflash-mfl.tbm; I saw both the gigantic muzzle flash and the Kayser particles.

Edit: Also the debug build complained about the LaunchSnd being out of bounds.


Strange...this is the huge_muzzle entry I use

Code: [Select]
$Mflash:
+name:         huge_muzzle

+blob_name:    viper_muzzle
+blob_offset:  1.0
+blob_radius:  25.0

+blob_name:    viper_muzzle
+blob_offset:  5.0
+blob_radius:  15.0

Oh, the launch sound I use is not included..I added quite a few new sounds :P
Title: Re: Why doesn't muzzleflash work with PSpew?
Post by: Dragon on July 17, 2009, 07:02:36 am
That's just a guess, but check if you have .eff file for this effect.
In FOW: COTS version which I have it's not present, so maybe you also don't have it.
Title: Re: Why doesn't muzzleflash work with PSpew?
Post by: TrashMan on July 17, 2009, 07:41:53 am
Hm...can't find the damn file.

Say, could anyone that has Beyond the Red line extract the .eff file and upload it? Downloading a almost 400Mb mod for just one .eff file is a bit much...
Title: Re: Why doesn't muzzleflash work with PSpew?
Post by: Dragon on July 17, 2009, 07:46:27 am
Here you go.
Is this for the next FOW?

[attachment deleted by MSC
Title: Re: Why doesn't muzzleflash work with PSpew?
Post by: TrashMan on July 17, 2009, 08:04:30 am
Boy am I stupid. There was no need for that. I just made my own .eff file :o


And yes. Yes it is. I slowly started to work on it. Methinks I should start recruiting :P