///////////////////////////////Default stuff, No changes here ///////////////////////////////////
#define true 1
#define false 0

#define VSoft 0
#define VArmor 1
#define VAir 2

#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 ReadAndWrite 0
#define ReadAndCreate 1
#define ReadOnly 2
#define ReadOnlyVerified 3

#define DefaultManWeapons Throw,Put
/////////////////////////////// ^^ Default Stuff ^^ ///////////////////////////////

class CfgPatches
{
	class DS_Cornershot
	{
		units[] = {"USMC_SoldierS_Sniper_Cornershot", "USMC_SoldierS_Sniper_Cornershot_1"};
		weapons[] = {"DS_Cornershot"};
		requiredVersion = 0.10;
		requiredAddons[] = {"CACharacters", "CAweapons_m107"};
	};
};

class CfgAmmo {
	class B_127x99_Ball_noTracer;
	class B_127x99_APHE: B_127x99_Ball_noTracer
	{
		hit = 21;
		indirectHit = 5;
		indirectHitRange = 0.1;
		explosive = 0.1;
		CraterEffects = "ExploAmmoCrater";
		explosionEffects = "ExploAmmoExplosion";
	};
};
class CfgMagazines  {
	class 10Rnd_127x99_m107;
	class 10Rnd_127x99_m107_APHE: 10Rnd_127x99_m107 
	{
		ammo = "B_127x99_APHE";
		displayName = "Cornershot APHE";
	};
};

class CfgWeapons
{
	class m107;
	class DS_Cornershot: m107
	{
		model = "\DS_Cornershot\DS_Cornershot_1";
		displayName = "Cornershot";
		reloadSound[] = {"\ca\Weapons\Data\Sound\svd_reload_v1", 0.010000, 1};
		magazines[] = { "10Rnd_127x99_m107" , "10Rnd_127x99_m107_APHE" };
		opticsZoomMin = 0.03000; // values from al simmons G22
		opticsZoomMax = 0.12000;
		distanceZoomMin = 300;
		distanceZoomMax = 300;
		hiddenSelections[] = {""};
		hiddenSelectionsTextures[] = {""};		
		class Library {libTextDesc = "German version of the M107, featuring an alterative german manufactured scope\nWhile the Bundewehr was involved in action under UN mandate after the Yugoslavia-wars, a demand to counter enemy snipers was discovered, because the PSG-1 did not match the needs.\nThat caused the M107 to be dapated with a Zeiss manufactured scope (6-24x72 telescopic sight). The G82 uses caliber 12,7 x 99 mm NATO ammunition";};
	};
};

class CfgVehicles
{
	class USMC_SoldierS_SniperH;
	class USMC_SoldierS_Sniper_Cornershot: USMC_SoldierS_SniperH {
		displayName="Cornershot Schuetze";
		weapons[]={DS_Cornershot,M9,Binocular,NVGoggles,DefaultManWeapons};
		magazines[]=
		{
			10Rnd_127x99_m107,10Rnd_127x99_m107,10Rnd_127x99_m107,10Rnd_127x99_m107,
			10Rnd_127x99_m107,10Rnd_127x99_m107,10Rnd_127x99_m107,10Rnd_127x99_m107,
			smokeshellred,smokeshellgreen,
			15Rnd_9x19_M9,15Rnd_9x19_M9,15Rnd_9x19_M9,15Rnd_9x19_M9
		};
		threat[]={1, 0.1, 0.1};
	};
	class USMC_SoldierS_Sniper_Cornershot_1: USMC_SoldierS_SniperH {
		displayName="Cornershot Schuetze 1";
		weapons[]={DS_Cornershot,M9,Binocular,NVGoggles,DefaultManWeapons};
		magazines[]=
		{
			10Rnd_127x99_m107_APHE,10Rnd_127x99_m107_APHE,10Rnd_127x99_m107_APHE,10Rnd_127x99_m107_APHE,
			10Rnd_127x99_m107_APHE,10Rnd_127x99_m107_APHE,10Rnd_127x99_m107_APHE,10Rnd_127x99_m107_APHE,
			smokeshellred,smokeshellgreen,
			15Rnd_9x19_M9,15Rnd_9x19_M9,15Rnd_9x19_M9,15Rnd_9x19_M9
		};
		threat[]={1, 0.1, 0.1};
	};
};