mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-30 07:27:57 +01:00
- Refactors action button backend
- Action buttons are no longer checked on Life(), items are responsible
for adding/removing/updating them.
- Item action buttons are no longer a static action_button_name define,
items define actions_types, which is a list of paths.
- Items can now have multiple action buttons.
- This is handled by new arguments to ui_action_click, the first
parameter is the user, the second is the path of the action datum
that was invoked.
- Refactored how internals function
- You may now directly switch internals without breaking anything.
- The internals icon has been updated to be more consistent.
- Added action buttons for jetpacks
- Added action buttons for oxygen tanks
- Uses-based implants now qdel() themselves when they run out of uses.
This is somewhat a buff to traitor implants, but it's such a minor
change. The actual reasoning is so that the action buttons are properly
removed.
- Fixed a bug with the "Boo" spell which resulted in IsAvailable failing
for certain ghosts.
- You can now shift-click on movable HUD elements to reset them to the
proper position (thank fucking christ)
100 lines
3.2 KiB
Plaintext
100 lines
3.2 KiB
Plaintext
/obj/item/weapon/gun/projectile/automatic/toy
|
|
name = "foam force SMG"
|
|
desc = "A prototype three-round burst toy submachine gun. Ages 8 and up."
|
|
icon = 'icons/obj/guns/toy.dmi'
|
|
icon_state = "saber"
|
|
item_state = "gun"
|
|
mag_type = /obj/item/ammo_box/magazine/toy/smg
|
|
fire_sound = 'sound/weapons/Gunshot_smg.ogg'
|
|
force = 0
|
|
throwforce = 0
|
|
burst_size = 3
|
|
can_suppress = 0
|
|
clumsy_check = 0
|
|
needs_permit = 0
|
|
|
|
/obj/item/weapon/gun/projectile/automatic/toy/process_chamber(eject_casing = 0, empty_chamber = 1)
|
|
..()
|
|
|
|
/obj/item/weapon/gun/projectile/automatic/toy/pistol
|
|
name = "foam force pistol"
|
|
desc = "A small, easily concealable toy handgun. Ages 8 and up."
|
|
icon_state = "pistol"
|
|
w_class = 2
|
|
mag_type = /obj/item/ammo_box/magazine/toy/pistol
|
|
fire_sound = 'sound/weapons/Gunshot.ogg'
|
|
can_suppress = 0
|
|
burst_size = 1
|
|
fire_delay = 0
|
|
actions_types = list()
|
|
|
|
/obj/item/weapon/gun/projectile/automatic/toy/pistol/update_icon()
|
|
..()
|
|
icon_state = "[initial(icon_state)][chambered ? "" : "-e"]"
|
|
|
|
/obj/item/weapon/gun/projectile/automatic/toy/pistol/riot
|
|
name = "foam force riot pistol"
|
|
desc = "RIOT! Ages 8 and up."
|
|
mag_type = /obj/item/ammo_box/magazine/toy/pistol/riot
|
|
|
|
/obj/item/weapon/gun/projectile/automatic/toy/pistol/riot/New()
|
|
magazine = new /obj/item/ammo_box/magazine/toy/pistol/riot(src)
|
|
..()
|
|
|
|
/obj/item/weapon/gun/projectile/shotgun/toy
|
|
name = "foam force shotgun"
|
|
desc = "A toy shotgun with wood furniture and a four-shell capacity underneath. Ages 8 and up."
|
|
icon = 'icons/obj/guns/toy.dmi'
|
|
force = 0
|
|
throwforce = 0
|
|
origin_tech = null
|
|
mag_type = /obj/item/ammo_box/magazine/internal/shot/toy
|
|
clumsy_check = 0
|
|
needs_permit = 0
|
|
|
|
/obj/item/weapon/gun/projectile/shotgun/toy/process_chamber()
|
|
..()
|
|
if(chambered && !chambered.BB)
|
|
qdel(chambered)
|
|
|
|
/obj/item/weapon/gun/projectile/shotgun/toy/crossbow
|
|
name = "foam force crossbow"
|
|
desc = "A weapon favored by many overactive children. Ages 8 and up."
|
|
icon_state = "crossbow"
|
|
item_state = "crossbow"
|
|
mag_type = /obj/item/ammo_box/magazine/internal/shot/toy/crossbow
|
|
fire_sound = 'sound/items/syringeproj.ogg'
|
|
slot_flags = SLOT_BELT
|
|
w_class = 2
|
|
|
|
/obj/item/weapon/gun/projectile/automatic/c20r/toy
|
|
name = "donksoft SMG"
|
|
desc = "A bullpup two-round burst toy SMG, designated 'C-20r'. Ages 8 and up."
|
|
icon = 'icons/obj/guns/toy.dmi'
|
|
can_suppress = 0
|
|
needs_permit = 0
|
|
mag_type = /obj/item/ammo_box/magazine/toy/smgm45
|
|
|
|
/obj/item/weapon/gun/projectile/automatic/c20r/toy/process_chamber(eject_casing = 0, empty_chamber = 1)
|
|
..()
|
|
|
|
/obj/item/weapon/gun/projectile/automatic/l6_saw/toy
|
|
name = "donksoft LMG"
|
|
desc = "A heavily modified toy light machine gun, designated 'L6 SAW'. Ages 8 and up."
|
|
icon = 'icons/obj/guns/toy.dmi'
|
|
can_suppress = 0
|
|
needs_permit = 0
|
|
mag_type = /obj/item/ammo_box/magazine/toy/m762
|
|
|
|
/obj/item/weapon/gun/projectile/automatic/l6_saw/toy/process_chamber(eject_casing = 0, empty_chamber = 1)
|
|
..()
|
|
|
|
/obj/item/weapon/gun/projectile/shotgun/toy/tommygun
|
|
name = "tommy gun"
|
|
desc = "Looks almost like the real thing! Great for practicing Drive-bys. Ages 8 and up."
|
|
icon = 'icons/obj/guns/projectile.dmi'
|
|
icon_state = "tommy"
|
|
item_state = "shotgun"
|
|
mag_type = /obj/item/ammo_box/magazine/internal/shot/toy/tommygun
|
|
w_class = 2
|