Skip to content

Commit

Permalink
пендосия апдейт
Browse files Browse the repository at this point in the history
  • Loading branch information
Pelmenik123 committed Jan 8, 2025
1 parent 9b42ae5 commit ae87b01
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 15 deletions.
1 change: 0 additions & 1 deletion code/__DEFINES/dcs/signals.dm
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@
//signal for mass roundstart store voice (very english)
#define COMSIG_SPECIAL_MASS_STORE_VOICE "store_voice"

#define COMSIG_JUST_LIST_ADD_VOICE "list_add_voice"
//signal for human store ebalo
//#define COMSIG_STORE_FACE "store_face"

Expand Down
4 changes: 1 addition & 3 deletions code/datums/datacore.dm
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ GLOBAL_VAR_INIT(record_id_num, 1001)

var/id = num2hex(GLOB.record_id_num++, 6)
H.adv_voice.RegSignals()
H.UpdateVoice() //На всякий
H.UpdateVoice()
var/prom_voice = H.adv_voice.voice_name

var/datum/job/prom_job = SSjobs.GetJob(H.job)
Expand All @@ -160,8 +160,6 @@ GLOBAL_VAR_INIT(record_id_num, 1001)
else
GLOB.capitalist_manifest[dep_flag] = list((prom_voice) = (H.real_name))

//SEND_GLOBAL_SIGNAL(COMSIG_SPECIAL_MASS_STORE_VOICE, GLOB.capitalist_manifest)
//При создании рекордсов еще берется и голос, боже помилуй чтобы это ничего не сломало
//General Record
var/datum/data/record/G = new()
G.fields["id"] = id
Expand Down
18 changes: 7 additions & 11 deletions code/datums/voice.dm
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#define FACE_MOD_SWITCH TRUE
//Новая система голоса
/datum/voice_model
var/mob/host = null //Носитель этой хуеты
var/mob/host = null
var/tts_seed_string = "Arthas"
var/voice_gender = MALE
var/voice_name = "Неизвестный"
Expand All @@ -23,13 +23,10 @@
/datum/voice_model/proc/RegSignals()
RegisterSignal(SSdcs, COMSIG_SPECIAL_MASS_STORE_VOICE, PROC_REF(SpecialMassAddVoice))

//Специфическая функция которая добавляет что нужно короче
/datum/voice_model/proc/SpecialMassAddVoice(suka, list/list_voice)
SIGNAL_HANDLER
var/datum/job/prom_job = SSjobs.GetJob(host.job) //Нужно чтобы небыло предупеждений
var/datum/job/prom_job = SSjobs.GetJob(host.job) //WARNING. Fuking byond
var/list/prom_data = list_voice?[prom_job.department]
if(list_voice?["AbsolutePomny"])
famous_voices |= list_voice["AbsolutePomny"]

if(prom_data)
famous_voices |= prom_data
Expand Down Expand Up @@ -59,14 +56,13 @@
real_voice_name = voice_to_copy.real_voice_name
famous_voices = voice_to_copy.famous_voices
*/
//было две бутылки, словарь или два прока. Я сел на вторую

/datum/voice_model/proc/GetManifestKnowVoice()
for(var/datum/data/record/t in GLOB.data_core.general)
if(t)
if(t.fields["voice"] == voice_name)
return t.fields["name"]
return "IDENTIFICATION ERROR"
//Технически name это представление твоего ебала

/datum/voice_model/proc/GetManifestKnowFace(mob/face_target)
for(var/datum/data/record/t in GLOB.data_core.general)
Expand All @@ -75,12 +71,11 @@
return t.fields["name"]
return "IDENTIFICATION FACE ERROR"


/datum/voice_model/proc/TryStore(mob/target)
if(src == target.adv_voice)
return TRUE
. = FALSE
if(!ishuman(target)) //Зачем мне знать как зовут мышей :badguy:
if(!ishuman(target))
return target.name
var/mob/living/carbon/human/target_H = target
var/obj/item/card/id/prov_wear_id = null
Expand All @@ -104,10 +99,11 @@

//For examie
// FUCKING BYOND
/* NOT USED
/datum/voice_model/proc/TryRecollectFace(mob/target)
if(src == target.adv_voice)
return target.name
if(!ishuman(target)) //:Roflcat: Чтобы имена мышей знать сразу
if(!ishuman(target)) //:Roflcat:
return target.name
var/mob/living/carbon/human/target_H = target
Expand All @@ -122,7 +118,7 @@
else
. = get_gender_unknown_name(target_H.gender)
return

*/
//For hear
/datum/voice_model/proc/TryRecollectVoice(mob/target)
if(!ishuman(host)) //Мышки мышки знают все....
Expand Down

0 comments on commit ae87b01

Please sign in to comment.