Changed the vote sound as discussed by admins, and made it so that -all- votes (Not just crew transfer) automatically disable OOC.

Signed-off-by: Jim Apples <cheeckan@gmail.com>
This commit is contained in:
Jim Apples
2013-06-21 14:40:36 +01:00
parent 539b2f2219
commit ec43741f2f
3 changed files with 26 additions and 3 deletions

View File

@@ -217,11 +217,11 @@ datum/controller/vote
world << "<font color='purple'><b>[text]</b>\nType vote to place your votes.\nYou have [config.vote_period/10] seconds to vote.</font>" world << "<font color='purple'><b>[text]</b>\nType vote to place your votes.\nYou have [config.vote_period/10] seconds to vote.</font>"
switch(vote_type) switch(vote_type)
if("crew_transfer") if("crew_transfer")
world << sound('sound/voice/Serithi/Shuttlehere.ogg') world << sound('sound/ambience/alarm4.ogg')
if("gamemode") if("gamemode")
world << sound('sound/voice/Serithi/pretenddemoc.ogg') world << sound('sound/ambience/alarm4.ogg')
if("custom") if("custom")
world << sound('sound/voice/Serithi/weneedvote.ogg') world << sound('sound/ambience/alarm4.ogg')
if(mode == "gamemode" && going) if(mode == "gamemode" && going)
going = 0 going = 0
world << "<font color='red'><b>Round start has been delayed.</b></font>" world << "<font color='red'><b>Round start has been delayed.</b></font>"
@@ -231,6 +231,20 @@ datum/controller/vote
world << "<b>The OOC channel has been automatically disabled due to the crew transfer vote.</b>" world << "<b>The OOC channel has been automatically disabled due to the crew transfer vote.</b>"
log_admin("OOC was toggled automatically due to crew_transfer vote.") log_admin("OOC was toggled automatically due to crew_transfer vote.")
message_admins("OOC has been toggled off automatically.") message_admins("OOC has been toggled off automatically.")
if(mode == "gamemode" && ooc_allowed)
auto_muted = 1
ooc_allowed = !( ooc_allowed )
world << "<b>The OOC channel has been automatically disabled due to the gamemode vote.</b>"
log_admin("OOC was toggled automatically due to gamemode vote.")
message_admins("OOC has been toggled off automatically.")
if(mode == "custom" && ooc_allowed)
auto_muted = 1
ooc_allowed = !( ooc_allowed )
world << "<b>The OOC channel has been automatically disabled due to the custom vote.</b>"
log_admin("OOC was toggled automatically due to custom vote.")
message_admins("OOC has been toggled off automatically.")
time_remaining = round(config.vote_period/10) time_remaining = round(config.vote_period/10)

View File

@@ -34,9 +34,11 @@
attack(mob/living/carbon/human/M as mob, mob/user as mob) attack(mob/living/carbon/human/M as mob, mob/user as mob)
if (!ishuman(M)) if (!ishuman(M))
user << "\red [M] is not human and cannot have the fingerprints." user << "\red [M] is not human and cannot have the fingerprints."
flick("forensic0",src)
return 0 return 0
if (( !( istype(M.dna, /datum/dna) ) || M.gloves) ) if (( !( istype(M.dna, /datum/dna) ) || M.gloves) )
user << "\blue No fingerprints found on [M]" user << "\blue No fingerprints found on [M]"
flick("forensic0",src)
return 0 return 0
else else
if (src.amount < 1) if (src.amount < 1)
@@ -71,6 +73,7 @@
return return
if(istype(A,/obj/item/weapon/f_card)) if(istype(A,/obj/item/weapon/f_card))
user << "The scanner displays on the screen: \"ERROR 43: Object on Excluded Object List.\"" user << "The scanner displays on the screen: \"ERROR 43: Object on Excluded Object List.\""
flick("forensic0",src)
return return
add_fingerprint(user) add_fingerprint(user)
@@ -81,6 +84,7 @@
if(!isnull(A.blood_DNA)) if(!isnull(A.blood_DNA))
for(var/blood in A.blood_DNA) for(var/blood in A.blood_DNA)
user << "\blue Blood type: [A.blood_DNA[blood]]\nDNA: [blood]" user << "\blue Blood type: [A.blood_DNA[blood]]\nDNA: [blood]"
flick("forensic2",src)
return return
//General //General
@@ -88,10 +92,12 @@
user.visible_message("\The [user] scans \the [A] with \a [src], the air around [user.gender == MALE ? "him" : "her"] humming[prob(70) ? " gently." : "."]" ,\ user.visible_message("\The [user] scans \the [A] with \a [src], the air around [user.gender == MALE ? "him" : "her"] humming[prob(70) ? " gently." : "."]" ,\
"\blue Unable to locate any fingerprints, materials, fibers, or blood on [A]!",\ "\blue Unable to locate any fingerprints, materials, fibers, or blood on [A]!",\
"You hear a faint hum of electrical equipment.") "You hear a faint hum of electrical equipment.")
flick("forensic0",src)
return 0 return 0
if(add_data(A)) if(add_data(A))
user << "\blue Object already in internal memory. Consolidating data..." user << "\blue Object already in internal memory. Consolidating data..."
flick("forensic2",src)
return return
@@ -116,6 +122,7 @@
//FIBERS //FIBERS
if(A.suit_fibers) if(A.suit_fibers)
user << "\blue Fibers/Materials Data Stored: Scan with Hi-Res Forensic Scanner to retrieve." user << "\blue Fibers/Materials Data Stored: Scan with Hi-Res Forensic Scanner to retrieve."
flick("forensic2",src)
//Blood //Blood
if (A.blood_DNA) if (A.blood_DNA)
@@ -127,11 +134,13 @@
user.visible_message("\The [user] scans \the [A] with \a [src], the air around [user.gender == MALE ? "him" : "her"] humming[prob(70) ? " gently." : "."]" ,\ user.visible_message("\The [user] scans \the [A] with \a [src], the air around [user.gender == MALE ? "him" : "her"] humming[prob(70) ? " gently." : "."]" ,\
"You finish scanning \the [A].",\ "You finish scanning \the [A].",\
"You hear a faint hum of electrical equipment.") "You hear a faint hum of electrical equipment.")
flick("forensic2",src)
return 0 return 0
else else
user.visible_message("\The [user] scans \the [A] with \a [src], the air around [user.gender == MALE ? "him" : "her"] humming[prob(70) ? " gently." : "."]\n[user.gender == MALE ? "He" : "She"] seems to perk up slightly at the readout." ,\ user.visible_message("\The [user] scans \the [A] with \a [src], the air around [user.gender == MALE ? "him" : "her"] humming[prob(70) ? " gently." : "."]\n[user.gender == MALE ? "He" : "She"] seems to perk up slightly at the readout." ,\
"The results of the scan pique your interest.",\ "The results of the scan pique your interest.",\
"You hear a faint hum of electrical equipment, and someone making a thoughtful noise.") "You hear a faint hum of electrical equipment, and someone making a thoughtful noise.")
flick("forensic2",src)
return 0 return 0
return return

BIN
sound/ambience/alarm4.ogg Normal file

Binary file not shown.