94 lines
3.1 KiB
Plaintext
94 lines
3.1 KiB
Plaintext
/obj/item/gun/ballistic/automatic/pistol
|
|
name = "stechkin pistol"
|
|
desc = "A small, easily concealable 10mm handgun. Has a threaded barrel for suppressors."
|
|
icon_state = "pistol"
|
|
w_class = WEIGHT_CLASS_SMALL
|
|
mag_type = /obj/item/ammo_box/magazine/m10mm
|
|
can_suppress = TRUE
|
|
burst_size = 1
|
|
fire_delay = 0
|
|
actions_types = list()
|
|
|
|
/obj/item/gun/ballistic/automatic/pistol/no_mag
|
|
spawnwithmagazine = FALSE
|
|
|
|
/obj/item/gun/ballistic/automatic/pistol/update_icon()
|
|
..()
|
|
icon_state = "[initial(icon_state)][chambered ? "" : "-e"][suppressed ? "-suppressed" : ""]"
|
|
|
|
/obj/item/gun/ballistic/automatic/pistol/suppressed/Initialize(mapload)
|
|
. = ..()
|
|
var/obj/item/suppressor/S = new(src)
|
|
install_suppressor(S)
|
|
|
|
/obj/item/gun/ballistic/automatic/pistol/m1911
|
|
name = "\improper M1911"
|
|
desc = "A classic .45 handgun with a small magazine capacity."
|
|
icon_state = "m1911"
|
|
w_class = WEIGHT_CLASS_NORMAL
|
|
mag_type = /obj/item/ammo_box/magazine/m45
|
|
can_suppress = FALSE
|
|
|
|
/obj/item/gun/ballistic/automatic/pistol/m1911/no_mag
|
|
spawnwithmagazine = FALSE
|
|
|
|
/obj/item/gun/ballistic/automatic/pistol/m1911/kitchengun
|
|
name = "\improper Kitchen Gun (TM)"
|
|
desc = "Say goodbye to dirt with Kitchen Gun (TM)! Laser sight and night vision accessories sold separately."
|
|
icon_state = "kitchengun"
|
|
mag_type = /obj/item/ammo_box/magazine/m45/kitchengun
|
|
|
|
/obj/item/gun/ballistic/automatic/pistol/deagle
|
|
name = "\improper Desert Eagle"
|
|
desc = "A robust .50 AE handgun."
|
|
icon_state = "deagle"
|
|
force = 14
|
|
mag_type = /obj/item/ammo_box/magazine/m50
|
|
can_suppress = FALSE
|
|
|
|
/obj/item/gun/ballistic/automatic/pistol/deagle/update_icon()
|
|
..()
|
|
if(magazine)
|
|
cut_overlays()
|
|
add_overlay("deagle_magazine")
|
|
else
|
|
cut_overlays()
|
|
icon_state = "[initial(icon_state)][chambered ? "" : "-e"]"
|
|
|
|
/obj/item/gun/ballistic/automatic/pistol/deagle/gold
|
|
desc = "A gold plated Desert Eagle folded over a million times by superior martian gunsmiths. Uses .50 AE ammo."
|
|
icon_state = "deagleg"
|
|
item_state = "deagleg"
|
|
|
|
/obj/item/gun/ballistic/automatic/pistol/deagle/camo
|
|
desc = "A Deagle brand Deagle for operators operating operationally. Uses .50 AE ammo."
|
|
icon_state = "deaglecamo"
|
|
item_state = "deagleg"
|
|
|
|
/obj/item/gun/ballistic/automatic/pistol/APS
|
|
name = "stechkin APS pistol"
|
|
desc = "The original Russian version of a widely used Syndicate sidearm. Uses 9mm ammo."
|
|
icon_state = "aps"
|
|
w_class = WEIGHT_CLASS_SMALL
|
|
mag_type = /obj/item/ammo_box/magazine/pistolm9mm
|
|
can_suppress = FALSE
|
|
burst_size = 3
|
|
fire_delay = 2
|
|
actions_types = list(/datum/action/item_action/toggle_firemode)
|
|
|
|
/obj/item/gun/ballistic/automatic/pistol/stickman
|
|
name = "flat gun"
|
|
desc = "A 2 dimensional gun.. what?"
|
|
icon_state = "flatgun"
|
|
|
|
/obj/item/gun/ballistic/automatic/pistol/stickman/pickup(mob/living/user)
|
|
to_chat(user, "<span class='notice'>As you try to pick up [src], it slips out of your grip..</span>")
|
|
if(prob(50))
|
|
to_chat(user, "<span class='notice'>..and vanishes from your vision! Where the hell did it go?</span>")
|
|
qdel(src)
|
|
user.update_icons()
|
|
else
|
|
to_chat(user, "<span class='notice'>..and falls into view. Whew, that was a close one.</span>")
|
|
user.dropItemToGround(src)
|
|
|