abductor stuff

This commit is contained in:
Fox McCloud
2018-07-18 19:51:22 -04:00
parent 7440dad57e
commit c6bb2ecd4d
16 changed files with 334 additions and 365 deletions
+5 -3
View File
@@ -507,8 +507,10 @@
..(speaker,message,speaker.real_name)
/datum/language/abductor/check_special_condition(mob/living/carbon/human/other, mob/living/carbon/human/speaker)
if(other.mind && other.mind.abductor)
if(other.mind.abductor.team == speaker.mind.abductor.team)
if(isabductor(other) && isabductor(speaker))
var/datum/species/abductor/A = speaker.dna.species
var/datum/species/abductor/A2 = other.dna.species
if(A.team == A2.team)
return TRUE
return FALSE
@@ -553,7 +555,7 @@
if(!message)
return
log_say("(ROBOT) [message]", speaker)
var/message_start = "<i><span class='game say'>[name], <span class='name'>[speaker.name]</span>"
var/message_body = "<span class='message'>[speaker.say_quote(message)],</i><span class='robot'>\"[message]\"</span></span></span>"
@@ -27,14 +27,14 @@
female_scream_sound = 'sound/goonstation/voice/male_scream.ogg'
female_cough_sounds = list('sound/effects/mob_effects/m_cougha.ogg','sound/effects/mob_effects/m_coughb.ogg', 'sound/effects/mob_effects/m_coughc.ogg')
female_sneeze_sound = 'sound/effects/mob_effects/sneeze.ogg' //Abductors always scream like guys
var/team = 1
var/scientist = FALSE // vars to not pollute spieces list with castes
/datum/species/abductor/can_understand(mob/other) //Abductors can understand everyone, but they can only speak over their mindlink to another team-member
return 1
return TRUE
/datum/species/abductor/handle_post_spawn(mob/living/carbon/human/H)
H.gender = NEUTER
if(H.mind)
H.mind.abductor = new /datum/abductor
H.languages.Cut() //Under no condition should you be able to speak any language
H.add_language("Abductor Mindlink") //other than over the abductor's own mindlink
return ..()
return ..()