-
Notifications
You must be signed in to change notification settings - Fork 441
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* tgsay * some const * paradisedme * more constants! * budle * talk dmi * FINAL? * clean
- Loading branch information
Showing
69 changed files
with
1,784 additions
and
288 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// Used to direct channels to speak into. | ||
#define SAY_CHANNEL "Say" | ||
#define RADIO_CHANNEL "Radio" | ||
#define WHISPER_CHANNEL "Whisper" | ||
#define ME_CHANNEL "Me" | ||
#define OOC_CHANNEL "OOC" | ||
#define LOOC_CHANNEL "LOOC" | ||
#define MENTOR_CHANNEL "Mentor" | ||
#define ADMIN_CHANNEL "Admin" | ||
#define DSAY_CHANNEL "Dsay" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
/datum/keybinding/client/communication | ||
category = KB_CATEGORY_COMMUNICATION | ||
/// Used to store special rights if required by a keybind, such as R_ADMIN | ||
var/required_rights | ||
/// Used to map muted categories to channels | ||
var/mute_category = MUTE_OOC | ||
|
||
/datum/keybinding/client/communication/down(client/C) | ||
. = ..() | ||
if(required_rights && !check_rights(required_rights, FALSE, C.mob)) | ||
return | ||
|
||
if(mute_category && check_mute(C.ckey, mute_category)) | ||
to_chat(C, "<span class='danger'>You cannot use [name] (muted).</span>", MESSAGE_TYPE_WARNING) | ||
return | ||
|
||
winset(C, null, "command=[C.tgui_say_create_open_command(name)]") | ||
|
||
/datum/keybinding/client/communication/ooc | ||
name = OOC_CHANNEL | ||
keys = list("O") | ||
|
||
/datum/keybinding/client/communication/ooc/down(client/C) | ||
if(check_rights(R_ADMIN, FALSE, C.mob)) // You may pass | ||
return ..() | ||
|
||
if(!CONFIG_GET(flag/ooc_allowed)) | ||
to_chat(C, "<span class='danger'>OOC is globally muted.</span>", MESSAGE_TYPE_WARNING) | ||
return | ||
|
||
if(!CONFIG_GET(flag/dooc_allowed)) | ||
to_chat(C, "<span class='danger'>OOC for dead mobs has been turned off.</span>", MESSAGE_TYPE_WARNING) | ||
return | ||
|
||
return ..() | ||
|
||
/datum/keybinding/client/communication/looc | ||
name = LOOC_CHANNEL | ||
keys = list("L") | ||
|
||
/datum/keybinding/client/communication/say | ||
name = SAY_CHANNEL | ||
keys = list("T") | ||
mute_category = MUTE_IC | ||
|
||
/datum/keybinding/client/communication/me | ||
name = ME_CHANNEL | ||
keys = list("M") | ||
mute_category = MUTE_EMOTE | ||
|
||
/datum/keybinding/client/communication/whisper | ||
name = WHISPER_CHANNEL | ||
keys = list("U") | ||
mute_category = MUTE_IC | ||
|
||
/datum/keybinding/client/communication/radio | ||
name = RADIO_CHANNEL | ||
keys = list("Y") | ||
mute_category = MUTE_IC | ||
|
||
/datum/keybinding/client/communication/msay | ||
name = MENTOR_CHANNEL | ||
keys = list("F4") | ||
required_rights = R_MENTOR | R_ADMIN | ||
|
||
/datum/keybinding/client/communication/asay | ||
name = ADMIN_CHANNEL | ||
keys = list("F5") | ||
required_rights = R_ADMIN | ||
|
||
/datum/keybinding/client/communication/dsay | ||
name = DSAY_CHANNEL | ||
keys = list("F10") | ||
required_rights = R_ADMIN |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.