mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
67 lines
3.8 KiB
Plaintext
67 lines
3.8 KiB
Plaintext
// For all intents and purposes, these work exactly the same as pump shotguns. It's unnecessary to make their own procs for them.
|
|
|
|
/obj/item/weapon/gun/projectile/shotgun/pump/rifle
|
|
name = "bolt action rifle"
|
|
desc = "A reproduction of an almost ancient weapon design from the early 20th century. It's still popular among hunters and collectors due to its reliability. Uses 5.56mm rounds."
|
|
item_state = "boltaction"
|
|
icon_state = "boltaction"
|
|
fire_sound = 'sound/weapons/rifleshot.ogg'
|
|
max_shells = 5
|
|
caliber = "a556"
|
|
origin_tech = list(TECH_COMBAT = 1)// Old as shit rifle doesn't have very good tech.
|
|
ammo_type = /obj/item/ammo_casing/a556
|
|
load_method = SINGLE_CASING|SPEEDLOADER
|
|
action_sound = 'sound/weapons/riflebolt.ogg'
|
|
|
|
/obj/item/weapon/gun/projectile/shotgun/pump/rifle/practice // For target practice
|
|
desc = "A bolt-action rifle with a lightweight synthetic wood stock, designed for competitive shooting. Comes shipped with practice rounds pre-loaded into the gun. Popular among professional marksmen. Uses 5.56mm rounds."
|
|
ammo_type = /obj/item/ammo_casing/a556p
|
|
|
|
/obj/item/weapon/gun/projectile/shotgun/pump/rifle/ceremonial
|
|
name = "ceremonial bolt-action rifle"
|
|
desc = "A bolt-action rifle with a heavy, high-quality wood stock that has a beautiful finish. Clearly not intended to be used in combat. Uses 5.56mm rounds."
|
|
ammo_type = /obj/item/ammo_casing/a556/blank
|
|
|
|
/obj/item/weapon/gun/projectile/shotgun/pump/rifle/mosin
|
|
name = "\improper Mosin Nagant"
|
|
desc = "Despite its age, the Mosin Nagant continues to be a favorite weapon among colonists, conscripts, and militias across the cosmos. Most today are built by Chen-Iltchenko Firearms, but it's hard to say who built this particular gun, considering the design has been ripped off by just about every arms manufacturer in the galaxy. Uses 5.56mm rounds."
|
|
icon_state = "mosin"
|
|
item_state = "mosin"
|
|
|
|
// Stole hacky terrible code from doublebarrel shotgun. -Spades
|
|
/obj/item/weapon/gun/projectile/shotgun/pump/rifle/mosin/attackby(var/obj/item/A as obj, mob/user as mob)
|
|
if(istype(A, /obj/item/weapon/surgical/circular_saw) || istype(A, /obj/item/weapon/melee/energy) || istype(A, /obj/item/weapon/pickaxe/plasmacutter) && w_class != ITEMSIZE_NORMAL)
|
|
user << "<span class='notice'>You begin to shorten the barrel and stock of \the [src].</span>"
|
|
if(loaded.len)
|
|
afterattack(user, user) //will this work? //it will. we call it twice, for twice the FUN
|
|
playsound(user, fire_sound, 50, 1)
|
|
user.visible_message("<span class='danger'>[src] goes off!</span>", "<span class='danger'>The rifle goes off in your face!</span>")
|
|
return
|
|
if(do_after(user, 30))
|
|
icon_state = "obrez"
|
|
w_class = ITEMSIZE_NORMAL
|
|
recoil = 2 // Owch
|
|
accuracy = -1 // You know damn well why.
|
|
item_state = "gun"
|
|
slot_flags &= ~SLOT_BACK //you can't sling it on your back
|
|
slot_flags |= (SLOT_BELT|SLOT_HOLSTER) //but you can wear it on your belt (poorly concealed under a trenchcoat, ideally) - or in a holster, why not.
|
|
name = "\improper Obrez"
|
|
desc = "The firepower of a Mosin, now the size of a pistol, with an effective combat range of about three feet. Uses 7.62mm rounds."
|
|
user << "<span class='warning'>You shorten the barrel and stock of \the [src]!</span>"
|
|
else
|
|
..()
|
|
|
|
|
|
//Lever actions are the same thing, but bigger.
|
|
/obj/item/weapon/gun/projectile/shotgun/pump/rifle/lever
|
|
name = "lever-action rifle"
|
|
desc = "A reproduction of an almost ancient weapon design from the 19th century. This one uses a lever-action to move new rounds into the chamber. Uses 7.62mm rounds."
|
|
item_state = "leveraction"
|
|
icon_state = "leveraction"
|
|
fire_sound = 'sound/weapons/rifleshot.ogg'
|
|
max_shells = 5
|
|
caliber = "a762"
|
|
origin_tech = list(TECH_COMBAT = 1)// Old as shit rifle doesn't have very good tech.
|
|
ammo_type = /obj/item/ammo_casing/a762
|
|
load_method = SINGLE_CASING|SPEEDLOADER
|
|
action_sound = 'sound/weapons/riflebolt.ogg' |