Jump to content
Sign in to follow this  
[aps]gnat

CfgWeapons - No Entry - ArmA

Recommended Posts

Been trying to make a simple weapon / config for ArmA but ArmA seems to be ignoring the addon.

Its reading it because I can get an error message when the config has syntax issues, but once I've removed all errors, and add the weapon to a soldier, I get an error;

no entry bin\config.bin/CfgWeapons.HKOICW

Using a virtual copy of an ArmA Config weapon ..... sad_o.gif

Any ideas?

Quote[/b] ]class Mode_SemiAuto {};

class Mode_Burst : Mode_SemiAuto {};

class Mode_FullAuto : Mode_SemiAuto {};

class CfgAmmo {

class GrenadeCore; // External class reference

class GrenadeBase : GrenadeCore {};

class X_40mm_HE : GrenadeBase {

model = "\ca\Weapons\granat";

hit = 13;

indirectHit = 10;

indirectHitRange = 5.5;

visibleFire = 18;

audibleFire = 18;

visibleFireTime = 3;

explosive = 1;

cost = 10;

deflecting = 10;

};

};

class CfgMagazines {

class Default; // External class reference

class CA_Magazine : Default {};

class Rnd_40mm : CA_Magazine {

scope = 2;

type = 16;

displayName = "40mm";

picture = "\Ca\weapons\Data\Equip\m_30mmHP_CA.paa";

ammo = "X_40mm_HE";

initSpeed = 160;

count = 12;

};

};

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

class MGun : MGunCore{};

class Rifle : MGun{};

class AK74 : Rifle {};

class GrenadeLauncher : Default {};

class HKOICW : AK74 {

scope = 2;

value = 0;

displayName="HK OICW";

model="\HKbo\OICW";

picture="\HKbo\w_OICW.paa";

UiPicture = "\CA\weapons\data\Ico\i_regular_CA.paa";

muzzles[] = {"AMx", "GMx"};

class AMx : AK74 {};

class GMx : GrenadeLauncher {

displayName = "HK OICW 40mm";

reloadMagazineSound[] = {"\ca\Weapons\Data\Sound\flare_reload", 0.000316228, 1};

magazines[] = {"Rnd_40mm"};

magazineReloadTime = 0;

reloadTime = 0.1;

};

class Library {

libTextDesc = $STR_DN_AK74_GRENADE;

};

};

};

Share this post


Link to post
Share on other sites

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">#define true 1

#define false 0

#define private 0

#define protected 1

#define public 2

#define TEast 0

#define TWest 1

#define TGuerrila 2

#define TCivilian 3

#define TSideUnknown 4

#define TEnemy 5

#define TFriendly 6

#define TLogic 7

#define VSoft 0

#define VArmor 1

#define VAir 2

#define LockNo 0

#define LockCadet 1

#define LockYes 2

#define ReadAndWrite 0

#define ReadAndCreate 1

#define ReadOnly 2

#define ReadOnlyVerified 3

class CfgPatches

{

class XXX

{

units[] = {};

requiredVersion = 1.0;

};

};

maybe add that and try then.

write something else instead of XXX in my case it is SgtEv_UMP

smile_o.gif

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×