mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-03-31 00:51:01 +01:00
* Begin clickcode attack_self fix Begins the work to make everything call back to parent for attack_self so that signals are sacred. * Makes MORE things call the attack_self() parent Yes, I could make special_handling a var on obj/item HOWEVER i want it to be specific so it can be tracked down later and ONLY the objects that use it can be refactored instead of sitting there literally forever and it just becoming 'a thing'. * Finishes making the rest of attack_self call parent. As mentioned, things such as 'specialty_goggles' 'special_handling' and the such are only there to help with attack_self until the attack_self is recoded for those items. * begone foul demon * some more cleanup * These * GOD this was annoying * yeh * Fix this * fLARES * Thesee too * toys! * Even more! * More fixes * Even more * rest of em * these too * Update syndie.dm * hardref clear * Update code/game/gamemodes/nuclear/pinpointer.dm * Update code/game/objects/effects/mines.dm * Update code/game/objects/items/blueprints_vr.dm * Update code/game/objects/items/blueprints_vr.dm * Update code/game/objects/items/contraband_vr.dm * Update code/game/objects/items/crayons.dm * Update code/game/objects/items/crayons.dm * Update code/game/objects/items/gunbox.dm * Update code/game/objects/items/gunbox.dm * Update code/game/objects/items/gunbox_vr.dm * Update code/game/objects/items/gunbox_vr.dm * Update code/game/objects/items/weapons/gift_wrappaper.dm * Update code/game/objects/items/crayons.dm * Update code/game/objects/items/crayons.dm * Update code/game/objects/items/gunbox.dm * these too * Update maintpanel_stack.dm * angry warning * Fixes packaged snacks. Fixes improper var default. * Special handling for these * proper poly types * Fixes magclaws Makes the 'features' it had just part of base magboots that can be adjusted via varswap. * Fixes jackets Fixes https://github.com/VOREStation/VOREStation/issues/18941 * Small bugfix Makes p_Theyre properly capitialize Makes examine show proper wording * Update gift_wrappaper.dm
85 lines
3.5 KiB
Plaintext
85 lines
3.5 KiB
Plaintext
/*
|
|
* Sidearm Lethal
|
|
*/
|
|
/obj/item/gunbox
|
|
name = "sidearm box"
|
|
desc = "A secure box containing a lethal sidearm."
|
|
icon = 'icons/obj/storage.dmi'
|
|
icon_state = "gunbox"
|
|
w_class = ITEMSIZE_HUGE
|
|
///If the gunbox has custom attack_self code
|
|
var/variant_gunbox = FALSE
|
|
/obj/item/gunbox/attack_self(mob/living/user)
|
|
. = ..(user)
|
|
if(.)
|
|
return TRUE
|
|
if(variant_gunbox)
|
|
return
|
|
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/rubber)
|
|
options["MT Mk58 (.45)"] = list(/obj/item/gun/projectile/sec, /obj/item/ammo_magazine/m45/rubber, /obj/item/ammo_magazine/m45/rubber)
|
|
options["MarsTech R1 (.45)"] = list(/obj/item/gun/projectile/revolver/detective45, /obj/item/ammo_magazine/s45/rubber, /obj/item/ammo_magazine/s45/rubber)
|
|
options["MarsTech P92X (9mm)"] = list(/obj/item/gun/projectile/p92x/rubber, /obj/item/ammo_magazine/m9mm/rubber, /obj/item/ammo_magazine/m9mm/rubber)
|
|
var/choice = tgui_input_list(user,"Would you prefer a pistol or a revolver?", "Gun!", options)
|
|
if(!choice)
|
|
return
|
|
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)
|
|
|
|
/*
|
|
* Sidearm Stun
|
|
*/
|
|
/obj/item/gunbox/stun
|
|
name = "non-lethal sidearm box"
|
|
desc = "A secure box containing a non-lethal sidearm."
|
|
variant_gunbox = TRUE
|
|
/obj/item/gunbox/stun/attack_self(mob/living/user)
|
|
. = ..(user)
|
|
if(.)
|
|
return TRUE
|
|
var/list/options = list()
|
|
options["Stun Revolver"] = list(/obj/item/gun/energy/stunrevolver/detective, /obj/item/cell/device/weapon, /obj/item/cell/device/weapon)
|
|
options["Taser"] = list(/obj/item/gun/energy/taser, /obj/item/cell/device/weapon, /obj/item/cell/device/weapon)
|
|
var/choice = tgui_input_list(user,"Please, select an option.", "Stun Gun!", options)
|
|
if(!choice)
|
|
return
|
|
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)
|
|
|
|
/*
|
|
* CentCom Pistol
|
|
*/
|
|
/obj/item/gunbox/centcom
|
|
name = "centcom sidearm box"
|
|
desc = "A secure box containing a lethal sidearm used by Central Command."
|
|
w_class = ITEMSIZE_HUGE
|
|
variant_gunbox = TRUE
|
|
/obj/item/gunbox/centcom/attack_self(mob/living/user)
|
|
. = ..(user)
|
|
if(.)
|
|
return TRUE
|
|
var/list/options = list()
|
|
options["Écureuil (10mm)"] = list(/obj/item/gun/projectile/ecureuil, /obj/item/ammo_magazine/m10mm/pistol, /obj/item/ammo_magazine/m10mm/pistol)
|
|
options["Écureuil Olive (10mm)"] = list(/obj/item/gun/projectile/ecureuil/tac, /obj/item/ammo_magazine/m10mm/pistol, /obj/item/ammo_magazine/m10mm/pistol)
|
|
options["Écureuil Tan (10mm)"] = list(/obj/item/gun/projectile/ecureuil/tac2, /obj/item/ammo_magazine/m10mm/pistol, /obj/item/ammo_magazine/m10mm/pistol)
|
|
var/choice = tgui_input_list(user,"Please, select an option.", "Gun!", options)
|
|
if(!choice)
|
|
return
|
|
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)
|