Skip to content

Commit

Permalink
yippie
Browse files Browse the repository at this point in the history
  • Loading branch information
Releasethesea committed Nov 19, 2023
1 parent 9e45fbc commit ae5f5c3
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 4 deletions.
14 changes: 14 additions & 0 deletions code/modules/projectiles/gun_attachables.dm
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,20 @@ Defined in conflicts.dm of the #defines folder.
accuracy_mod = HIT_ACCURACY_MULT_TIER_3
scatter_mod = -SCATTER_AMOUNT_TIER_8

/obj/item/attachable/pmc_sniperbarrel
name = "sniper barrel"
icon = 'icons/obj/items/weapons/guns/attachments/barrel.dmi'
icon_state = "pmc_sniperbarrel"
desc = "A heavy barrel. CANNOT BE REMOVED."
slot = "muzzle"
flags_attach_features = NO_FLAGS
hud_offset_mod = -3

/obj/item/attachable/pmc_sniperbarrel/New()
..()
accuracy_mod = HIT_ACCURACY_MULT_TIER_3
scatter_mod = -SCATTER_AMOUNT_TIER_8

/obj/item/attachable/sniperbarrel/vulture
name = "\improper M707 barrel"
icon_state = "vulture_barrel"
Expand Down
8 changes: 4 additions & 4 deletions code/modules/projectiles/guns/specialist/sniper.dm
Original file line number Diff line number Diff line change
Expand Up @@ -337,8 +337,8 @@
damage_mult = BASE_BULLET_DAMAGE_MULT
recoil = RECOIL_AMOUNT_TIER_5

/obj/item/weapon/gun/rifle/sniper/xm43e1
name = "\improper XM43E1 experimental anti-materiel rifle"
/obj/item/weapon/gun/rifle/sniper/XM42B
name = "\improper XM42B experimental anti-materiel rifle"
desc = "An experimental anti-materiel rifle produced by Armat Systems, recently reacquired from the deep storage of an abandoned prototyping facility. This one in particular is currently undergoing field testing. Chambered in 10x99mm Caseless."
icon = 'icons/obj/items/weapons/guns/guns_by_faction/uscm.dmi'
icon_state = "xm42b"
Expand All @@ -353,7 +353,7 @@
zoomdevicename = "scope"
attachable_allowed = list(/obj/item/attachable/bipod)
flags_gun_features = GUN_AUTO_EJECTOR|GUN_SPECIALIST|GUN_WIELDED_FIRING_ONLY|GUN_AMMO_COUNTER
starting_attachment_types = list(/obj/item/attachable/sniperbarrel)
starting_attachment_types = list(/obj/item/attachable/pmc_sniperbarrel)
sniper_beam_type = /obj/effect/ebeam/laser/intense
sniper_beam_icon = "laser_beam_intense"
sniper_lockon_icon = "sniper_lockon_intense"
Expand Down Expand Up @@ -415,7 +415,7 @@
force = 17
zoomdevicename = "scope"
flags_gun_features = GUN_AUTO_EJECTOR|GUN_WY_RESTRICTED|GUN_SPECIALIST|GUN_WIELDED_FIRING_ONLY|GUN_AMMO_COUNTER
starting_attachment_types = list(/obj/item/attachable/sniperbarrel)
starting_attachment_types = list(/obj/item/attachable/pmc_sniperbarrel)
sniper_beam_type = /obj/effect/ebeam/laser/intense
sniper_beam_icon = "laser_beam_intense"
sniper_lockon_icon = "sniper_lockon_intense"
Expand Down
Binary file modified icons/obj/items/weapons/guns/attachments.dmi
Binary file not shown.
Binary file modified icons/obj/items/weapons/guns/attachments/barrel.dmi
Binary file not shown.

0 comments on commit ae5f5c3

Please sign in to comment.