mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2025-12-31 12:41:46 +00:00
Add in feedback message Update client defines.dm keep it as bool I guess Update karma.dm Make it persistent Update karma.dm Update karma.dm Update preferences.dm make it compile, include kyet's suggestions fix some things with the help of dtx
236 lines
10 KiB
Plaintext
236 lines
10 KiB
Plaintext
//toggles
|
|
/client/verb/toggle_ghost_ears()
|
|
set name = "Show/Hide GhostEars"
|
|
set category = "Preferences"
|
|
set desc = ".Toggle Between seeing all mob speech, and only speech of nearby mobs"
|
|
prefs.toggles ^= CHAT_GHOSTEARS
|
|
to_chat(src, "As a ghost, you will now [(prefs.toggles & CHAT_GHOSTEARS) ? "see all speech in the world" : "only see speech from nearby mobs"].")
|
|
prefs.save_preferences(src)
|
|
feedback_add_details("admin_verb","TGE") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
|
|
|
/client/verb/toggle_ghost_sight()
|
|
set name = "Show/Hide GhostSight"
|
|
set category = "Preferences"
|
|
set desc = ".Toggle Between seeing all mob emotes, and only emotes of nearby mobs"
|
|
prefs.toggles ^= CHAT_GHOSTSIGHT
|
|
to_chat(src, "As a ghost, you will now [(prefs.toggles & CHAT_GHOSTSIGHT) ? "see all emotes in the world" : "only see emotes from nearby mobs"].")
|
|
prefs.save_preferences(src)
|
|
feedback_add_details("admin_verb","TGS") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
|
|
|
/client/verb/toggle_ghost_radio()
|
|
set name = "Enable/Disable GhostRadio"
|
|
set category = "Preferences"
|
|
set desc = ".Toggle between hearing all radio chatter, or only from nearby speakers"
|
|
prefs.toggles ^= CHAT_GHOSTRADIO
|
|
to_chat(src, "As a ghost, you will now [(prefs.toggles & CHAT_GHOSTRADIO) ? "hear all radio chat in the world" : "only hear from nearby speakers"].")
|
|
prefs.save_preferences(src)
|
|
feedback_add_details("admin_verb","TGR")
|
|
|
|
/client/proc/toggle_hear_radio()
|
|
set name = "Show/Hide RadioChatter"
|
|
set category = "Preferences"
|
|
set desc = "Toggle seeing radiochatter from radios and speakers"
|
|
if(!holder) return
|
|
prefs.toggles ^= CHAT_RADIO
|
|
prefs.save_preferences(src)
|
|
to_chat(usr, "You will [(prefs.toggles & CHAT_RADIO) ? "now" : "no longer"] see radio chatter from radios or speakers")
|
|
feedback_add_details("admin_verb","THR") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
|
|
|
/client/proc/toggleadminhelpsound()
|
|
set name = "Hear/Silence Admin Bwoinks"
|
|
set category = "Preferences"
|
|
set desc = "Toggle hearing a notification when admin PMs are recieved"
|
|
if(!holder) return
|
|
prefs.sound ^= SOUND_ADMINHELP
|
|
prefs.save_preferences(src)
|
|
to_chat(usr, "You will [(prefs.sound & SOUND_ADMINHELP) ? "now" : "no longer"] hear a sound when adminhelps arrive.")
|
|
feedback_add_details("admin_verb","AHS") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
|
|
|
/client/proc/togglementorhelpsound()
|
|
set name = "Hear/Silence Mentorhelp Bwoinks"
|
|
set category = "Preferences"
|
|
set desc = "Toggle hearing a notification when mentorhelps are recieved"
|
|
if(!holder)
|
|
return
|
|
prefs.sound ^= SOUND_MENTORHELP
|
|
prefs.save_preferences(src)
|
|
to_chat(usr, "You will [(prefs.sound & SOUND_MENTORHELP) ? "now" : "no longer"] hear a sound when mentorhelps arrive.")
|
|
feedback_add_details("admin_verb","MHS") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
|
|
|
/client/verb/deadchat() // Deadchat toggle is usable by anyone.
|
|
set name = "Show/Hide Deadchat"
|
|
set category = "Preferences"
|
|
set desc ="Toggles seeing deadchat"
|
|
prefs.toggles ^= CHAT_DEAD
|
|
prefs.save_preferences(src)
|
|
|
|
if(src.holder)
|
|
to_chat(src, "You will [(prefs.toggles & CHAT_DEAD) ? "now" : "no longer"] see deadchat.")
|
|
else
|
|
to_chat(src, "As a ghost, you will [(prefs.toggles & CHAT_DEAD) ? "now" : "no longer"] see deadchat.")
|
|
|
|
feedback_add_details("admin_verb","TDV") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
|
|
|
/client/proc/toggleprayers()
|
|
set name = "Show/Hide Prayers"
|
|
set category = "Preferences"
|
|
set desc = "Toggles seeing prayers"
|
|
prefs.toggles ^= CHAT_PRAYER
|
|
prefs.save_preferences(src)
|
|
to_chat(src, "You will [(prefs.toggles & CHAT_PRAYER) ? "now" : "no longer"] see prayerchat.")
|
|
feedback_add_details("admin_verb","TP") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
|
|
|
/client/verb/togglescoreboard()
|
|
set name = "Hide/Display End Round Scoreboard"
|
|
set category = "Preferences"
|
|
set desc = "Toggles displaying end of round scoreboard"
|
|
prefs.toggles ^= DISABLE_SCOREBOARD
|
|
prefs.save_preferences(src)
|
|
to_chat(src, "You will [(prefs.toggles & DISABLE_SCOREBOARD) ? "no longer" : "now"] see the end of round scoreboard.")
|
|
feedback_add_details("admin_verb","TScoreboard") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
|
|
|
/client/verb/togglekarmareminder()
|
|
set name = "Hide/Display End Round Karma Reminder"
|
|
set category = "Preferences"
|
|
set desc = "Toggles displaying end of round karma reminder"
|
|
prefs.toggles ^= DISABLE_KARMA_REMINDER
|
|
prefs.save_preferences(src)
|
|
to_chat(src, "You will [(prefs.toggles & DISABLE_KARMA_REMINDER) ? "no longer" : "now"] see the end of round karma reminder.")
|
|
feedback_add_details("admin_verb","TKarmabugger") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
|
|
|
/client/verb/toggletitlemusic()
|
|
set name = "Hear/Silence LobbyMusic"
|
|
set category = "Preferences"
|
|
set desc = "Toggles hearing the GameLobby music"
|
|
prefs.sound ^= SOUND_LOBBY
|
|
prefs.save_preferences(src)
|
|
if(prefs.sound & SOUND_LOBBY)
|
|
to_chat(src, "You will now hear music in the game lobby.")
|
|
if(isnewplayer(usr))
|
|
usr.client.playtitlemusic()
|
|
else
|
|
to_chat(src, "You will no longer hear music in the game lobby.")
|
|
usr.stop_sound_channel(CHANNEL_LOBBYMUSIC)
|
|
|
|
feedback_add_details("admin_verb","TLobby") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
|
|
|
/client/verb/togglemidis()
|
|
set name = "Hear/Silence Midis"
|
|
set category = "Preferences"
|
|
set desc = "Toggles hearing sounds uploaded by admins"
|
|
prefs.sound ^= SOUND_MIDI
|
|
prefs.save_preferences(src)
|
|
if(prefs.sound & SOUND_MIDI)
|
|
to_chat(src, "You will now hear any sounds uploaded by admins.")
|
|
else
|
|
usr.stop_sound_channel(CHANNEL_ADMIN)
|
|
|
|
to_chat(src, "You will no longer hear sounds uploaded by admins; any currently playing midis have been disabled.")
|
|
feedback_add_details("admin_verb","TMidi") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
|
|
|
/client/verb/listen_ooc()
|
|
set name = "Show/Hide OOC"
|
|
set category = "Preferences"
|
|
set desc = "Toggles seeing OutOfCharacter chat"
|
|
prefs.toggles ^= CHAT_OOC
|
|
prefs.save_preferences(src)
|
|
to_chat(src, "You will [(prefs.toggles & CHAT_OOC) ? "now" : "no longer"] see messages on the OOC channel.")
|
|
feedback_add_details("admin_verb","TOOC") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
|
|
|
|
|
/client/verb/listen_looc()
|
|
set name = "Show/Hide LOOC"
|
|
set category = "Preferences"
|
|
set desc = "Toggles seeing Local OutOfCharacter chat"
|
|
prefs.toggles ^= CHAT_LOOC
|
|
prefs.save_preferences(src)
|
|
to_chat(src, "You will [(prefs.toggles & CHAT_LOOC) ? "now" : "no longer"] see messages on the LOOC channel.")
|
|
feedback_add_details("admin_verb","TLOOC") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
|
|
|
|
|
/client/verb/Toggle_Soundscape() //All new ambience should be added here so it works with this verb until someone better at things comes up with a fix that isn't awful
|
|
set name = "Hear/Silence Ambience"
|
|
set category = "Preferences"
|
|
set desc = "Toggles hearing ambient sound effects"
|
|
prefs.sound ^= SOUND_AMBIENCE
|
|
prefs.save_preferences(src)
|
|
if(prefs.sound & SOUND_AMBIENCE)
|
|
to_chat(src, "You will now hear ambient sounds.")
|
|
else
|
|
to_chat(src, "You will no longer hear ambient sounds.")
|
|
usr.stop_sound_channel(CHANNEL_AMBIENCE)
|
|
feedback_add_details("admin_verb","TAmbi") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
|
|
|
/client/verb/Toggle_Buzz() //No more headaches because headphones bump up shipambience.ogg to insanity levels.
|
|
set name = "Hear/Silence White Noise"
|
|
set category = "Preferences"
|
|
set desc = "Toggles hearing ambient white noise"
|
|
prefs.sound ^= SOUND_BUZZ
|
|
prefs.save_preferences(src)
|
|
if(prefs.sound & SOUND_BUZZ)
|
|
to_chat(src, "You will now hear ambient white noise.")
|
|
else
|
|
to_chat(src, "You will no longer hear ambient white noise.")
|
|
usr.stop_sound_channel(CHANNEL_BUZZ)
|
|
feedback_add_details("admin_verb","TBuzz") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
|
|
|
|
|
/client/verb/Toggle_Heartbeat() //to toggle off heartbeat sounds, in case they get too annoying
|
|
set name = "Hear/Silence Heartbeat"
|
|
set category = "Preferences"
|
|
set desc = "Toggles hearing heart beating sound effects"
|
|
prefs.sound ^= SOUND_HEARTBEAT
|
|
prefs.save_preferences(src)
|
|
if(prefs.sound & SOUND_HEARTBEAT)
|
|
to_chat(src, "You will now hear heartbeat sounds.")
|
|
else
|
|
to_chat(src, "You will no longer hear heartbeat sounds.")
|
|
usr.stop_sound_channel(CHANNEL_HEARTBEAT)
|
|
feedback_add_details("admin_verb","Thb") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
|
|
|
// This needs a toggle because you people are awful and spammed terrible music
|
|
/client/verb/toggle_instruments()
|
|
set name = "Hear/Silence Instruments"
|
|
set category = "Preferences"
|
|
set desc = "Toggles hearing musical instruments like the violin and piano"
|
|
prefs.sound ^= SOUND_INSTRUMENTS
|
|
prefs.save_preferences(src)
|
|
if(prefs.sound & SOUND_INSTRUMENTS)
|
|
to_chat(src, "You will now hear people playing musical instruments.")
|
|
else
|
|
to_chat(src, "You will no longer hear musical instruments.")
|
|
feedback_add_details("admin_verb","TInstru") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
|
|
|
/client/verb/setup_character()
|
|
set name = "Game Preferences"
|
|
set category = "Preferences"
|
|
set desc = "Allows you to access the Setup Character screen. Changes to your character won't take effect until next round, but other changes will."
|
|
prefs.current_tab = 1
|
|
prefs.ShowChoices(usr)
|
|
|
|
/client/verb/toggle_darkmode()
|
|
set name = "Toggle Darkmode"
|
|
set category = "Preferences"
|
|
set desc = "Toggles UI style between dark and light"
|
|
prefs.toggles ^= UI_DARKMODE
|
|
prefs.save_preferences(src)
|
|
if(prefs.toggles & UI_DARKMODE)
|
|
activate_darkmode()
|
|
else
|
|
deactivate_darkmode()
|
|
feedback_add_details("admin_verb","TDarkmode") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
|
|
|
/client/verb/toggle_karma()
|
|
set name = "Toggle Karma Gains"
|
|
set category = "Special Verbs"
|
|
set desc = "This button will allow you to stop other people giving you karma."
|
|
if (prefs.toggles & DISABLE_KARMA)
|
|
wants_karma = FALSE
|
|
to_chat(usr, "<span class='notice'>You have disabled karma gains.")
|
|
else
|
|
wants_karma = TRUE
|
|
to_chat(usr, "<span class='notice'>You have enabled karma gains.")
|
|
prefs.toggles ^= DISABLE_KARMA
|
|
prefs.save_preferences(src)
|
|
return
|