Page 1 of 1

Other fire effect at the end of a rifle?

Posted: Sun Sep 06, 2009 11:20 am
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.

Re: Other fireeffect and the end of a rifle

Posted: Sun Sep 06, 2009 11:58 am
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

Re: Other fireeffect and the end of a rifle

Posted: Sun Sep 06, 2009 12:16 pm
by Executer94
no I mean an other effect maybe a explosion and the end of the rifle when it fires.

Re: Other fireeffect and the end of a rifle

Posted: Sun Sep 06, 2009 4:08 pm
by Xavious
Change this line

Code: Select all

MuzzleFlash         = "small_muzzle_flash"

Re: Other fireeffect and the end of a rifle

Posted: Mon Sep 07, 2009 7:40 am
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"

Re: Other fireeffect and the end of a rifle

Posted: Mon Sep 07, 2009 6:21 pm
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?

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

Posted: Tue Sep 08, 2009 10:00 am
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.

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

Posted: Wed Sep 09, 2009 10:55 am
by Executer94
MuzzleFlash = "com_sfx_explosion_xs"

that doesn't work there was nothing

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

Posted: Thu Sep 10, 2009 1:46 am
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.)

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

Posted: Thu Sep 10, 2009 9:49 am
by Executer94
oh ok

can also vehicles have muzzleflashs?

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

Posted: Thu Sep 10, 2009 5:35 pm
by Fiodis
So MuzzleFlashEffect references a specific mesh for the muzzleflash size (small, med or large) to use?

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

Posted: Thu Sep 10, 2009 5:59 pm
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

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

Posted: Thu Sep 10, 2009 6:08 pm
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

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

Posted: Sun Sep 13, 2009 12:53 pm
by Fiodis
If there is already a MuzzleFlashEffect, what does

Code: Select all

Discharge           	= "small_smoke_effect"
do?

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

Posted: Sun Sep 13, 2009 3:58 pm
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.

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

Posted: Wed Sep 16, 2009 1:53 pm
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?

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

Posted: Wed Sep 16, 2009 6:27 pm
by Fiodis
Well, I think we've established that effects don't work....

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

Posted: Thu Sep 24, 2009 10:20 am
by Executer94
well I think this topic can be locked.