Radio Jammers (#502)

Adds radio jammers for antags and improvised version as well.
This commit is contained in:
skull132
2016-07-09 03:14:04 +03:00
committed by GitHub
parent 3a18172821
commit 30b6aff6cf
11 changed files with 193 additions and 14 deletions
+8 -1
View File
@@ -91,8 +91,13 @@
speaker_mask = speaker.name
var/msg = "<i><span class='game say'>[name], <span class='name'>[speaker_mask]</span> [format_message(message, get_spoken_verb(message))]</span></i>"
if (within_jamming_range(speaker))
// The user thinks that the message got through.
speaker << msg
return
for(var/mob/player in player_list)
if(istype(player,/mob/dead) || ((src in player.languages) || check_special_condition(player)))
if(istype(player,/mob/dead) || ((src in player.languages && !within_jamming_range(player)) || check_special_condition(player)))
player << msg
/datum/language/bug/check_special_condition(var/mob/other)
@@ -102,6 +107,8 @@
return 0
if(istype(M, /mob/new_player))
return 0
if(within_jamming_range(other))
return 0
if(locate(/obj/item/organ/vaurca/neuralsocket) in M.internal_organs)
return 1