Home   Help Search Login Register  

Author Topic: Muzzle flash  (Read 1648 times)

0 Members and 1 Guest are viewing this topic.

Powerslide

  • Guest
Muzzle flash
« 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?

Calis

  • Guest
Re:Muzzle flash
« Reply #1 on: 20 Sep 2002, 01:36:41 »
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
« Last Edit: 20 Sep 2002, 01:37:24 by Calis »

major asshole

  • Guest
Re:Muzzle flash
« Reply #2 on: 20 Sep 2002, 21:51:26 »
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