This Charming Man 0 Posted April 9, 2007 I am trying to make a new kind of bullet for my revolver but it wont work. There seems to be some kind of problem with the line "Class cfgAmmo" When i try to start arma i get this message: File revolver\config.cpp, line 11: '.Class': 'A' encountered instead of "=" Here is the part of the config file that is relevant: class CfgPatches{ class Offa_Revolver_Weapon{ ammo[] = {"Revolver_Ammo"}; units[] = {"Revolver_Soldier"}; weapons[] = {"Revolver"}; recoils[] = {"RevolverRecoil"}; requiredVersion = 1.0; requiredAddons[] = {"CACharacters", "CAWeapons", "CA_Anims_Char"}; }; }; Class Ammo{ Class default; class BulletBase; Class BulletCore; class Revolver_Ammo : BulletBase { hit = 20; cartridge = "FxCartridge_Small"; cost = 5; typicalSpeed = 360; }; }; class CfgMagazines{ class Default; class CA_Magazine; class Revolver_Magazine : CA_Magazine { scope = 2; displayName = $STR_DN_15RND_Revolver; type = 16; picture = "\Ca\weapons\Data\Equip\m_m9_beretta_CA.paa"; ammo = "Revolver_Ammo"; count = 8; sound[] = {"\ca\Weapons\Data\Sound\Beretta_single_shot_v3", db-10, 1}; initSpeed = 360; }; }; Share this post Link to post Share on other sites
W0lle 1052 Posted April 10, 2007 You could try it with: Class <span style='color:red'>Cfg</span>Ammo{ I haven't checked the whole config yet but that's the first thing that came to my attention. Share this post Link to post Share on other sites
binkster 0 Posted April 10, 2007 Class cfgAmmo { Class default; Class BulletCore; class BulletBase; class Revolver_Ammo : BulletBase { hit = 20; cartridge = "FxCartridge_Small"; cost = 5; typicalSpeed = 360; }; }; If fixing cfgammo doesnt work im thinking maybe bulletcore needs to be above bulletBase I could be wrong but thats how i write my configs. Share this post Link to post Share on other sites
This Charming Man 0 Posted April 10, 2007 I changed it to this: Class CfgAmmo { Class Default; class BulletBase; Class BulletCore; class Revolver_Ammo : BulletCore { hit = 20; cartridge = "FxCartridge_Small"; cost = 5; typicalSpeed = 360; }; }; But it still wont work! Maybe we can't edit ammo types like this? Ive been able to modify everything else it's just ammo types that won't work.. Share this post Link to post Share on other sites
vilas 477 Posted April 10, 2007 hit =20 o my god in arma this value is bigger than 14.5 mm KPVT from BRDM write PM to me and i will help you Share this post Link to post Share on other sites
Jackal326 1182 Posted April 10, 2007 <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class CfgAmmo { class default {}; class BulletCore: default {}; class BulletSilencedSingle: BulletCore { hit=8;indirectHit=1;indirectHitRange=0.1; visibleFire=0.035; audibleFire=0.035; visibleFireTime=2; }; class SJB_TOS_M4_Round: BulletCore { hit=9; indirectHit=0.825; indirectHitRange=0.100000; visibleFire=15; audibleFire=15; visibleFireTime=2.5; // how long is it visible initSpeed=1100; // was 854 minRange=0.5;minRangeProbab=0.10; midRange=150;midRangeProbab=0.38; maxRange=300;maxRangeProbab=0.04; tracerColor[]={0.800000,0.200000,0.000000,0.3500000}; }; }; If you use an inherit structure similar to that, you should be fine. Share this post Link to post Share on other sites