-- define weapons to be attached to zombies when creating them
-- random knives inside their neck, spear in their stomach, meatcleaver in their back...
-- this is used in IsoZombie.addRandomAttachedWeapon()
require "Definitions/AttachedWeaponDefinitions"


-- random weapon on police zombies holster
AttachedWeaponDefinitions.handgunHolsterUSMP = {
	id = "handgunHolsterUSMP",
	chance = 30,
	outfit = {"INFANTRY_USMP1"},
	weaponLocation = {"Holster Right"},
	bloodLocations = nil,
	addHoles = false,
	daySurvived = 0,
	ensureItem = "Base.USMP_Holster_Defender_UCP_HipRight",
	weapons = {
		"Base.M9",
	},
}

AttachedWeaponDefinitions.handgunHolsterUSMP_JSOC = {
	id = "handgunHolsterUSMP_JSOC",
	chance = 30,
	outfit = {"INFANTRY_USMP2"},
	weaponLocation = {"Holster Right"},
	bloodLocations = nil,
	addHoles = false,
	daySurvived = 0,
	ensureItem = "Base.USMP_Holster_Defender_OCP_HipRight",
	weapons = {
		"Base.G17",
		"Base.P226",
		"Base.HK_USP",
	},
}

-- shotgun on police's back
AttachedWeaponDefinitions.shotgunUSMP_JSOC = {
	id = "shotgunUSMP_JSOC",
	chance = 20,
	outfit = {"INFANTRY_USMP2"},
	weaponLocation = {"Rifle On Back"},
	bloodLocations = nil,
	addHoles = false,
	daySurvived = 0,
	weapons = {
		"Base.M870_CQB",
		"Base.M870_Breaching",
		"Base.M1014",
	},
}

-- shotgun on police's back
AttachedWeaponDefinitions.shotgunUSMP = {
	id = "shotgunUSMP",
	chance = 20,
	outfit = {"INFANTRY_USMP1"},
	weaponLocation = {"Rifle On Back"},
	bloodLocations = nil,
	addHoles = false,
	daySurvived = 0,
	weapons = {
		"Base.M870_Police",
		"Base.M870_MCS",
		"Base.M870_CQB",
		"Base.M870_Breaching",
		"Base.M1014",
	},
}

-- assault rifle on back
AttachedWeaponDefinitions.assaultRifleUSMP = {
	id = "assaultRifleUSMP",
	chance = 30,
	outfit = {"INFANTRY_USMP1"},
	weaponLocation =  {"Rifle On Back"},
	bloodLocations = nil,
	addHoles = false,
	daySurvived = 0,
	weapons = {
		"Base.M4A1",
		"Base.M16A3",
	},
}

-- assault rifle on back
AttachedWeaponDefinitions.assaultRifleUSMP_JSOC = {
	id = "assaultRifleUSMP_JSOC",
	chance = 30,
	outfit = {"INFANTRY_USMP2"},
	weaponLocation =  {"Rifle On Back"},
	bloodLocations = nil,
	addHoles = false,
	daySurvived = 0,
	weapons = {
		"Base.Bush_AR15_MOE",
		"Base.MCX_Virtus",
		"Base.TR1_UltraLight",
		"Base.AAC_Honey",
		"Base.H416",
	},
}

-- submachinegun rifle on back
AttachedWeaponDefinitions.submachinegunUSMP_JSOC = {
	id = "submachinegunUSMP_JSOC",
	chance = 10,
	outfit = {"INFANTRY_USMP2"},
	weaponLocation =  {"Rifle On Back"},
	bloodLocations = nil,
	addHoles = false,
	daySurvived = 0,
	weapons = {
		"Base.KRISS_Stock",
		"Base.MP7",
	},
}

-- machinegun rifle on back
AttachedWeaponDefinitions.machinegunUSMP = {
	id = "machinegunUSMP",
	chance = 10,
	outfit = {"INFANTRY_USMP1"},
	weaponLocation =  {"Rifle On Back"},
	bloodLocations = nil,
	addHoles = false,
	daySurvived = 0,
	weapons = {
		"Base.M249",
		"Base.M249E3",
	},
}

-- machinegun rifle on back
AttachedWeaponDefinitions.machinegunUSMP_JSOC = {
	id = "machinegunUSMP_JSOC",
	chance = 10,
	outfit = {"INFANTRY_USMP2"},
	weaponLocation =  {"Rifle On Back"},
	bloodLocations = nil,
	addHoles = false,
	daySurvived = 0,
	weapons = {
		"Base.M249E3",
	},
}

-- sniper rifle on back
AttachedWeaponDefinitions.sniperRifleUSMP = {
	id = "sniperRifleArmyUSMP",
	chance = 5,
	outfit = {"INFANTRY_USMP1"},
	weaponLocation =  {"Rifle On Back"},
	bloodLocations = nil,
	addHoles = false,
	daySurvived = 0,
	weapons = {
		"Base.M40A2",
		"Base.M40A3",
		"Base.M14EBR",
	},
}

-- sniper rifle on back
AttachedWeaponDefinitions.sniperRifleUSMP_JSOC = {
	id = "sniperRifleUSMP_JSOC",
	chance = 5,
	outfit = {"INFANTRY_USMP2"},
	weaponLocation =  {"Rifle On Back"},
	bloodLocations = nil,
	addHoles = false,
	daySurvived = 0,
	weapons = {
		"Base.SCAR20",
		"Base.G28",
	},
}

-- knives in belt right
AttachedWeaponDefinitions.knivesBeltUSMP = {
	chance = 10,
	outfit = {"INFANTRY_USMP1","INFANTRY_USMP2"},
	weaponLocation = {"Belt Right Upside"},
	bloodLocations = nil,
	addHoles = false,
	daySurvived = 0,
	weapons = {
		"Base.HuntingKnife",
	},
}


-- Define some custom weapons attached on some specific outfit, so for example police have way more chance to have guns in holster and not simply a spear in stomach or something

AttachedWeaponDefinitions.attachedWeaponCustomOutfit.INFANTRY_USMP1 = {
	chance = 12;
	maxitem = 2;
	weapons = {
		AttachedWeaponDefinitions.shotgunUSMP,
		AttachedWeaponDefinitions.assaultRifleUSMP,
		AttachedWeaponDefinitions.machinegunUSMP,
		AttachedWeaponDefinitions.sniperRifleUSMP,
		AttachedWeaponDefinitions.knivesBeltUSMP,
		AttachedWeaponDefinitions.handgunHolsterUSMP,
	},
}

AttachedWeaponDefinitions.attachedWeaponCustomOutfit.INFANTRY_USMP2 = {
	chance = 12;
	maxitem = 2;
	weapons = {
		AttachedWeaponDefinitions.shotgunUSMP_JSOC,
		AttachedWeaponDefinitions.assaultRifleUSMP_JSOC,
		AttachedWeaponDefinitions.machinegunUSMP_JSOC,
		AttachedWeaponDefinitions.submachinegunUSMP_JSOC,
		AttachedWeaponDefinitions.sniperRifleArmyUSMP_JSOC,
		AttachedWeaponDefinitions.knivesBeltArmy,
		AttachedWeaponDefinitions.handgunHolsterUSMP_JSOC,
	},
}

