User Tools

Site Tools


ofp:modeling:muzzleflash

OFP Muzzle Flash Bug

OFP Forum, OFP Home, OFP File Formats, OFP Tools, OFP Missions, OFP 3D Modeling, OFP Terrain

Operation Flashpoint (OFP) aka ArmA: Cold War Assault (CWA)

The Problem

This problem may occur for addon makers in the form of the muzzle flash of a weapon model is visible at all times in-game, and does not simply flash when fired.

The Solution

This Problem has two solutions. You may have to do both.

A) Open your model in Oxygen 2 and make sure that the selection zasleh does in fact highlight the model part of the muzzle flash on your weapon. Do this in all the LODs.

If in some LOD the muzzle flash selection does not highlight when clicking the zasleh selection, select it on your model, right-click zasleh in the selections window and select Redefine selection.

B) In your config.cpp (or in some cases, config.bin), you should include (or already have) a CfgModels class, which includes the weapon name as classes. For instance, your weapon model is named “MyM16A2.p3d”, then the CfgModels section should look as following:

class CfgModels
{
       class Default {};
       class Weapon: Default {};
       class MyM16A2: Weapon {};
};

This should be inserted into your config.cpp before your CfgVehicles or CfgWeapons sections and you have to put it in there before binarizing the model.

Muzzle Flash Shadow

You need to remove the muzzle flash shadow from your weapons, unless you specific want to have it there.

You need to select a LOD (check through all lods), click zasleh on selections, and then make the side view for example active and press E key. This brings up the Face Properties. Now click Select All, then click Enable shadow until it's completely un-ticked, and then just click Apply and OK.

If your weapons muzzle flash is not “lit up” on the shadows, only in the sunlight, you need to make sure the “User: 1” is changed to “User: 0” and in Vertex Properties have Lighting: Shining selected.

ofp/modeling/muzzleflash.txt · Last modified: 2024/07/31 16:08 by snakeman

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki

All PMC web site download services are temporarily suspended until web site yearly fees have been recovered, want to download addons/mods? Then Support PMC.

If you are grateful for all the work PMC has done in the past 25 years, use Support PMC page.