OFPEC Forum

Addons & Mods Depot => OFP - Addons & Mods General => Topic started by: Baphomet on 21 Jun 2003, 18:07:55

Title: General .cpp questions.
Post by: Baphomet on 21 Jun 2003, 18:07:55
Can anyone tell me the distinct purpose of declaring something in cfgmodels in a .cpp file? Is it necessary when you're not even using a new model? What should the name of the declaration be or can it be anything?

Secondly what is the purpose of declaring something under cfgnonaivehicles?
Title: Re:General .cpp questions.
Post by: qwertyuio on 22 Jun 2003, 16:20:25
I don't think there is a point of declaring something under cfgmodels, when I tried it worked with and without.

As for nonai vehicles... don't quote me on this but i think it's something to do with multi=player games, but not sure.  ???
Title: Re:General .cpp questions.
Post by: Rubble_Maker on 24 Jun 2003, 21:27:44
I think its main purpose is to define texture selections and model sections.
Title: Re:General .cpp questions.
Post by: andersgrim on 16 Jul 2003, 15:01:49
If you want to binarize your model, a CfgModel part of the config is required  ;)
Title: Re:General .cpp questions.
Post by: MJHergenroder on 07 Aug 2003, 19:33:38
the Cfgmodels is a list of p3d files without the p3d extension.  It also contains hidden selections (sub meshes that can be toggled transparent thru scripting) if present.  In addition to the bin issue, if some of the p3d's aren't posted here, you can end up with the infamous muzzle flash bug.  The bin issue can be important; after replacing many of the default units I now have a weird hand gun bug, where if you pull out your hand gun, you can't move and when you fire the hand gun, your proxied primary weapon fires instead.  Binarizing it is suppose to fix this.  Missing CfgModels means you can't biniarize it.
Title: Re:General .cpp questions.
Post by: gundam007 on 07 Aug 2003, 20:33:31
I have a cfg models for my hand gun, and  I still have the muzzle flash bug. I defined zasleh and zbran. Can someone tell me if anything is wrong with this?? as a matter of fact, none of my defined o2 sections are working

Code: [Select]
{
   class Default {};
   class Weapon: Default{};
   class ganglock: Weapon{};
};