Other fire effect at the end of a rifle?

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
Executer94
Major
Major
Posts: 504
Joined: Fri May 01, 2009 7:45 am
Location: Chalmuns Cantina

Other fire effect at the end of a rifle?

Post by Executer94 »

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.
User avatar
DarthD.U.C.K.
Master of the Force
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

Post by DarthD.U.C.K. »

these lines define the flash:

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"
if they dont change anything something must have gone wrong
Executer94
Major
Major
Posts: 504
Joined: Fri May 01, 2009 7:45 am
Location: Chalmuns Cantina

Re: Other fireeffect and the end of a rifle

Post by Executer94 »

no I mean an other effect maybe a explosion and the end of the rifle when it fires.
Xavious
Sith Master
Sith Master
Posts: 2783
Joined: Mon Jun 12, 2006 3:46 pm

Re: Other fireeffect and the end of a rifle

Post by Xavious »

Change this line

Code: Select all

MuzzleFlash         = "small_muzzle_flash"
Executer94
Major
Major
Posts: 504
Joined: Fri May 01, 2009 7:45 am
Location: Chalmuns Cantina

Re: Other fireeffect and the end of a rifle

Post by Executer94 »

if i want to have a little explosion at the end of the rifle i should add this:


MuzzleFlash = "com_sfx_explosion_xs"
User avatar
Fiodis
Master of the Force
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

Post by Fiodis »

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
Major
Posts: 504
Joined: Fri May 01, 2009 7:45 am
Location: Chalmuns Cantina

Re: Other fire effect at the end of a rifle?

Post by Executer94 »

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
Major
Posts: 504
Joined: Fri May 01, 2009 7:45 am
Location: Chalmuns Cantina

Re: Other fire effect at the end of a rifle?

Post by Executer94 »

MuzzleFlash = "com_sfx_explosion_xs"

that doesn't work there was nothing
-_-
Gametoast Staff
Gametoast Staff
Posts: 2678
Joined: Sat May 07, 2005 1:22 pm

Re: Other fire effect at the end of a rifle?

Post by -_- »

Executer94 wrote:MuzzleFlash = "com_sfx_explosion_xs"

that doesn't work there was nothing
That's because MuzzleFlash can only reference three things:

-small_muzzle_flash
-med_muzzle_flash
-large_muzzle_flash

You're looking for MuzzleFlashEffect or MuzzleFlashModel.

(Fyi, MuzzleFlashEffect doesn't work properly.)
Executer94
Major
Major
Posts: 504
Joined: Fri May 01, 2009 7:45 am
Location: Chalmuns Cantina

Re: Other fire effect at the end of a rifle?

Post by Executer94 »

oh ok

can also vehicles have muzzleflashs?
User avatar
Fiodis
Master of the Force
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?

Post by Fiodis »

So MuzzleFlashEffect references a specific mesh for the muzzleflash size (small, med or large) to use?
-_-
Gametoast Staff
Gametoast Staff
Posts: 2678
Joined: Sat May 07, 2005 1:22 pm

Re: Other fire effect at the end of a rifle?

Post by -_- »

Fiodis wrote:So MuzzleFlashEffect references a specific mesh for the muzzleflash size (small, med or large) to use?
No.

MuzzleFlash can only reference three things: small/med/large

MuzzleFlashEffect can reference any specified .fx file

MuzzleFlashModel can reference any specified .msh file
User avatar
trainmaster611
Sith Lord
Sith Lord
Posts: 1779
Joined: Thu Aug 24, 2006 5:22 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Building a railway to Coruscant
Contact:

Re: Other fire effect at the end of a rifle?

Post by trainmaster611 »

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

Hidden/Spoiler:
Weapon
NextCharge
IconTexture
ReticuleTexture
ScopeTexture
Ordnance
OrdnanceName
AmmoPerShot
HeatPerShot
HeatRecoverRate
MagReloadTime
ReloadTime
ZoomMin
ZoomMax
ZoomRate
ZoomTurnDivisorMin
ZoomTurnDivisorMax
ZoomFirstPerson
RecoilStrengthHeavy
RecoilStrengthLight
RecoilLengthLight
RecoilLengthHeavy
RecoilDelayLight
RecoilDelayHeavy
RecoilDecayLight
RecoilDecayHeavy
MaxChargeStrengthHeavy
MaxChargeStrengthLight
ChargeRateHeavy
ChargeRateLight
ChargeDelayLight
ChargeDelayHeavy
TimeAtMaxCharge
TriggerSingle
ExtremeRange
LockOnRange
AutoAimSize
LockOnAngle
LockOffAngle
MinRange
OptimalRange
MaxRange
TargetEnemy
TargetNeutral
TargetFriendly
TargetAll
TargetPerson
TargetAnimal
TargetDroid
TargetVehicle
TargetBuilding
TargetBuildingDead
TargetBuildingUnbuilt
TargetMine
AITargetAll
AITargetPerson
AITargetAnimal
AITargetDroid
AITargetVehicle
AITargetBuilding
AITargetBuildingDead
AITargetBuildingUnbuilt
AITargetMine
GeometryName
WeaponName
HUDTag
HighResGeometry
CustomAnimationBank
AnimationBank
FirePointName
FireSound
FireSoundStop
ReloadSound
FireLoopSound
FireEmptySound
ChargeSound
ChargedSound
ChargeSoundStop
ChargeSoundPitch
WeaponChangeSound
OverheatSound
OverheatSoundPitch
OverheatStopSound
ClankLeftWalkSound
ClankRightWalkSound
ClankLeftRunSound
ClankRightRunSound
JumpSound
LandSound
RollSound
ProneSound
SquatSound
StandSound
BarrageMin
BarrageMax
BarrageDelay
SniperScope
FlashRadius
FlashWidth
FlashLength
FlashColor
FlashLightColor
FlashLightRadius
FlashLightDuration
MuzzleFlashEffect
ChargeUpEffect
MuzzleFlashModel
FireAnim
MuzzleFlash
small_muzzle_flash
med_muzzle_flash
large_muzzle_flash
EnergyDrain
AutoPitchScreenDist
AutoTurnScreenDist
TargetLockMaxDistance
TargetLockMaxDistanceLose
ScoreForMedalsType
MedalsTypeToUnlock
MedalsTypeToLock
InstantPlayFireAnim bool
OffhandWeapon bool
ReticuleInAimingOnly bool
DisplayRefire bool
AIBubbleCircle bool
AIBubbleSizeMultiplier float
AIBubbleScaleDistDivider float
AIBubbleScaleClamp float
NoFirstPersonFireAnim bool
User avatar
Fiodis
Master of the Force
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?

Post by Fiodis »

If there is already a MuzzleFlashEffect, what does

Code: Select all

Discharge           	= "small_smoke_effect"
do?
-_-
Gametoast Staff
Gametoast Staff
Posts: 2678
Joined: Sat May 07, 2005 1:22 pm

Re: Other fire effect at the end of a rifle?

Post by -_- »

Fiodis wrote:If there is already a MuzzleFlashEffect, what does

Code: Select all

Discharge           	= "small_smoke_effect"
do?
I've tried changing that multiple times, but nothing changes/ or appears. I'm assuming it's broken code like decals.
User avatar
sampip
General
General
Posts: 792
Joined: Mon Mar 16, 2009 12:08 pm
Projects :: Something big. And exciting.
Games I'm Playing :: Battlefield 3
xbox live or psn: masowner66
Location: Zebra

Re: Other fire effect at the end of a rifle?

Post by sampip »

-_- wrote:
Fiodis wrote:So MuzzleFlashEffect references a specific mesh for the muzzleflash size (small, med or large) to use?
MuzzleFlashEffect can reference any specified .fx file
is it possible to have two of these working at the same time?
User avatar
Fiodis
Master of the Force
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?

Post by Fiodis »

Well, I think we've established that effects don't work....
Executer94
Major
Major
Posts: 504
Joined: Fri May 01, 2009 7:45 am
Location: Chalmuns Cantina

Re: Other fire effect at the end of a rifle?

Post by Executer94 »

well I think this topic can be locked.
Post Reply