/datum/outfit/ert
	name = "ERT Common"

	uniform = /obj/item/clothing/under/rank/centcom_officer
	shoes = /obj/item/clothing/shoes/combat/swat
	gloves = /obj/item/clothing/gloves/combat
	ears = /obj/item/device/radio/headset/headset_cent/alt

/datum/outfit/ert/post_equip(mob/living/carbon/human/H)
	var/obj/item/weapon/implant/loyalty/L = new/obj/item/weapon/implant/loyalty(H)
	L.imp_in = H
	L.implanted = 1
	H.sec_hud_set_implants()

	var/obj/item/device/radio/R = H.ears
	R.set_frequency(CENTCOM_FREQ)
	R.freqlock = 1

	var/obj/item/weapon/card/id/W = H.wear_id
	W.registered_name = H.real_name
	W.update_label(W.registered_name, W.assignment)

/datum/outfit/ert/commander
	name = "ERT Commander"

	id = /obj/item/weapon/card/id/ert
	suit = /obj/item/clothing/suit/space/hardsuit/ert
	glasses = /obj/item/clothing/glasses/thermal/eyepatch
	back = /obj/item/weapon/storage/backpack/captain
	belt = /obj/item/weapon/storage/belt/security/full
	backpack_contents = list(/obj/item/weapon/storage/box/engineer=1,\
		/obj/item/weapon/melee/baton/loaded=1,\
		/obj/item/clothing/mask/gas/sechailer=1,\
		/obj/item/weapon/gun/energy/gun=1)
	l_pocket = /obj/item/weapon/switchblade

/datum/outfit/ert/commander/post_equip(mob/living/carbon/human/H)
	..()
	var/obj/item/device/radio/R = H.ears
	R.keyslot = new /obj/item/device/encryptionkey/heads/captain
	R.recalculateChannels()

/datum/outfit/ert/commander/alert
	name = "ERT Commander - High Alert"

	backpack_contents = list(/obj/item/weapon/storage/box/engineer=1,\
		/obj/item/weapon/melee/baton/loaded=1,\
		/obj/item/clothing/mask/gas/sechailer/swat=1,\
		/obj/item/weapon/gun/energy/pulse/pistol/loyalpin=1)
	l_pocket = /obj/item/weapon/melee/energy/sword/saber

/datum/outfit/ert/security
	name = "ERT Security"

	id = /obj/item/weapon/card/id/ert/Security
	suit = /obj/item/clothing/suit/space/hardsuit/ert/sec
	glasses = /obj/item/clothing/glasses/hud/security/sunglasses
	back = /obj/item/weapon/storage/backpack/security
	belt = /obj/item/weapon/storage/belt/security/full
	backpack_contents = list(/obj/item/weapon/storage/box/engineer=1,\
		/obj/item/weapon/storage/box/handcuffs=1,\
		/obj/item/clothing/mask/gas/sechailer=1,\
		/obj/item/weapon/gun/energy/gun=1,\
		/obj/item/weapon/melee/baton/loaded=1,\
		/obj/item/weapon/gun/energy/gun/advtaser=1)

/datum/outfit/ert/security/post_equip(mob/living/carbon/human/H)
	..()
	var/obj/item/device/radio/R = H.ears
	R.keyslot = new /obj/item/device/encryptionkey/heads/hos
	R.recalculateChannels()

/datum/outfit/ert/security/alert
	name = "ERT Security - High Alert"

	backpack_contents = list(/obj/item/weapon/storage/box/engineer=1,\
		/obj/item/weapon/storage/box/handcuffs=1,\
		/obj/item/clothing/mask/gas/sechailer/swat=1,\
		/obj/item/weapon/melee/baton/loaded=1,\
		/obj/item/weapon/gun/energy/pulse/carbine/loyalpin=1)


/datum/outfit/ert/medic
	name = "ERT Medic"

	id = /obj/item/weapon/card/id/ert/Medical
	suit = /obj/item/clothing/suit/space/hardsuit/ert/med
	glasses = /obj/item/clothing/glasses/hud/health
	back = /obj/item/weapon/storage/backpack/medic
	belt = /obj/item/weapon/storage/belt/medical
	r_hand = /obj/item/weapon/storage/firstaid/regular
	backpack_contents = list(/obj/item/weapon/storage/box/engineer=1,\
		/obj/item/weapon/melee/baton/loaded=1,\
		/obj/item/clothing/mask/gas/sechailer=1,\
		/obj/item/weapon/gun/energy/gun=1,\
		/obj/item/weapon/reagent_containers/hypospray/combat=1)

/datum/outfit/ert/medic/post_equip(mob/living/carbon/human/H)
	..()
	var/obj/item/device/radio/R = H.ears
	R.keyslot = new /obj/item/device/encryptionkey/heads/cmo
	R.recalculateChannels()

/datum/outfit/ert/medic/alert
	name = "ERT Medic - High Alert"

	backpack_contents = list(/obj/item/weapon/storage/box/engineer=1,\
		/obj/item/weapon/melee/baton/loaded=1,\
		/obj/item/clothing/mask/gas/sechailer/swat=1,\
		/obj/item/weapon/gun/energy/pulse/pistol/loyalpin=1,\
		/obj/item/weapon/reagent_containers/hypospray/combat/nanites=1)

/datum/outfit/ert/engineer
	name = "ERT Engineer"

	id = /obj/item/weapon/card/id/ert/Engineer
	suit = /obj/item/clothing/suit/space/hardsuit/ert/engi
	glasses =  /obj/item/clothing/glasses/meson/engine
	back = /obj/item/weapon/storage/backpack/industrial
	belt = /obj/item/weapon/storage/belt/utility/full
	l_pocket = /obj/item/weapon/rcd_ammo/large
	r_hand = /obj/item/weapon/storage/firstaid/regular
	backpack_contents = list(/obj/item/weapon/storage/box/engineer=1,\
		/obj/item/weapon/melee/baton/loaded=1,\
		/obj/item/clothing/mask/gas/sechailer=1,\
		/obj/item/weapon/gun/energy/gun=1,\
		/obj/item/weapon/rcd/loaded=1)

/datum/outfit/ert/engineer/post_equip(mob/living/carbon/human/H)
	..()
	var/obj/item/device/radio/R = H.ears
	R.keyslot = new /obj/item/device/encryptionkey/heads/ce
	R.recalculateChannels()

/datum/outfit/ert/engineer/alert
	name = "ERT Engineer - High Alert"

	backpack_contents = list(/obj/item/weapon/storage/box/engineer=1,\
		/obj/item/weapon/melee/baton/loaded=1,\
		/obj/item/clothing/mask/gas/sechailer/swat=1,\
		/obj/item/weapon/gun/energy/pulse/pistol/loyalpin=1,\
		/obj/item/weapon/rcd/combat=1)


/datum/outfit/centcom_official
	name = "Centcom Official"

	uniform = /obj/item/clothing/under/rank/centcom_officer
	shoes = /obj/item/clothing/shoes/sneakers/black
	gloves = /obj/item/clothing/gloves/color/black
	ears = /obj/item/device/radio/headset/headset_cent
	glasses = /obj/item/clothing/glasses/sunglasses
	belt = /obj/item/weapon/gun/energy/gun
	l_pocket = /obj/item/weapon/pen
	back = /obj/item/weapon/storage/backpack/satchel_norm
	r_pocket = /obj/item/device/pda/heads
	l_hand = /obj/item/weapon/clipboard
	id = /obj/item/weapon/card/id

/datum/outfit/centcom_official/post_equip(mob/living/carbon/human/H)
	var/obj/item/device/pda/heads/pda = H.r_store
	pda.owner = H.real_name
	pda.ownjob = "Centcom Official"
	pda.update_label()

	var/obj/item/weapon/card/id/W = H.wear_id
	W.icon_state = "centcom"
	W.access = get_centcom_access("Centcom Official")
	W.access += access_weapons
	W.assignment = "Centcom Official"
	W.registered_name = H.real_name
	W.update_label()