Skip to content

Commit

Permalink
Event terminal work
Browse files Browse the repository at this point in the history
Adds checking if user is still in range, adds in use state for other users, more work on 004 sequence terminals, other small fixes.
  • Loading branch information
silencer-pl committed Feb 9, 2024
1 parent d4bb0aa commit 3039c27
Show file tree
Hide file tree
Showing 6 changed files with 300 additions and 97 deletions.
8 changes: 4 additions & 4 deletions code/game/objects/serial_numbers.dm
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

//Going to take this chance to sneak in emoting and speaking procs :P

/obj/item/proc/speakas(str, delay)
/obj/item/proc/speakas(str, delay) //Talk as item. Delay in BYOND ticks (about 1/10 of a second per tick) If not provided, delay calculated automatically depending in message length.
if (!str) return
var/list/heard = get_mobs_in_view(GLOB.world_view_size, src)
src.langchat_speech(str, heard, GLOB.all_languages, skip_language_check = TRUE)
Expand All @@ -28,7 +28,7 @@
return


/obj/item/proc/emoteas(str, delay)
/obj/item/proc/emoteas(str, delay) //Emote as item. Delay in BYOND ticks (about 1/10 of a second per tick) If not provided, delay calculated automatically depending in message length.
if (!str) return
var/list/heard = get_mobs_in_view(GLOB.world_view_size, src)
src.langchat_speech(str, heard, GLOB.all_languages, skip_language_check = TRUE, animation_style = LANGCHAT_FAST_POP, additional_styles = list("langchat_small", "emote"))
Expand Down Expand Up @@ -57,7 +57,7 @@

//As above

/obj/structure/proc/talkas(str, delay)
/obj/structure/proc/talkas(str, delay) //Talk as structure. Delay in BYOND ticks (about 1/10 of a second per tick) If not provided, delay calculated automatically depending in message length.
if (!str) return
var/list/heard = get_mobs_in_view(GLOB.world_view_size, src)
src.langchat_speech(str, heard, GLOB.all_languages, skip_language_check = TRUE)
Expand All @@ -71,7 +71,7 @@
sleep(talkdelay)
return

/obj/structure/proc/emoteas(str, delay)
/obj/structure/proc/emoteas(str, delay) //Emote as structure. Delay in BYOND ticks (about 1/10 of a second per tick) If not provided, delay calculated automatically depending in message length.
if (!str) return
var/list/heard = get_mobs_in_view(GLOB.world_view_size, src)
src.langchat_speech(str, heard, GLOB.all_languages, skip_language_check = TRUE, animation_style = LANGCHAT_FAST_POP, additional_styles = list("langchat_small", "emote"))
Expand Down
16 changes: 8 additions & 8 deletions code/game/objects/structures/sectorpatrol/endpoint/001.dm
Original file line number Diff line number Diff line change
Expand Up @@ -177,12 +177,12 @@
to_chat(usr, narrate_body("The display on the terminal flickers for a moment, then starts printing:"))
terminal_speak("Maintenance mode instructions received:")
terminal_speak("SHUTTLE L-533 FRONT THRUSTER VECTOR PATTERNS")
terminal_speak("20594F55-20415245")
terminal_speak("46494E41-4C4C5920")
terminal_speak("48455245-20202020")
terminal_speak("A88629FA-CC6743A9")
terminal_speak("1A0310FF-00F813FB")
terminal_speak("C4BF53D4-B5A8A6C1")
terminal_speak("55577C4C-595524AA")
terminal_speak("4C68B88F-BA4A4DA2")
terminal_speak("851D1C5F-C06FEFD5")
terminal_speak("6EA133F1-54455253")
terminal_speak("FFC6D480-FEA21B58")
terminal_speak("496E2061-7A757265")
terminal_speak("50797468-69612073")
terminal_speak("6C656570-7320616E")
terminal_speak("64206472-65616D73")
terminal_speak("B5AC9EB0-F47A4ABE")
return
Loading

0 comments on commit 3039c27

Please sign in to comment.