OFPEC Forum

Addons & Mods Depot => ArmA - Addons & Mods Discussion => Topic started by: Callaghan on 14 Mar 2008, 17:24:31

Title: Core Data - Where in BI's name is it?
Post by: Callaghan on 14 Mar 2008, 17:24:31
What is the config of the "core" weapons and/or where can I find them?
Essential information for the project I am currently working on.
It will benefit the entire community so please do help if you can.
Title: Re: Core Data - Where in BI's name is it?
Post by: Wolfrug on 14 Mar 2008, 18:00:41
What's a "core" weapon? :) All the weapon configs should be in the relevant weapons.pbo files AFAIK, but thanks to the -extensive- inheriting system, you'll often have to zoom around quite a bit to find the actual entries. I suggest copying the configs into a program that supports ctrl-f search, and use that to skip between the weapons. For instance, most recoils are defined at the (if I remember correctly) top of the config, from which they are then inherited as you go lower down. If a weapon is missing some information, see if that weapon inherits from something and, and if so, just find the original. :)

Good luck!

Wolfrug out.
Title: Re: Core Data - Where in BI's name is it?
Post by: Planck on 14 Mar 2008, 20:59:09
cfgWeapons sections can be found in the configs of the following PBOs:

A10
bin
weapons
weapons3
aks74pso
ksvk
m107
m16a4
m16a4_acg
m16a4_acg_gl
m16a4_gl

And if you have QG

dbe1
6g30


Planck
Title: Re: Core Data - Where in BI's name is it?
Post by: Callaghan on 17 Mar 2008, 14:01:11
ok I shall explain- Arma configs use the 'inheritance' system you described. If you look at the main weapons configs, and follow this tree of inheretance back far enough, you will find that large amounts of default data are in the classes - riflecore, and bulletcore, including the default recoils amongst other things. Obviously in order to complete my database I need this default data. addon configs only specify ways in which their gun is 'different' from the class - rifle. i.e. ak47 = rifle, rifle = riflecore.

Code: [Select]
class cfgWeapons {
class Default; // External class reference
class PistolCore; // External class reference
class RifleCore; // External class reference
class MGunCore; // External class reference
class LauncherCore; // External class reference
class GrenadeCore; // External class reference
class CannonCore; // External class reference
external yes... but where?!
Title: Re: Core Data - Where in BI's name is it?
Post by: h- on 17 Mar 2008, 17:17:05
gamefolder\Dta\Bin\
Title: Re: Core Data - Where in BI's name is it?
Post by: Callaghan on 19 Mar 2008, 11:30:42
ah thanks, could someone post the file it contains pls? am at work and no arma here!
Title: Re: Core Data - Where in BI's name is it?
Post by: Wolfrug on 19 Mar 2008, 15:06:25
I copy-pasted the CfgAmmo part out of the bin.pbo, has a bunch of cores in it that might be what you're looking for. :) Attached to this post. Hope it helps!

Wolfrug out.
Title: Re: Core Data - Where in BI's name is it?
Post by: Callaghan on 19 Mar 2008, 16:43:37
 :D you're my hero!
many thanks, callaghan