SS13 construct (#593)

<!-- Write **BELOW** The Headers and **ABOVE** The comments else it may
not be viewable. -->
<!-- You can view Contributing.MD for a detailed description of the pull
request process. -->

## About The Pull Request

<!-- Describe The Pull Request. Please be sure every change is
documented or this can delay review and even discourage maintainers from
merging your PR! -->

<!-- Please make sure to actually test your PRs. If you have not tested
your PR mention it. -->

This PR, will add to the game a new test map SS13 construct, a port of
the famous map from Garys Mod, by ocean_fish. Also, a number of tools
from the same game - namely:

Physgun, tools to manipulate the gravity of objects.
Phystool, or toolgun with five modes of operation.
Fly, Noclip. 


![ss13_construct_full](https://github.com/Bubberstation/Bubberstation/assets/126053988/c5a99d33-8ffc-4203-9ef2-3217ade3ca04)
https://youtu.be/lGXmsiecvfo
## Why It's Good For The Game

<!-- Argue for the merits of your changes and how they benefit the game,
especially if they are controversial and/or far reaching. If you can't
actually explain WHY what you are doing will improve the game, then it
probably isn't good for the game in the first place. -->
New, user-friendly test tools.

## Changelog

<!-- If your PR modifies aspects of the game that can be concretely
observed by players or admins you should add a changelog. If your change
does NOT meet this description, remove this section. Be sure to properly
mark your PRs to prevent unnecessary GBP loss. You can read up on GBP
and it's effects on PRs in the tgstation guides for contributors. Please
note that maintainers freely reserve the right to remove and add tags
should they deem it appropriate. You can attempt to finagle the system
all you want, but it's best to shoot for clear communication right off
the bat. -->

🆑
add: Added new map SS13 Construct
add: Added new new debug tool: physgun, phystool
add: Added new abilites: noclip, fly
sound: added phystools sounds
config: added SS13 constuct to avaible maps
/🆑

<!-- Both 🆑's are required for the changelog to work! You can put
your name to the right of the first 🆑 if you want to overwrite your
GitHub username as author ingame. -->
<!-- You can use multiple of the same prefix (they're only used for the
icon ingame) and delete the unneeded ones. Despite some of the tags,
changelogs should generally represent how a player might be affected by
the changes rather than a summary of the PR's contents. -->

---------

Co-authored-by: Resomi Enjoer <fenyshaarmagedon.gmai.com>
Co-authored-by: OceanFish1 <65843722+OceanFish1@users.noreply.github.com>
Co-authored-by: nevimer <77420409+nevimer@users.noreply.github.com>
This commit is contained in:
Fenysha
2023-11-06 21:32:36 -05:00
committed by GitHub
co-authored by Resomi Enjoer <fenyshaarmagedon.gmai.com> OceanFish1 nevimer
parent 6a35918b1f
commit 8a31efc1ff
29 changed files with 66071 additions and 1 deletions
@@ -0,0 +1,83 @@
/obj/item/phystool
name = "Toolgun"
desc = "Some kind of a revolver with a bluespace power cell and an anomaly core attached together."
icon = 'modular_zubbers/icons/obj/equipment/architector_items.dmi'
icon_state = "toolgun"
inhand_icon_state = "toolgun"
worn_icon_state = "toolgun"
worn_icon = 'modular_zubbers/icons/mob/inhands/architector_items_belt.dmi'
lefthand_file = 'modular_zubbers/icons/mob/inhands/architector_items_lefthand.dmi'
righthand_file = 'modular_zubbers/icons/mob/inhands/architector_items_righthand.dmi'
demolition_mod = 0.5
w_class = WEIGHT_CLASS_SMALL
throwforce = 0
throw_speed = 1
throw_range = 1
drop_sound = 'sound/items/handling/screwdriver_drop.ogg'
pickup_sound = 'modular_zubbers/sound/phystools/toolgun_select.ogg'
resistance_flags = INDESTRUCTIBLE
//The mode that is chosen at the moment.
var/datum/phystool_mode/selected_mode
//Available modes.
var/list/datum/phystool_mode/avaible_modes = list(
/datum/phystool_mode/build_mode,
/datum/phystool_mode/spawn_mode,
/datum/phystool_mode/remove_mode,
/datum/phystool_mode/color_mode,
/datum/phystool_mode/size_mode,
)
//The datum of the beam.
var/datum/beam/work_beam
/obj/item/phystool/examine(mob/user)
. = ..()
. += span_notice("Use ALT + LMB on the device to choose the mode.")
if(!selected_mode)
. += span_notice("No selected mode!")
return
. += span_notice(selected_mode.desc)
/obj/item/phystool/AltClick(mob/user)
. = ..()
if(selected_mode)
qdel(selected_mode)
var/datum/phystool_mode/mode_to_select = tgui_input_list(user, "Select work mode:", "Phystool mode", avaible_modes)
if(!mode_to_select)
return
selected_mode = new mode_to_select
selected_mode.on_selected(user)
playsound(user, 'modular_zubbers/sound/phystools/toolgun_select.ogg', 100, TRUE)
/obj/item/phystool/attack_self(mob/user)
. = ..()
if(!selected_mode)
return
selected_mode.use_act(user)
/obj/item/phystool/afterattack(atom/target, mob/user, proximity_flag, click_parameters)
. = ..()
if(!selected_mode)
return
if(!selected_mode.main_act(target, user))
playsound(user, 'modular_zubbers/sound/phystools/toolgun_error.ogg', 100, TRUE)
return
do_work_effect(target, user)
playsound(user, 'modular_zubbers/sound/phystools/toolgun_shot1.ogg', 100, TRUE)
/obj/item/phystool/afterattack_secondary(atom/target, mob/user, proximity_flag, click_parameters)
. = ..()
if(!selected_mode)
return
if(!selected_mode.secondnary_act(target, user))
playsound(user, 'modular_zubbers/sound/phystools/toolgun_error.ogg', 100, TRUE)
return
do_work_effect(target, user)
playsound(user, 'modular_zubbers/sound/phystools/toolgun_shot1.ogg', 100, TRUE)
return SECONDARY_ATTACK_CONTINUE_CHAIN
/obj/item/phystool/proc/do_work_effect(atom/target, mob/user)
if(!target)
return
work_beam = user.Beam(target, "light_beam", time = 3)