OFPEC Forum
Addons & Mods Depot => OFP - Addons & Mods General => Topic started by: Powerslide on 18 Sep 2002, 21:05:04
-
We imported our Mcmillan .50 cal sniper rifle to the game and the cpp is done pretty much. Does anyone know a good tutorial that defines all cpp parameters for a sniper rifle, or any rifle? Anyway the problem is there is a constant muzzle flash stuck at the end of the barrel that never goes away. Its weird. Does anyone know what the problem or fix might be?
-
do a search in the forum for muzzle flash bug.
it has some thing to do with the CfgModels class
class CfgModels
{
class Default{};
class Weapon: Default{};
class ModelName: Weapon{};
};
where ModelName is the name of your model with out the ".p3d"
i think that fixes it
-
G'day
Found this at OFP Internals:
The famous muzzle flash bug is easy to fix, though you must have OFP: Resistance to do it. Here's how it goes:
1. DePBO your favourite muzzle flash bug weapon addon
2. open the config.cpp with notepad
3. put these lines to it
class CfgModels
{
class Default{};
class Weapon: Default{};
class name-of-the-weapon-model: Weapon{};
};
name-of-the-weapon-model is the name of the p3d-file that came with the addon, so it must be exact! So if you have p3d which name is AKS74.p3d the new line in the config looks like this:
class CfgModels
{
class Default{};
class Weapon: Default{};
class AKS74: Weapon{};
};
4. After the config.cpp is modified StuffPBO the addon again
5. Place the new *.pbo into OperationFlashpoint\\Res\\AddOns -folder
Note that there can't be any symbols in the p3d-name, so if the p3d is like AK101+grenades.p3d the command won't work (at least for me).
hope this helps
L8R