Skip to content

Commit

Permalink
PTRD (#706)
Browse files Browse the repository at this point in the history
* Cargo + fix

* Duplicate

* ASRS without acces (for SDMM)

* Undo ASRS
  • Loading branch information
CheBokJam authored Dec 13, 2024
1 parent 50a52ed commit 3bd80b0
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
12 changes: 12 additions & 0 deletions code/modules/projectiles/guns/mounted.dm
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,18 @@
undeploy_time = 0.25 SECONDS
movement_acc_penalty_mult = 20 // Good luck hitting on the move, bruv

/obj/item/weapon/gun/clf_heavyrifle/imported
name = "\improper PTR-41/1785I1"
desc = "PTR-41/1785I1 is an imported version of the original PTR-41 with a replacement receiver, making it possible to install the more common T-47 sight on it. However, the replacement also introduced some inconvenience, which is why it takes longer to shoot while aiming. Otherwise, it is an almost complete copy. While one could use it while standing it is obviously not a great idea. It is recommended to be used while the bipod is deployed. It uses 14.5mm high velocity rounds that will certainly leave a hole in whatever unfortunate soul is hit by it."
attachable_allowed = list(
/obj/item/attachable/motiondetector,
/obj/item/attachable/magnetic_harness,
/obj/item/attachable/flashlight/under,
/obj/item/attachable/stock/clf_heavyrifle,
/obj/item/attachable/scope/marine,
)

aim_fire_delay = 3 SECONDS
//-------------------------------------------------------
//AT-36 Anti Tank Gun

Expand Down
2 changes: 1 addition & 1 deletion code/modules/projectiles/mounted.dm
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
ADD_TRAIT(src, TRAIT_GUN_RELOADING, GUN_TRAIT)

var/obj/item/weapon/gun/gun = get_internal_item()
if(length(gun?.chamber_items))
if(length(gun?.chamber_items) && gun.reciever_flags != AMMO_RECIEVER_HANDFULS)
gun.unload(user)
update_appearance()

Expand Down
10 changes: 10 additions & 0 deletions code/modules/reqs/supplypacks/imports.dm
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@
group = "Imports"
containertype = /obj/structure/closet/crate/weapon

/datum/supply_packs/imports/clf_heavyrifle/imported
name = "PTR-41/1785I1"
contains = list(/obj/item/weapon/gun/clf_heavyrifle/imported)
cost = 350

/datum/supply_packs/imports/clf_heavyrifle/imported/ammo
name = "PTR-41/1785I1 ammo box"
contains = list(/obj/item/shotgunbox/clf_heavyrifle)
cost = 100

/datum/supply_packs/imports/m41a
name = "PR-11 Pulse Rifle"
contains = list(/obj/item/weapon/gun/rifle/m41a)
Expand Down

0 comments on commit 3bd80b0

Please sign in to comment.