Page 1 of 1

Flamethrower visual range [solved]

Posted: Fri Sep 11, 2020 2:17 am
by kiprobin
I'm trying to increase the range of the flamethrower, and, via editing the com_weap_inf_flamethrower_ord I have successfully managed to do so, but the effect of the actual flames has not increased. I increased the cone length range in the odf, and it damages enemies at the correct range, but the flames only appear to go out the stock distance (I think 10 meters). Does anyone know how to increase the range of the flame effect?

Re: Flamethrower visual range

Posted: Fri Sep 11, 2020 5:48 am
by Sporadia
1. Make a new folder in your side called 'effects' (eg. data_ABC/Sides/cis/effects)

2. Go to data_ABC/Common/effects and find the file com_sfx_weap_flamethrower_ord.fx. Copy that file and paste it into your side's new effects folder.
Note: if you're copying an effect from another side folder then you need to make sure you copy any textures that are mentioned in the .fx file. But if a texture is already in data_ABC/Common/effects (like in this case), you don't need to copy that texture.

3. Rename the new file to cis_sfx_bigflamethrower.fx or whatever you want. It just needs a unique name.

4. This step is most of the work. It's your choice if you want to use particle editor to change the new .fx file. The .fx file is a text file though, and you can change it with trial and error too. Basically, every time you see ParticleEmitter() it's the start of a new section. And each section is generating a big puff of smoke, or a cone of flames etc. I would start by looking under Transformer() and changing the LifeTime to see if it makes the particles carry on further before disappearing. Or you could increase the Scale under Transfomer() to make the particles bigger; that could make the fire look thicker. Changing the BurstCount and BurstDelay to add more particles could also help if the particles are too spaced out. There's better documentation on the sticky, but you really need to try things out and see. I'm skipping over a lot of this and don't even understand it all.

5. In the weapon ordnance odf, add PlayEffectOnOwnerAimer = "cis_sfx_bigflamethrower.fx"

Re: Flamethrower visual range

Posted: Fri Sep 11, 2020 9:01 pm
by kiprobin
Thanks, I got it working! For future flamethrower users out there, the important stats are actually VelocityScale and MaxParticles. I tried your suggestions first, but LifeTime didn't seem to do anything and burstcount just grouped the particles together for some reason. However, VelocityScale made them travel farther in the same time, thereby increasing the range, and MaxParticles increased the number of particles and therefore the flame density. Thanks so much for your help Sporadia!