I finished adding jungle textures to a MP5, but there's something wrong with my config.cpp. I need someone to take a look at it...
// some basic defines
#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
class CfgPatches
{
class DSHK
{
units[] = {};
weapons[] = {DSHK};
requiredVersion = 1.10;
};
{
class DSHKSoldier
{
units[] = {DSHKSoldier};
weapons[] = {};
requiredVersion = 1.10;
};
};
class CfgAmmo
{
class Default {};
class BulletSingle : Default{};
class DSHKammo : BulletSingle
{
hit=12;
indirectHit=2;
indirectHitRange=0.1;
};
};
class CfgWeapons
{
class default{};
class MGun: default {};
class Riffle: MGun {};
class DSHK: Riffle
{
scopeWeapon=2;
scopeMagazine=2;
model="HK_MP5_SD6_proxy";
modelOptics="optika_HK";
displayName="DS HK MP5 Silenced";
displayNameMagazine="DS HK magazine";
shortNameMagazine="DS HK mag";
drySound[]={"weapons\m16dry",0.000316,1};
optics=1;
opticsZoomMin=0.300000;
opticsZoomMax=0.300000;
distanceZoomMin=150;
distanceZoomMax=150;
initSpeed=400;
modes[]={"Single","FullAuto"};
class Single
{
ammo="DSHKammo";
multiplier=1;
burst=1;
displayName="DS HK MP5 Semi Auto";
dispersion=0.002000;
sound[]={"Weapons\hk_singleshot",0.000316,1};
soundContinuous=0;
reloadTime=0.150000;
recoil="riffleSilenced";
ffCount=1;
autoFire=0;
aiRateOfFire=5.000000;
aiRateOfFireDistance=500;
useAction=0;
useActionTitle="";
};
class FullAuto
{
ammo="DSHKammo";
multiplier=1;
burst=1;
displayName="DS HK MP5 Full Auto";
dispersion=0.004000;
sound[]={"Weapons\hk_fullauto",0.000316,1};
soundContinuous=1;
reloadTime=0.100000;
ffCount=1;
recoil="riffleSilenced";
autoFire=1;
aiRateOfFire=5.000000;
aiRateOfFireDistance=500;
useAction=0;
useActionTitle="";
};
};
}
class CfgVehicles
{
class All{};
class AllVehicles:All{};
class Land:AllVehicles{};
class Man:Land{};
class Soldier:Man{};
class SoldierWB:Soldier{};
class DSHKSoldier:SoldierWB
{
side=TWest;
displayName="DSHK Soldier";
weapons[]={DSHK,Throw,Put};
magazines[]={DSHKammo,DSHKammo,DSHKammo,HandGrenade,HandGrenade};
};
};
class CfgNonAIVehicles
{
class ProxyWeapon {};
class ProxyDSHK: ProxyWeapon {};
};
};