mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 02:09:41 +00:00
Co-authored-by: Changelogs <action@github.com> Co-authored-by: Heroman3003 <31296024+Heroman3003@users.noreply.github.com> Co-authored-by: Guti <32563288+TheCaramelion@users.noreply.github.com> Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com> Co-authored-by: Kashargul <KashL@t-online.de>
45 lines
2.3 KiB
Plaintext
45 lines
2.3 KiB
Plaintext
/*
|
|
* Shotgun Box
|
|
*/
|
|
/obj/item/gunbox/warden
|
|
name = "warden's shotgun case"
|
|
desc = "A secure guncase containing the warden's beloved shotgun."
|
|
icon = 'icons/obj/storage_vr.dmi'
|
|
icon_state = "gunboxw"
|
|
|
|
/obj/item/gunbox/warden/attack_self(mob/living/user)
|
|
var/list/options = list()
|
|
options["Warden's combat shotgun"] = list(/obj/item/gun/projectile/shotgun/pump/combat/warden, /obj/item/ammo_magazine/ammo_box/b12g/beanbag)
|
|
options["Warden's compact shotgun"] = list(/obj/item/gun/projectile/shotgun/compact/warden, /obj/item/ammo_magazine/ammo_box/b12g/beanbag)
|
|
var/choice = tgui_input_list(user,"Choose your boomstick!", "Shotgun!", 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/gun))
|
|
to_chat(user, "You have chosen \the [AM]. Say hello to your new best friend.")
|
|
qdel(src)
|
|
|
|
/*
|
|
* Site Manager's Box
|
|
*/
|
|
/obj/item/gunbox/captain
|
|
name = "Captain's sidearm box"
|
|
desc = "A secure box containing a sidearm befitting of the site manager. Includes both lethal and non-lethal munitions, beware what's loaded!"
|
|
icon = 'icons/obj/storage.dmi'
|
|
icon_state = "gunbox"
|
|
/obj/item/gunbox/captain/attack_self(mob/living/user)
|
|
var/list/options = list()
|
|
options["M1911 (.45)"] = list(/obj/item/gun/projectile/colt/detective, /obj/item/ammo_magazine/m45/rubber, /obj/item/ammo_magazine/m45)
|
|
options["MT Mk58 (.45)"] = list(/obj/item/gun/projectile/sec, /obj/item/ammo_magazine/m45/rubber, /obj/item/ammo_magazine/m45)
|
|
options["LAEP80 \"Thor\" (Stun/Laser)"] = list(/obj/item/gun/energy/gun, /obj/item/cell/device/weapon, /obj/item/cell/device/weapon)
|
|
options["MarsTech P92X (9mm)"] = list(/obj/item/gun/projectile/p92x/rubber, /obj/item/ammo_magazine/m9mm/rubber, /obj/item/ammo_magazine/m9mm)
|
|
var/choice = tgui_input_list(user,"Would you prefer a ballistic pistol or an energy gun?", "Gun!", 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/gun))
|
|
to_chat(user, "You have chosen \the [AM]. Say hello to your new friend.")
|
|
qdel(src)
|