Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: Delta SM Space Drop #685

Merged
merged 20 commits into from
Nov 14, 2023
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6,345 changes: 3,078 additions & 3,267 deletions _maps/map_files220/delta/delta.dmm

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions modular_ss220/modular_ss220.dme
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
#include "radio_sound/radio_sound.dme"
#include "screentip_change/_screentip_change.dme"
#include "smart_equip_targeted/_smart_equip_targeted.dme"
#include "sm_space_drop/sm_space_drop.dme"
#include "text_to_speech/_tts.dme"
#include "title_screen/_title_screen.dme"
#include "whitelist/_whitelist.dme"
Expand Down
22 changes: 22 additions & 0 deletions modular_ss220/sm_space_drop/code/paper_sm_info.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// Инструкция пользование системы сброса СМ

/obj/item/paper/sm_paper
name = "\improper инструкция по использованию СБСКС"
icon = 'icons/obj/bureaucracy.dmi'
icon_state = "paper"
info = {"<b><div style='text-align:center;'></h1>Инструкция по использованию Системы Быстрого Сброса Кристала Суперматерии</h1></b><br>
</center></h2><img src='ntlogo.png'></h2></center>
<br>1. Ни при каких обстоятельствах не нажимать на кнопку ради проверки ее работоспособности.<br>

<br>2. Решение о сбросе кристала может принимать СЕ или его ВРиО и выше.<br>
GREG-MAP marked this conversation as resolved.
Show resolved Hide resolved

<br>3. Если целостность кристала равна 10 или мение процентов, должне быть произведен сброс кристала в кратчайшее время.<br>
GREG-MAP marked this conversation as resolved.
Show resolved Hide resolved

<br>4. В случае отсутствия СЕ и до назначения его ВРиО решение о сбросе кристала принимает Капитан.<br>
GREG-MAP marked this conversation as resolved.
Show resolved Hide resolved

<br>5. Создание помехи при неообходимости сброса кристала квалифицируется статьей 400 космического закона.<br>
GREG-MAP marked this conversation as resolved.
Show resolved Hide resolved

<br>Поздравляю! Теперь в случае вероятности взрыва кристала супер материи вы в состоянии сохранить целостность станции.<br>
GREG-MAP marked this conversation as resolved.
Show resolved Hide resolved

<br>ПРИМЕЧАНИЕ Кнопка сброса СМ находится в его буферной зоне на стене возле правого вента.<br>
GREG-MAP marked this conversation as resolved.
Show resolved Hide resolved
"}
GREG-MAP marked this conversation as resolved.
Show resolved Hide resolved
41 changes: 41 additions & 0 deletions modular_ss220/sm_space_drop/code/sm_button.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@

//////////////////////////////////////
// СБССМ Кнопки //
//////////////////////////////////////

/obj/machinery/driver_button/sm_drop_button
name = "\improper кнопка сброса СМ"
desc = "Кнопка для экстренного выбраса СМ в космос"
icon = 'modular_ss220/sm_space_drop/icons/sm_buttons.dmi'
icon_state = "launcherbtt"
anchored = TRUE
armor = list(melee = 50, bullet = 50, laser = 50, energy = 50, bomb = 10, rad = 100, fire = 90, acid = 70)
idle_power_consumption = 2
active_power_consumption = 4
resistance_flags = LAVA_PROOF | FIRE_PROOF
id_tag = "SpaceDropSM"
req_access = list(ACCESS_CE)

/obj/machinery/driver_button/sm_drop_button/attack_hand(mob/user)
if(stat & (NOPOWER|BROKEN))
return

if(active)
return

add_fingerprint(user)

if(!allowed(usr))
return

use_power(5)

for(var/obj/machinery/atmospherics/supermatter_crystal/engine/crystal in SSair.atmos_machinery)
if(crystal.id_tag == id_tag)
crystal.anchored = FALSE
break
GREG-MAP marked this conversation as resolved.
Show resolved Hide resolved

launch_sequence()

/obj/machinery/driver_button/drop_sm/multitool_act(mob/user, obj/item/I)
return FALSE
14 changes: 14 additions & 0 deletions modular_ss220/sm_space_drop/code/sm_mass_driver.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/obj/machinery/mass_driver/sm_mass_driver
name = "\improper пусковая установка СМ"
desc = "Запускает СМ бороздить просторы космоса."
icon = 'icons/obj/objects.dmi'
icon_state = "mass_driver"
anchored = TRUE
idle_power_consumption = 2
active_power_consumption = 50
resistance_flags = LAVA_PROOF | FIRE_PROOF | UNACIDABLE | ACID_PROOF

id_tag = "SpaceDropSM"

/obj/machinery/sm_mass_driver/multitool_act(mob/user, obj/item/I)
return FALSE
4 changes: 4 additions & 0 deletions modular_ss220/sm_space_drop/code/sm_space_drop.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/obj/machinery/atmospherics/supermatter_crystal/engine
is_main_engine = TRUE
anchored = TRUE
var/id_tag = "SpaceDropSM"
Binary file added modular_ss220/sm_space_drop/icons/sm_buttons.dmi
Binary file not shown.
7 changes: 7 additions & 0 deletions modular_ss220/sm_space_drop/sm_space_drop.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/datum/modpack/sm_space_drop

name = "Система сброса СМ"

desc = "Позволяет сбросить СМ в критической ситуации когда остановить разложение или востановить его уже нельзя"

author = "GREG"
GREG-MAP marked this conversation as resolved.
Show resolved Hide resolved
6 changes: 6 additions & 0 deletions modular_ss220/sm_space_drop/sm_space_drop.dme
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#include "sm_space_drop.dm"

#include "code/sm_button.dm"
#include "code/sm_space_drop.dm"
#include "code/sm_mass_driver.dm"
#include "code/paper_sm_info.dm"
Loading