OOC Notifications

- - -
Both joining and posting to OOC now have accompanying audio.
Additionally, joining presents everyone with a message that you've connected. An example will be provided with the PR.
This commit is contained in:
ProbablyCarl
2021-10-21 20:35:58 -04:00
parent cd54a8a917
commit da0d696e42
4 changed files with 15 additions and 0 deletions
+11
View File
@@ -274,6 +274,17 @@ GLOBAL_LIST_EMPTY(external_rsc_urls)
message_admins("<font color='red'><B>Notice: </B><font color='blue'>[key_name_admin(src)] has the same [matches] as [key_name_admin(C)] (no longer logged in). </font>")
log_access("Notice: [key_name(src)] has the same [matches] as [key_name(C)] (no longer logged in).")
for(var/client/C in GLOB.clients)
if( !C )
continue
if(C.prefs)//supposedly fixes a runtime with the following lines. Ripped from OldPollo. I miss you, Lads. :(
if(C.prefs.toggles & CHAT_OOC)
to_chat(world, "<span class='notice'><b>[src.key] has connected to the server.</b></span>")
if(C.prefs.toggles)
C << sound('hyperstation/sound/effects/oocjoin.ogg')
if(GLOB.player_details[ckey])
player_details = GLOB.player_details[ckey]
player_details.byond_version = full_version
+4
View File
@@ -66,6 +66,10 @@ GLOBAL_VAR_INIT(normal_ooc_colour, "#002eb8")
//The linkify span classes and linkify=TRUE below make ooc text get clickable chat href links if you pass in something resembling a url
for(var/client/C in GLOB.clients)
if(C.prefs.chat_toggles & CHAT_OOC)
if(C.prefs.toggles)
C << sound('hyperstation/sound/effects/oocalert.ogg')
if(holder)
if(!holder.fakekey || C.holder)
if(check_rights_for(src, R_ADMIN))