hello.... i need some help im total beginer in making configs...
im trying to learn from another addon makers config.cpp and i
trying to configure Glock18c with fullauto mode
here it is
#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 true 1
#define false 0
// type scope
#define private 0
#define protected 1
#define public 2
#define WeaponNoSlot 0
#define WeaponSlotPrimary 1
#define WeaponSlotSecondary 16
#define WeaponSlotItem 256
#define WeaponSlotBinocular 4096
#define WeaponHardMounted 65536
class CfgPatches
{
class Glock18c
{
units[] = {Glock18c};
weapons[] = {Glock18c};
requiredVersion = 1.75;
};
};
class CfgModels
{
class Default
{
sections[] = {};
sectionsInherit="zasleh";
};
class Weapon: Default{};
class glock18c: Weapon {};
};
class CfgAmmo
{
class Default {};
class BulletSingle: Default {};
class glock18c: Bulletsingle {};
class glock18cBullet: Glock18c
{
hit = 8.5
indirecthit = 1
indirecthitrange = 0.05
minrange=1; minrangeprobab=0.20000;
midrange=45; midrangeprobab=0.75000;
maxrange=200; maxrangeprobab=0.86500;
cartridge="FXCartridgeSmall";
};
};
class CfgWeapons
{
class Default {};
class MGun: Default {};
class Riffle: MGun {};
class HK: Riffle {};
class Glock18cBase: HK{};
class Glock18c: Glock18cBase
{
scopeWeapon=2;
scopeMagazine=0;
displayName="Glock18c"
displayNameMagazine="Glock18c Mag"
model="\Glock18c\Glock18c.p3d";
modes[]={"Single","FUllAuto"};
magazines[]={"Glock18cMag"};
candrop=true;
enableattack=true;
picture="\glock18c\glock.paa";
modelOptics="\glock18c\glock_opt.p3d";
cursor = w_weapon;
cursorAim ="\Glock18c\empty.paa";
};
class Single
{
ammo = Glock18cBullet;
multiplier=1;
burst=1;
displayName = "9x19 Luger";
dispersion=0.002;
sound[]={"\Glock18c\Fire.wss",db0,1};
soundContinuous=0;
reloadTime=0.066;
ffCount=1;
autoFire = false;
aiRateOfFire=1.00000;
aiRateOfFireDistance=500;
useAction = false;
useActionTitle = "";
};
class FullAuto
{
ammo = Glock18cBulet;
multiplier=1;
burst=1;
displayName= "9x19 Luger";
dispersion=0.004;
sound[]={"\Glock18cd\Fire.wss",db0,1};
soundContinuous=0;
reloadTime=0.066;
ffCount=1;
autoFire = true;
aiRateOfFire=1.00000;
aiRateOfFireDistance=500;
useAction = false;
useActionTitle = "";
};
};
};
class CfgVehicles
{
class All {};
class AllVehicles: All {};
class Land: AllVehicles {};
class Man: Land {};
class Soldier: Man {};
class Civilian:Soldier{};
class Glock18c: Civilian
{
access=2
displayName="Glock18c";
weapons[]={"Throw","Put","Glock18c"};
magazines[]={"Glok18cMag","Glok18cMag","Glok18cMag","Glok18cMag"};
};
};
class CfgNonAIVehicles
{
class ProxyWeapon {};
class ProxyGlock18c : ProxyWeapon {};
};
but it ocures error message "config glock18c\config.cpp: some input after EndOfFile"
i know what it means but cant figure out how to repair it.....
(i dont really know if it is defined as a secundary handgun.....)
thenx