Skip to content

Commit

Permalink
CLF sniper with an SVD
Browse files Browse the repository at this point in the history
  • Loading branch information
Zonespace27 committed Nov 11, 2024
1 parent efdc5c1 commit dc81cdc
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 2 deletions.
4 changes: 4 additions & 0 deletions code/game/objects/items/storage/belt.dm
Original file line number Diff line number Diff line change
Expand Up @@ -681,6 +681,10 @@
for(var/i = 1 to storage_slots)
new /obj/item/ammo_magazine/handful/shotgun/buckshot(src)

/obj/item/storage/belt/marine/svd/fill_preset_inventory() // SVD
for(var/i in 1 to storage_slots)
new /obj/item/ammo_magazine/sniper/svd(src)

/obj/item/storage/belt/marine/smartgunner
name = "\improper M280 pattern smartgunner drum belt"
desc = "Despite the fact that 1. drum magazines are incredibly non-ergonomical, and 2. require incredibly precise machining in order to fit universally (spoiler, they don't, adding further to the myth of 'Smartgun Personalities'), the USCM decided to issue a modified marine belt (more formally known by the designation M280) with hooks and dust covers (overly complex for the average jarhead) for the M56B system's drum munitions. When the carry catch on the drum isn't getting stuck in the oiled up velcro, the rig actually does do a decent job at holding a plentiful amount of drums. But at the end of the day, compared to standard rigs... it sucks, but isn't that what being a Marine is all about?"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@
set category = "Game Master.HumanAI"

var/static/list/sniper_equipment_presets = list(
/datum/equipment_preset/clf/sniper::name = /datum/equipment_preset/clf/sniper
/datum/equipment_preset/clf/sniper::name = /datum/equipment_preset/clf/sniper,
/datum/equipment_preset/clf/sniper/svd::name = /datum/equipment_preset/clf/sniper/svd,
)

if(!check_rights(R_DEBUG))
Expand Down
23 changes: 22 additions & 1 deletion code/modules/mob/living/carbon/human/ai/ai_equipment.dm
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
new_human.put_in_active_hand(new /obj/item/weapon/gun/launcher/rocket/anti_tank/disposable(new_human))

/datum/equipment_preset/clf/sniper
name = "CLF Sniper (AI)"
name = "CLF Sniper (AI) (Basira)"
flags = EQUIPMENT_PRESET_EXTRA
assignment = JOB_CLF
rank = JOB_CLF
Expand All @@ -118,3 +118,24 @@
new_human.put_in_active_hand(new /obj/item/weapon/gun/boltaction(new_human))

new_human.equip_to_slot_or_del(new /obj/item/device/radio/headset/distress/CLF(new_human), WEAR_L_EAR)

/datum/equipment_preset/clf/sniper/svd
name = "CLF Sniper (AI) (SVD)"

/datum/equipment_preset/clf/sniper/svd/load_gear(mob/living/carbon/human/new_human)
var/obj/item/clothing/under/colonist/clf/jumpsuit = new()
var/obj/item/clothing/accessory/storage/webbing/W = new()
jumpsuit.attach_accessory(new_human, W)
new_human.equip_to_slot_or_del(jumpsuit, WEAR_BODY)
spawn_rebel_suit(new_human)
spawn_rebel_helmet(new_human)
spawn_rebel_shoes(new_human)
spawn_rebel_gloves(new_human)
new_human.equip_to_slot_or_del(new /obj/item/tool/crowbar, WEAR_IN_JACKET)
new_human.equip_to_slot_or_del(new /obj/item/device/flashlight(new_human), WEAR_L_STORE)
new_human.equip_to_slot_or_del(new /obj/item/storage/pouch/firstaid/ert(new_human), WEAR_R_STORE)

new_human.equip_to_slot_or_del(new /obj/item/storage/belt/marine/svd(new_human), WEAR_WAIST)
new_human.put_in_active_hand(new /obj/item/weapon/gun/rifle/sniper/svd(new_human))

new_human.equip_to_slot_or_del(new /obj/item/device/radio/headset/distress/CLF(new_human), WEAR_L_EAR)

0 comments on commit dc81cdc

Please sign in to comment.