Other fire effect at the end of a rifle?
Moderator: Moderators
-
Executer94
- Major

- Posts: 504
- Joined: Fri May 01, 2009 7:45 am
- Location: Chalmuns Cantina
Other fire effect at the end of a rifle?
There is always the same muzzleflash (name in the odf data) at the end of the rifle
small_muzzle_flash or med_muzzle_flash
How can I change the effect i try it and change the effect there and ingame there was nothing than.
small_muzzle_flash or med_muzzle_flash
How can I change the effect i try it and change the effect there and ingame there was nothing than.
- DarthD.U.C.K.
- Master of the Force

- Posts: 6027
- Joined: Wed Sep 27, 2006 11:05 am
- Location: Duckburg, Germany
Re: Other fireeffect and the end of a rifle
these lines define the flash:
if they dont change anything something must have gone wrong
Code: Select all
MuzzleFlash = "small_muzzle_flash"
FlashColor = "255 80 80 255"
FlashLength = 0.025
FlashColor = "255 100 100 255"
FlashLength = 0.025
FlashLightColor = "255 220 220 175"
FlashLightRadius = "2.0"
FlashLightDuration = "0.25"
Discharge = "small_smoke_effect"-
Executer94
- Major

- Posts: 504
- Joined: Fri May 01, 2009 7:45 am
- Location: Chalmuns Cantina
Re: Other fireeffect and the end of a rifle
no I mean an other effect maybe a explosion and the end of the rifle when it fires.
-
Xavious
- Sith Master

- Posts: 2783
- Joined: Mon Jun 12, 2006 3:46 pm
Re: Other fireeffect and the end of a rifle
Change this line
Code: Select all
MuzzleFlash = "small_muzzle_flash"-
Executer94
- Major

- Posts: 504
- Joined: Fri May 01, 2009 7:45 am
- Location: Chalmuns Cantina
Re: Other fireeffect and the end of a rifle
if i want to have a little explosion at the end of the rifle i should add this:
MuzzleFlash = "com_sfx_explosion_xs"
MuzzleFlash = "com_sfx_explosion_xs"
- Fiodis
- Master of the Force

- Posts: 4145
- Joined: Wed Nov 12, 2008 9:27 pm
- Projects :: Rannoch + Tientia + Tools Programming
Re: Other fireeffect and the end of a rifle
You know, I've always wondered: what exactly does that line reference? I've never found small_muzzle_flash.fx. I've found a msh, though, so does it reference a mesh?
-
Executer94
- Major

- Posts: 504
- Joined: Fri May 01, 2009 7:45 am
- Location: Chalmuns Cantina
Re: Other fire effect at the end of a rifle?
I also just found a msh but i don't think it the right thing because you can change the muzzleflash to med and small and there is only one msh.
-
Executer94
- Major

- Posts: 504
- Joined: Fri May 01, 2009 7:45 am
- Location: Chalmuns Cantina
Re: Other fire effect at the end of a rifle?
MuzzleFlash = "com_sfx_explosion_xs"
that doesn't work there was nothing
that doesn't work there was nothing
-
-_-
- Gametoast Staff

- Posts: 2678
- Joined: Sat May 07, 2005 1:22 pm
Re: Other fire effect at the end of a rifle?
That's because MuzzleFlash can only reference three things:Executer94 wrote:MuzzleFlash = "com_sfx_explosion_xs"
that doesn't work there was nothing
-small_muzzle_flash
-med_muzzle_flash
-large_muzzle_flash
You're looking for MuzzleFlashEffect or MuzzleFlashModel.
(Fyi, MuzzleFlashEffect doesn't work properly.)
-
Executer94
- Major

- Posts: 504
- Joined: Fri May 01, 2009 7:45 am
- Location: Chalmuns Cantina
Re: Other fire effect at the end of a rifle?
oh ok
can also vehicles have muzzleflashs?
can also vehicles have muzzleflashs?
- Fiodis
- Master of the Force

- Posts: 4145
- Joined: Wed Nov 12, 2008 9:27 pm
- Projects :: Rannoch + Tientia + Tools Programming
Re: Other fire effect at the end of a rifle?
So MuzzleFlashEffect references a specific mesh for the muzzleflash size (small, med or large) to use?
-
-_-
- Gametoast Staff

- Posts: 2678
- Joined: Sat May 07, 2005 1:22 pm
Re: Other fire effect at the end of a rifle?
No.Fiodis wrote:So MuzzleFlashEffect references a specific mesh for the muzzleflash size (small, med or large) to use?
MuzzleFlash can only reference three things: small/med/large
MuzzleFlashEffect can reference any specified .fx file
MuzzleFlashModel can reference any specified .msh file
- trainmaster611
- Sith Lord

- Posts: 1779
- Joined: Thu Aug 24, 2006 5:22 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Building a railway to Coruscant
- Contact:
Re: Other fire effect at the end of a rifle?
Everything that can be said about this has largely been said. But I believe[/b] the answer is yes in regards to adding a muzzleflasheffect to a vehicle weapon. I know vehicle weapons don't have muzzleflash enabled. I haven't tried it yet, and I have yet to see any examples of muzzleflasheffect, but you are welcome to try it.
Here is a list of Weapon ODF parameters
Here is a list of Weapon ODF parameters
Hidden/Spoiler:
- Fiodis
- Master of the Force

- Posts: 4145
- Joined: Wed Nov 12, 2008 9:27 pm
- Projects :: Rannoch + Tientia + Tools Programming
Re: Other fire effect at the end of a rifle?
If there is already a MuzzleFlashEffect, what does
do?
Code: Select all
Discharge = "small_smoke_effect"-
-_-
- Gametoast Staff

- Posts: 2678
- Joined: Sat May 07, 2005 1:22 pm
Re: Other fire effect at the end of a rifle?
I've tried changing that multiple times, but nothing changes/ or appears. I'm assuming it's broken code like decals.Fiodis wrote:If there is already a MuzzleFlashEffect, what doesdo?Code: Select all
Discharge = "small_smoke_effect"
- sampip
- General

- Posts: 792
- Joined: Mon Mar 16, 2009 12:08 pm
- Projects :: Something big. And exciting.
- xbox live or psn: masowner66
- Location: Zebra
Re: Other fire effect at the end of a rifle?
is it possible to have two of these working at the same time?-_- wrote:MuzzleFlashEffect can reference any specified .fx fileFiodis wrote:So MuzzleFlashEffect references a specific mesh for the muzzleflash size (small, med or large) to use?
- Fiodis
- Master of the Force

- Posts: 4145
- Joined: Wed Nov 12, 2008 9:27 pm
- Projects :: Rannoch + Tientia + Tools Programming
Re: Other fire effect at the end of a rifle?
Well, I think we've established that effects don't work....
-
Executer94
- Major

- Posts: 504
- Joined: Fri May 01, 2009 7:45 am
- Location: Chalmuns Cantina
Re: Other fire effect at the end of a rifle?
well I think this topic can be locked.
