Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add: [bounty] Voice update #6326

Closed
wants to merge 32 commits into from
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
02328c7
ладно похуй уже
Pelmenik123 Dec 1, 2024
1c44ae7
микрофикс
Pelmenik123 Dec 8, 2024
a18ef9f
умер от кринжа
Pelmenik123 Dec 8, 2024
e64f2c7
костыльный фикс
Pelmenik123 Dec 8, 2024
6116f77
уу бляя
Pelmenik123 Jan 6, 2025
494e2d7
Merge branch 'master220' into VOICE-UPDATE
Pelmenik123 Jan 6, 2025
c4a3473
буэээ
Pelmenik123 Jan 7, 2025
e8345a3
Merge branch 'VOICE-UPDATE' of https://github.com/Pelmenik123/Pelmen-…
Pelmenik123 Jan 7, 2025
a39ddcd
bugfix
Pelmenik123 Jan 7, 2025
9b42ae5
nanofix
Pelmenik123 Jan 7, 2025
ae87b01
пендосия апдейт
Pelmenik123 Jan 8, 2025
6cd72b2
ух бля, ложка компоненты апдейт
Pelmenik123 Jan 12, 2025
6848e9e
ложка вантуз апдейт
Pelmenik123 Jan 12, 2025
e0969e5
фпмпмфпмф
Pelmenik123 Jan 12, 2025
157f632
нанотрахен
Pelmenik123 Jan 12, 2025
3536689
ДА КАК ВЫ
Pelmenik123 Jan 12, 2025
fa4acca
уэээ
Pelmenik123 Jan 12, 2025
7908280
уэээ сбэу
Pelmenik123 Jan 12, 2025
a357cc0
я хочу пиццу
Pelmenik123 Jan 13, 2025
a5503e5
GET OUT
Pelmenik123 Jan 13, 2025
6f8c836
бобр курва
Pelmenik123 Jan 13, 2025
2aea791
ыфвыфвыф
Pelmenik123 Jan 13, 2025
64516f4
суки
Pelmenik123 Jan 14, 2025
e8082ea
change comment back
Den109G Jan 14, 2025
caf3822
cultist
Den109G Jan 14, 2025
c14ac8a
апдейте форматирование
Pelmenik123 Jan 14, 2025
3a1ee78
adsfa
Pelmenik123 Jan 14, 2025
0d7156b
very nice
Pelmenik123 Jan 14, 2025
74a2fff
Update code/datums/voice.dm
Pelmenik123 Jan 15, 2025
bfa77b1
фмпмфппмфпмф апдейте
Pelmenik123 Jan 15, 2025
6195c0f
я ебал в сраку
Pelmenik123 Jan 15, 2025
4c6f42b
Merge branch 'master220' into VOICE-UPDATE
Pelmenik123 Jan 16, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions code/__DEFINES/job.dm
Original file line number Diff line number Diff line change
Expand Up @@ -149,3 +149,5 @@
#define TAIPAN_HUD_COMMS 7
#define TAIPAN_HUD_RD 8
#define TAIPAN_HUD_CYBORG 9

#define PRIMITIVE_STATION_DEPARTMENTS list("Command", "Medical", "Engineering", "Science", "Security", "Cargo", "Support", "Civilian")
Pelmenik123 marked this conversation as resolved.
Show resolved Hide resolved
2 changes: 1 addition & 1 deletion code/controllers/subsystem/capitalism.dm
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ SUBSYSTEM_DEF(capitalism)
create_station_account()

if(GLOB.department_accounts.len == 0)
for(var/department in GLOB.station_departments)
for(var/department in PRIMITIVE_STATION_DEPARTMENTS)
create_department_account(department)

/datum/controller/subsystem/capitalism/proc/salary_account_init()
Expand Down
2 changes: 1 addition & 1 deletion code/datums/datacore.dm
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ GLOBAL_VAR_INIT(record_id_num, 1001)

var/datum/job/prom_job = SSjobs.GetJob(H.job)

for(var/dep_flag in prom_job.college_department) //:catsmile:
for(var/dep_flag in prom_job.colleagues_department) //:catsmile:
if(!isnull(GLOB.capitalist_manifest?[dep_flag]))
GLOB.capitalist_manifest[dep_flag][prom_voice] = H.real_name
else
Expand Down
4 changes: 4 additions & 0 deletions code/datums/mind.dm
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@

var/assigned_role //assigned role is what job you're assigned to when you join the station.
var/playtime_role //if set, overrides your assigned_role for the purpose of playtime awards. Set by IDcomputer when your ID is changed.
<<<<<<< HEAD

Check failure on line 39 in code/datums/mind.dm

View workflow job for this annotation

GitHub Actions / Run Linters

got '<<', expected one of: ';', '//!', '/*!', '/'
var/special_role //special roles are typically reserved for antags or roles like ETP. If you want to avoid a character being automatically announced by the AI, on arrival (becuase they're an off station character or something); ensure that special_role and assigned_role are equal.
=======
var/special_role //special roles are typically reserved for antags or roles like ERT. If you want to avoid a character being automatically announced by the AI, on arrival (becuase they're an off station character or something); ensure that special_role and assigned_role are equal.
>>>>>>> caf3822d618309788ab476e00d70a0522fe62334
var/special_role_meta_know = FALSE
var/offstation_role = FALSE //set to true for ERT, deathsquad, abductors, etc, that can go from and to z2 at will and shouldn't be antag targets
var/list/restricted_roles = list()
Expand Down
12 changes: 6 additions & 6 deletions code/datums/voice.dm
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#define GENDER_NAME_UNKNOWN list(MALE = "Неизвестный", FEMALE = "Неизвестная", NEUTER = "Неизвестный", PLURAL = "Неизвестный")
#define GENDER_NAME_UNKNOWN list(MALE = "Неизвестный", FEMALE = "Неизвестная", NEUTER = "Неизвестный", PLURAL = "Неизвестные")
//Voice cumponent
Pelmenik123 marked this conversation as resolved.
Show resolved Hide resolved
/datum/component/voice_model
var/mob/host = null
Expand Down Expand Up @@ -73,14 +73,15 @@
return t.fields["name"]
return "IDENTIFICATION ERROR"

Pelmenik123 marked this conversation as resolved.
Show resolved Hide resolved
/* not used
/* Not used
/datum/component/voice_model/proc/GetManifestKnowFace(mob/face_target)
for(var/datum/data/record/t in GLOB.data_core.general)
if(t)
if(t.fields["name"] == face_target.name)
return t.fields["name"]
return "IDENTIFICATION FACE ERROR"
*/

/datum/component/voice_model/proc/try_store(mob/source, mob/target)
SIGNAL_HANDLER
if(target == source)
Expand Down Expand Up @@ -110,9 +111,7 @@
. = TRUE
return

//For examie
// FUCKING BYOND
/* NOT USED
/* Not used
/datum/component/voice_model/proc/TryRecollectFace(mob/target)
if(src == target.adv_voice)
return target.name
Expand All @@ -132,6 +131,7 @@
. = get_gender_unknown_name(target_H.gender)
return
*/

//For hear
/datum/component/voice_model/proc/try_recollect_voice(mob/target)
if(!ishuman(host))
Expand All @@ -158,7 +158,7 @@
return FALSE

//HELPERS
/proc/GenDepartamentVoiceTree(mob/target, list/departments)
/proc/gen_departament_voice_tree(mob/target, list/departments)
var/list/result = list()

for(var/dep_flag in departments)
Expand Down
3 changes: 3 additions & 0 deletions code/game/gamemodes/cult/runes.dm
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,10 @@ structure_check() searches for nearby cultist structures required for the invoca
"<span class='cultlarge'><i>AAAAAAAAAAAAAA-</i></span>")
SSticker.mode.add_cultist(convertee.mind)
convertee.mind.special_role = "Cultist"
<<<<<<< HEAD
=======
//convertee.mind.special_role_meta_know = TRUE
>>>>>>> caf3822d618309788ab476e00d70a0522fe62334
to_chat(convertee, "<span class='cultitalic'><b>Your blood pulses. Your head throbs. The world goes red. All at once you are aware of a horrible, horrible, truth. The veil of reality has been ripped away \
and something evil takes root.</b></span>")
to_chat(convertee, "<span class='cultitalic'><b>Assist your new compatriots in their dark dealings. Your goal is theirs, and theirs is yours. You serve [SSticker.cultdat.entity_title3] above all else. Bring it back.\
Expand Down
3 changes: 1 addition & 2 deletions code/game/jobs/job/engineering.dm
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#define PRIMITIVE_STATION_DEPARTMENTS list("Command", "Medical", "Engineering", "Science", "Security", "Cargo", "Support", "Civilian")
/datum/job/chief_engineer
title = JOB_TITLE_CHIEF
flag = JOB_FLAG_CHIEF
Expand Down Expand Up @@ -30,7 +29,7 @@
max_start_money = 700

default_dep = FALSE
college_department = PRIMITIVE_STATION_DEPARTMENTS
colleagues_department= PRIMITIVE_STATION_DEPARTMENTS

/datum/outfit/job/chief_engineer
name = "Chief Engineer"
Expand Down
6 changes: 3 additions & 3 deletions code/game/jobs/job/job.dm
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,11 @@
var/insurance_type = INSURANCE_TYPE_STANDART

var/default_dep = TRUE
var/list/college_department = list()
var/list/colleagues_department = list()

/datum/job/New()
if(department && default_dep )
LAZYADD(college_department, department)
if(department && default_dep)
LAZYADD(colleagues_department, department)

//Only override this proc
/datum/job/proc/after_spawn(mob/living/carbon/human/H)
Expand Down
4 changes: 2 additions & 2 deletions code/game/jobs/job/medical.dm
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
max_start_money = 700

default_dep = FALSE
college_department = PRIMITIVE_STATION_DEPARTMENTS
colleagues_department= PRIMITIVE_STATION_DEPARTMENTS

/datum/outfit/job/cmo
name = JOB_TITLE_CMO
Expand Down Expand Up @@ -264,7 +264,7 @@
min_start_money = 200
max_start_money = 400

college_department = list("Medical", "Science")
colleagues_department= list("Medical", "Science")

/datum/outfit/job/geneticist
name = "Geneticist"
Expand Down
2 changes: 1 addition & 1 deletion code/game/jobs/job/science.dm
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
max_start_money = 700

default_dep = FALSE
college_department = PRIMITIVE_STATION_DEPARTMENTS
colleagues_department= PRIMITIVE_STATION_DEPARTMENTS

/datum/outfit/job/rd
name = "Research Director"
Expand Down
4 changes: 2 additions & 2 deletions code/game/jobs/job/security.dm
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
max_start_money = 700

default_dep = FALSE
college_department = PRIMITIVE_STATION_DEPARTMENTS
colleagues_department= PRIMITIVE_STATION_DEPARTMENTS

/datum/outfit/job/hos
name = "Head of Security"
Expand Down Expand Up @@ -274,7 +274,7 @@
min_start_money = 200
max_start_money = 550

college_department = list("Security", "Medical") //:catsmile:
colleagues_department= list("Security", "Medical") //:catsmile:

/datum/outfit/job/brigdoc
name = "Brig Physician"
Expand Down
6 changes: 3 additions & 3 deletions code/game/jobs/job/supervisor.dm
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ GLOBAL_DATUM_INIT(captain_announcement, /datum/announcement/minor, new(do_newsca
max_start_money = 1200

default_dep = FALSE
college_department = PRIMITIVE_STATION_DEPARTMENTS
colleagues_department= PRIMITIVE_STATION_DEPARTMENTS

/datum/job/captain/get_access()
return get_all_accesses()
Expand Down Expand Up @@ -100,7 +100,7 @@ GLOBAL_DATUM_INIT(captain_announcement, /datum/announcement/minor, new(do_newsca
max_start_money = 700

default_dep = FALSE
college_department = PRIMITIVE_STATION_DEPARTMENTS
colleagues_department= PRIMITIVE_STATION_DEPARTMENTS

/datum/outfit/job/hop
name = "Head of Personnel"
Expand Down Expand Up @@ -208,7 +208,7 @@ GLOBAL_DATUM_INIT(captain_announcement, /datum/announcement/minor, new(do_newsca
min_start_money = 400
max_start_money = 700

college_department = list("Command", "Security")
colleagues_department= list("Command", "Security")

/datum/outfit/job/blueshield
name = "Blueshield"
Expand Down
2 changes: 1 addition & 1 deletion code/game/jobs/job/support.dm
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
max_start_money = 700

default_dep = FALSE
college_department = PRIMITIVE_STATION_DEPARTMENTS
colleagues_department= PRIMITIVE_STATION_DEPARTMENTS

/datum/outfit/job/qm
name = "Quartermaster"
Expand Down
2 changes: 1 addition & 1 deletion code/modules/antagonists/_common/antag_datum.dm
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ GLOBAL_LIST_EMPTY(antagonists)
var/russian_wiki_name
/// Show antag in ghost orbit
var/show_in_orbit = TRUE
//for voice.dm :catsmile:
//for voice.dm
var/meta_acquaintances = FALSE

/datum/antagonist/New()
Expand Down
6 changes: 0 additions & 6 deletions code/modules/economy/Job_Departments.dm
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
GLOBAL_LIST_INIT(station_departments, list("Command", "Medical", "Engineering", "Science", "Security", "Cargo", "Support", "Civilian"))
//Это нужно поскольку GLOB.station_departments определяется во время выполнения

// The department the job belongs to.
// fuck you cib
/datum/job/var/department = null

// Whether this is a head position
Expand Down Expand Up @@ -102,5 +98,3 @@ GLOBAL_LIST_INIT(station_departments, list("Command", "Medical", "Engineering",
/datum/job/judge/department = "Security"

/datum/job/lawyer/department = "Security"


4 changes: 2 additions & 2 deletions code/modules/mob/hear_say.dm
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@

if(italics)
message = "<i>[message]</i>"
var/datum/component/voice_model/adv_voice = src.GetComponent(/datum/component/voice_model)
var/datum/component/voice_model/adv_voice = GetComponent(/datum/component/voice_model)
speaker_name = adv_voice.try_recollect_voice(speaker)
var/track = null
if(isobserver(src))
Expand Down Expand Up @@ -254,7 +254,7 @@
if(!ishuman(speaker))
return speaker.name

var/datum/component/voice_model/adv_voice = src.GetComponent(/datum/component/voice_model)
var/datum/component/voice_model/adv_voice = GetComponent(/datum/component/voice_model)
return adv_voice.try_recollect_voice(speaker)

/mob/proc/handle_track(message, verb = "says", mob/speaker = null, speaker_name, atom/follow_target, hard_to_hear)
Expand Down
3 changes: 1 addition & 2 deletions code/modules/mob/living/carbon/human/human.dm
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

/mob/living/carbon/human/Initialize(mapload, datum/species/new_species = /datum/species/human)
icon = null // This is now handled by overlays -- we just keep an icon for the sake of the map editor.
create_dna()
Expand Down Expand Up @@ -1964,6 +1963,7 @@ Eyes need to have significantly high darksight to shine unless the mob has the X
if(istype(potential_spine))
carrydelay *= potential_spine.athletics_boost_multiplier
*/

Pelmenik123 marked this conversation as resolved.
Show resolved Hide resolved
if(carrydelay <= 3 SECONDS)
skills_space = " very quickly"
else if(carrydelay <= 4 SECONDS)
Expand All @@ -1981,4 +1981,3 @@ Eyes need to have significantly high darksight to shine unless the mob has the X
return

return buckle_mob(target, TRUE, FALSE, CARRIER_NEEDS_ARM) //checkloc is false because we usually grab people from nearest tile

13 changes: 5 additions & 8 deletions code/modules/mob/living/carbon/human/npcs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,13 @@
. = ..()
name = "Pun Pun"
real_name = name
job = "Bartender"
tts_seed = "Chen"

var/obj/item/clothing/under/punpun/prom = new(src)
//var/obj/item/clothing/accessory/petcollar/prom_collar = new(src)
var/obj/item/card/id/punpun/punpun_id = new(src)
//prom_collar.access_id = punpun_id
//prom_collar.on_attached(prom, src)
var/obj/item/clothing/accessory/petcollar/prom_collar = new(src)
var/obj/item/card/id/punpun/punpun_id = new(prom_collar)
prom_collar.access_id = punpun_id
prom_collar.on_attached(prom, src)
equip_to_slot_if_possible(prom, ITEM_SLOT_CLOTH_INNER)
equip_to_slot_if_possible(punpun_id, ITEM_SLOT_ID)
tts_seed = "Chen"

/mob/living/carbon/human/lesser/monkey/punpun/can_use_machinery(obj/machinery/mas)
. = ..()
Expand Down
2 changes: 1 addition & 1 deletion code/modules/mob/mob_helpers.dm
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ GLOBAL_LIST_INIT(intents, list(INTENT_HELP,INTENT_DISARM,INTENT_GRAB,INTENT_HARM
objective.explanation_text = copytext_char(objective.explanation_text, 1, pos)+newname+copytext_char(objective.explanation_text, pos+length)
update_voice()
if(!LAZYLEN(mass_update))
SEND_GLOBAL_SIGNAL(COMSIG_RENAME_VOICE_INJECT, GenDepartamentVoiceTree(src, mass_update))
SEND_GLOBAL_SIGNAL(COMSIG_RENAME_VOICE_INJECT, gen_departament_voice_tree(src, mass_update))
return 1

/mob/proc/rename_self(var/role, var/allow_numbers = FALSE, var/force = FALSE, list/mass_update = list())
Expand Down
Loading