* Added a two config options which allows you to disable the AI and Cyborgs from being able to vocally speak, except for AIs using the holopad.

* Added a new proc called IsVocal(). Only used by the new system so far but it will allow you to use it to stop mobs from being vocal.
This commit is contained in:
Giacomand
2013-04-08 21:53:41 +01:00
parent de4a906c25
commit f49bef35ba
8 changed files with 41 additions and 2 deletions

View File

@@ -105,6 +105,9 @@
var/gateway_delay = 18000 //How long the gateway takes before it activates. Default is half an hour.
var/ghost_interaction = 0
var/silent_ai = 0
var/silent_borg = 0
/datum/configuration/New()
var/list/L = typesof(/datum/game_mode) - /datum/game_mode
@@ -333,6 +336,10 @@
config.force_random_names = 1
if("allow_ai")
config.allow_ai = 1
if("silent_ai")
config.silent_ai = 1
if("silent_borg")
config.silent_borg = 1
else
diary << "Unknown setting in configuration: '[name]'"

View File

@@ -200,6 +200,8 @@ var/GLOBAL_RADIO_TYPE = 1 // radio type to use
if(isWireCut(WIRE_TRANSMIT)) // The device has to have all its wires and shit intact
return
if(!M.IsVocal())
return
if(GLOBAL_RADIO_TYPE == 1) // NEW RADIO SYSTEMS: By Doohl

View File

@@ -1,5 +1,9 @@
//Lallander was here
/mob/living/carbon/human/whisper(message as text)
if(!IsVocal())
return
if(say_disabled) //This is here to try to identify lag problems
usr << "\red Speech is currently admin-disabled."
return

View File

@@ -64,6 +64,9 @@ var/list/department_radio_keys = list(
if(!istype(dongle)) return
if(dongle.translate_binary) return 1
/mob/living/proc/IsVocal()
return 1
/mob/living/proc/hivecheck()
if (isalien(src)) return 1
if (!ishuman(src)) return
@@ -262,6 +265,9 @@ var/list/department_radio_keys = list(
italics = 1
/////SPECIAL HEADSETS END
if(!IsVocal())
return
var/list/listening
listening = get_mobs_in_view(message_range, src)

View File

@@ -27,3 +27,6 @@
return "declares, \"[text]\"";
return "states, \"[text]\"";
/mob/living/silicon/ai/IsVocal()
return !config.silent_ai

View File

@@ -22,3 +22,6 @@
return "declares, \"[text]\"";
return "states, \"[text]\"";
/mob/living/silicon/robot/IsVocal()
return !config.silent_borg

View File

@@ -136,4 +136,9 @@ JOBS_HAVE_MINIMAL_ACCESS
### GHOST INTERACTION ###
## Uncomment to let ghosts spin chairs. You may be wondering why this is a config option. Don't ask.
#GHOST_INTERACTION
#GHOST_INTERACTION
### VOCAL SILICONS ###
## Comment to allow the silicon type from being able to talk via regular means.
SILENT_AI
SILENT_BORG

View File

@@ -49,7 +49,16 @@ should be listed in the changelog upon commit tho. Thanks. -->
<!-- You can simply add changelogs using AddToChangelog.exe -->
<!-- DO NOT REMOVE OR MOVE THIS COMMENT! THIS MUST BE THE LAST NON-EMPTY LINE BEFORE THE LOGS #ADDTOCHANGELOGMARKER# -->
<!-- DO NOT REMOVE OR MOVE THIS COMMENT! THIS MUST BE THE LAST NON-EMPTY LINE BEFORE THE LOGS #ADDTOCHANGELOGMARKER# -->
<div class='commit sansserif'>
<h2 class='date'>8 April 2013</h2>
<h3 class='author'>Giacom updated:</h3>
<ul class='changes bgimages16'>
<li class='rscadd'>If the config option is enabled, Cyborgs and AIs will not be able to talk vocally (except for AIs using the holopad)</li>
</ul>
</div>
<div class="commit sansserif">