
WESTERN_FARP = 1
RUSSIAN_FARP = 2

RESOURCE_AMMO = 0
RESOURCE_FUEL = 1
RESOURCE_ELEC_POWER = 2
GROUND_SERVICE = 3
CONTROL_POINT = 4
NIGHT_ILLUMINATION = 5

--model file names are case independent

objects_by_side = {
	[RUSSIAN_FARP] = {
		[RESOURCE_AMMO] = { "URAL_4320_B", "SetkaKP" },
		[RESOURCE_FUEL] = { "URAL_ATZ-10", "ATZ-10", "ATZ-60", "GSM Rus" },
		[RESOURCE_ELEC_POWER] = {"Zil_APA-80", "URAL-APA" },
		[GROUND_SERVICE] = { 
							"UAZ-469", "Ural_4320-31", "Ural_4320_T", "Zil_KUNG", "KAMAZ-TENT", "PalatkaB", --self
							"URAL_4320_B", "SetkaKP",  -- ammo
							"URAL_ATZ-10", "ATZ-10", "ATZ-60", "GSM Rus", --fuel
							"Zil_APA-80", "URAL-APA", --elec power
							"Zil_SKP-11", "KP_UG" -- control point
							},
		[CONTROL_POINT] = { "Zil_SKP-11", "KP_UG" },
		[NIGHT_ILLUMINATION] = { "Zil_SKP-11" }
	},
	[WESTERN_FARP] = {
		[RESOURCE_AMMO] = { "M-818" },
		[RESOURCE_FUEL] = { "HEMTT", "GSM Rus"  },
		[RESOURCE_ELEC_POWER] = { "M-818" },
		[GROUND_SERVICE] = { 
							"M-818", "PalatkaB", --self
							"M-818", --ammo
							"HEMTT", "GSM Rus", --fuel
							"M-818", -- elec power
							"HMMWV_M1025", "KP_UG" --control point
							},
		[CONTROL_POINT] = { "HMMWV_M1025", "KP_UG" },
		[NIGHT_ILLUMINATION] = { "HMMWV_M1025" }
	}
}

objects_by_country_name = {
	["Russia"] = objects_by_side[RUSSIAN_FARP],
	["Ukraine"] = objects_by_side[RUSSIAN_FARP],
	["USA"] = objects_by_side[WESTERN_FARP],
	["Turkey"] = objects_by_side[WESTERN_FARP],
	["Germany"] = objects_by_side[WESTERN_FARP],
	["Canada"] = objects_by_side[WESTERN_FARP],
	["UK"] = objects_by_side[WESTERN_FARP],
	["France"] = objects_by_side[WESTERN_FARP],
	["Spain"] = objects_by_side[WESTERN_FARP],
	["The Netherlands"] = objects_by_side[WESTERN_FARP],
	["Belgium"] = objects_by_side[WESTERN_FARP],
	["Norway"] = objects_by_side[WESTERN_FARP],
	["Denmark"] = objects_by_side[WESTERN_FARP],
	["Georgia"] = objects_by_side[RUSSIAN_FARP],
	["Israel"] = objects_by_side[WESTERN_FARP],
	["Insurgents"] = objects_by_side[RUSSIAN_FARP],
	["Sweden"] = objects_by_side[WESTERN_FARP],
	["Hungary"] = objects_by_side[RUSSIAN_FARP],
	["Czech Republic"] = objects_by_side[RUSSIAN_FARP],
	["Afghanistan"] = objects_by_side[WESTERN_FARP],
	["Australia"] = objects_by_side[WESTERN_FARP],
	["China"] = objects_by_side[WESTERN_FARP],
	["Greece"] = objects_by_side[WESTERN_FARP],
	["India"] = objects_by_side[WESTERN_FARP],
	["Iran"] = objects_by_side[RUSSIAN_FARP],
	["Iraq"] = objects_by_side[WESTERN_FARP],
	["Italy"] = objects_by_side[WESTERN_FARP],
	["Pakistan"] = objects_by_side[WESTERN_FARP],
	["Poland"] = objects_by_side[WESTERN_FARP],
	["Tajikistan"] = objects_by_side[RUSSIAN_FARP],
	["Turkmenistan"] = objects_by_side[RUSSIAN_FARP],
	["Uzbekistan"] = objects_by_side[RUSSIAN_FARP],
	["Japan"] = objects_by_side[WESTERN_FARP],
	["Serbia"] = objects_by_side[RUSSIAN_FARP],
	["Croatia"] = objects_by_side[RUSSIAN_FARP],
	["Lithuania"] = objects_by_side[WESTERN_FARP],
	["New Zealand"] = objects_by_side[WESTERN_FARP],
	["Portugal"] = objects_by_side[WESTERN_FARP],
	["Romania"] = objects_by_side[RUSSIAN_FARP],
	["Albania"] = objects_by_side[RUSSIAN_FARP],
	["Azerbaidjan"] = objects_by_side[RUSSIAN_FARP],
	["Bulgaria"] = objects_by_side[RUSSIAN_FARP],
	["Estonia"] = objects_by_side[WESTERN_FARP],
	["Finland"] = objects_by_side[WESTERN_FARP],
	["Latvia"] = objects_by_side[WESTERN_FARP],
	["Slovakia"] = objects_by_side[RUSSIAN_FARP],
	["Slovenia"] = objects_by_side[RUSSIAN_FARP],
	["Macedonia"] = objects_by_side[RUSSIAN_FARP],
	["Armenia"] = objects_by_side[RUSSIAN_FARP],
	["Austria"] = objects_by_side[WESTERN_FARP],
	["Ireland"] = objects_by_side[WESTERN_FARP],
	["Kazakhstan"] = objects_by_side[RUSSIAN_FARP],
	["Kyrgyzstan"] = objects_by_side[RUSSIAN_FARP],
	["Switzerland"] = objects_by_side[WESTERN_FARP],
	["Catalonia"] = objects_by_side[WESTERN_FARP]
}

farp_objects_search_radius = 150.0
farp_objects_update_dt = 1.0