mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-29 03:22:12 +00:00
More guns for the gun box
- NT Mk98 (re)added. - P92X added.
This commit is contained in:
@@ -1,3 +1,18 @@
|
|||||||
/obj/item/gunbox
|
/obj/item/gunbox
|
||||||
name = "security sidearm box"
|
name = "security sidearm box"
|
||||||
desc = "A secure box containing a security sidearm."
|
desc = "A secure box containing a security sidearm."
|
||||||
|
|
||||||
|
/obj/item/gunbox/attack_self(mob/living/user)
|
||||||
|
var/list/options = list()
|
||||||
|
options["M1911 (.45)"] = list(/obj/item/weapon/gun/projectile/colt/detective, /obj/item/ammo_magazine/m45/rubber, /obj/item/ammo_magazine/m45/rubber)
|
||||||
|
options["NT Mk58 (.45)"] = list(/obj/item/weapon/gun/projectile/sec, /obj/item/ammo_magazine/m45/rubber, /obj/item/ammo_magazine/m45/rubber)
|
||||||
|
options["SW 625 Revolver (.45)"] = list(/obj/item/weapon/gun/projectile/revolver/detective45, /obj/item/ammo_magazine/s45/rubber, /obj/item/ammo_magazine/s45/rubber)
|
||||||
|
options["P92X (9mm)"] = list(/obj/item/weapon/gun/projectile/p92x/sec, /obj/item/ammo_magazine/m9mm/rubber, /obj/item/ammo_magazine/m9mm/rubber)
|
||||||
|
var/choice = input(user,"Would you prefer a pistol or a revolver?") as null|anything in options
|
||||||
|
if(src && choice)
|
||||||
|
var/list/things_to_spawn = options[choice]
|
||||||
|
for(var/new_type in things_to_spawn) // Spawn all the things, the gun and the ammo.
|
||||||
|
var/atom/movable/AM = new new_type(get_turf(src))
|
||||||
|
if(istype(AM, /obj/item/weapon/gun))
|
||||||
|
to_chat(user, "You have chosen \the [AM]. Say hello to your new friend.")
|
||||||
|
qdel(src)
|
||||||
@@ -1,2 +1,5 @@
|
|||||||
/obj/item/weapon/gun/projectile/sec/flash
|
/obj/item/weapon/gun/projectile/sec/flash
|
||||||
name = ".45 pistol"
|
name = ".45 pistol"
|
||||||
|
|
||||||
|
/obj/item/weapon/gun/projectile/p92x/sec
|
||||||
|
magazine_type = /obj/item/ammo_magazine/m9mm/rubber
|
||||||
Reference in New Issue
Block a user