mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-03-31 01:22:03 +01:00
* fixes * fuck my stupid chungus life * Minion limit, heal fix, dead sac fix * cooldown, no sacrificing star gazer or ascended alive heretics * blade debuff * oopsy * Update tgui.bundle.js * map diff bot what ya doing * fuck that chat spam * lets heretic armour hold a haunted longsword * why not it makes sense * do_after * god I hate this bullshit * other lewc stuff * push * heretic id card fix * she tg on my ui till I css * yes * spent * fix / ipc buff (real)™️ * moderate again * revert * no reserve * bringing up to master * update map files to master * didnt replace centcomm * beginning some rebalancing * aggressive spread tweaks * lots of tweaks and fixes * trying to un-key the maps * maybe this time * this time???? * oops * sql fix * basicmob conversion * paintings! and a critical influence fix * rust + tweaks * monster tweak * small change * removing this * more tweaks. no more dusting * added some examine_more * flower seeds * various tweaks. more to come * no more conduit spacing * fixed some dumb stuff * silly stuff * its always prettier * bugfixes and linters * linters, wow * oops * bah * linter * fuck you * temp check * hidden influence drain * influence visible message * tweak fix * void cloak bugfix * small fixes * fixes * do_after_once broken * fixes and tweaks * heretic blade potential fix + sacrifice changes * batch of fixes * tiny tweak * rebuilt TGUI * no greentext + rerolls * logging + bugfix * unused var * small fix * various fixes * comment * projectile change * tgui rebuild * tgui bundle redo * rune issue solved * influence visible now * fix ui reloading * new moon ascension + fixes + icons * tweaks, species sprites * tgui rebuild * small tweak + linter * harvester icon tweak * spans * fixes and tweaks * caretaker nerf + tweaks * potential fix for knowledge * roller fix * mad mask * Update tgui.bundle.js * void phase tweak * Update tgui.bundle.js * misc tweaks * fix heretic not retargeting correctly with cryo * simplify logic * this is better * lots of fixes and tweaks * Update tgui.bundle.js * linter * linter * fireshark and greyscale insanity * fish * Update tgui.bundle.js * linter * linter * tgui * no window shopping * fish fix * tgui rebundle * moon smile runtime fix * various fixes * sacrifice fixes * insanity is easier now, madness mask changes. * bugfixing + teleport change * linters + tweaks * Update code/modules/antagonists/heretic/status_effects/mark_effects.dm Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com> Signed-off-by: Kyani <65205627+EmeraldCandy@users.noreply.github.com> * Update code/modules/antagonists/heretic/status_effects/mark_effects.dm Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com> Signed-off-by: Kyani <65205627+EmeraldCandy@users.noreply.github.com> --------- Signed-off-by: Kyani <65205627+EmeraldCandy@users.noreply.github.com> Co-authored-by: Qwertytoforty <52090703+Qwertytoforty@users.noreply.github.com> Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> Co-authored-by: warriorstar-orion <orion@snowfrost.garden> Co-authored-by: Paul <pmerkamp@gmail.com> Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com>
126 lines
4.0 KiB
Plaintext
126 lines
4.0 KiB
Plaintext
/* HUD DATUMS */
|
|
GLOBAL_LIST_EMPTY(all_huds)
|
|
|
|
///GLOBAL HUD LIST
|
|
GLOBAL_LIST_INIT(huds, alist(
|
|
DATA_HUD_SECURITY_BASIC = new/datum/atom_hud/data/human/security/basic(),
|
|
DATA_HUD_SECURITY_ADVANCED = new/datum/atom_hud/data/human/security/advanced(),
|
|
DATA_HUD_MEDICAL_BASIC = new/datum/atom_hud/data/human/medical/basic(),
|
|
DATA_HUD_MEDICAL_ADVANCED = new/datum/atom_hud/data/human/medical/advanced(),
|
|
DATA_HUD_DIAGNOSTIC_BASIC = new/datum/atom_hud/data/diagnostic/basic(),
|
|
DATA_HUD_DIAGNOSTIC_ADVANCED = new/datum/atom_hud/data/diagnostic/advanced(),
|
|
DATA_HUD_HYDROPONIC = new/datum/atom_hud/data/hydroponic(),
|
|
DATA_HUD_JANITOR = new/datum/atom_hud/data/janitor(),
|
|
DATA_HUD_PRESSURE = new/datum/atom_hud/data/pressure(),
|
|
DATA_HUD_MALF_AI = new/datum/atom_hud/data/human/malf_ai(),
|
|
DATA_HUD_ANOMALOUS = new/datum/atom_hud/data/anomalous(),
|
|
ANTAG_HUD_CULT = new/datum/atom_hud/antag(),
|
|
ANTAG_HUD_REV = new/datum/atom_hud/antag(),
|
|
ANTAG_HUD_OPS = new/datum/atom_hud/antag(),
|
|
ANTAG_HUD_WIZ = new/datum/atom_hud/antag(),
|
|
ANTAG_HUD_SHADOW = new/datum/atom_hud/antag(),
|
|
ANTAG_HUD_TRAITOR = new/datum/atom_hud/antag/hidden(),
|
|
ANTAG_HUD_NINJA = new/datum/atom_hud/antag/hidden(),
|
|
ANTAG_HUD_CHANGELING = new/datum/atom_hud/antag/hidden(),
|
|
ANTAG_HUD_VAMPIRE = new/datum/atom_hud/antag/hidden(),
|
|
ANTAG_HUD_ABDUCTOR = new/datum/atom_hud/antag/hidden(),
|
|
DATA_HUD_ABDUCTOR = new/datum/atom_hud/abductor(),
|
|
ANTAG_HUD_EVENTMISC = new/datum/atom_hud/antag/hidden(),
|
|
ANTAG_HUD_BLOB = new/datum/atom_hud/antag/hidden(),
|
|
ANTAG_HUD_ZOMBIE = new/datum/atom_hud/antag(),
|
|
ANTAG_HUD_MIND_FLAYER = new/datum/atom_hud/antag/hidden(),
|
|
DATA_HUD_HERETIC = new/datum/atom_hud/data/heretic(),
|
|
ANTAG_HUD_HERETIC = new/datum/atom_hud/antag/hidden(),
|
|
ANTAG_HUD_HERETIC_BEAST = new/datum/atom_hud/antag/hidden(),
|
|
))
|
|
|
|
/datum/atom_hud
|
|
var/list/atom/hudatoms = list() //list of all atoms which display this hud
|
|
var/list/mob/hudusers = list() //list with all mobs who can see the hud
|
|
var/list/hud_icons = list() //these will be the indexes for the atom's hud_list
|
|
/// Do we ignore the invisibility check? Used by anom huds so we can see our stuff.
|
|
var/ignore_invisibility_check = FALSE
|
|
|
|
|
|
/datum/atom_hud/New()
|
|
GLOB.all_huds += src
|
|
|
|
/datum/atom_hud/Destroy()
|
|
for(var/v in hudusers)
|
|
remove_hud_from(v)
|
|
for(var/v in hudatoms)
|
|
remove_from_hud(v)
|
|
GLOB.all_huds -= src
|
|
return ..()
|
|
|
|
/datum/atom_hud/proc/remove_hud_from(mob/M)
|
|
if(!M)
|
|
return
|
|
if(src in M.permanent_huds)
|
|
return
|
|
for(var/atom/A in hudatoms)
|
|
remove_from_single_hud(M, A)
|
|
hudusers -= M
|
|
|
|
/datum/atom_hud/proc/remove_from_hud(atom/A)
|
|
if(!A)
|
|
return
|
|
for(var/mob/M in hudusers)
|
|
remove_from_single_hud(M, A)
|
|
hudatoms -= A
|
|
|
|
/datum/atom_hud/proc/remove_from_single_hud(mob/M, atom/A) //unsafe, no sanity apart from client
|
|
if(!M || !M.client || !A)
|
|
return
|
|
for(var/i in hud_icons)
|
|
M.client.images -= A.hud_list[i]
|
|
|
|
/datum/atom_hud/proc/add_hud_to(mob/M)
|
|
if(!M)
|
|
return
|
|
hudusers |= M
|
|
for(var/atom/A in hudatoms)
|
|
add_to_single_hud(M, A)
|
|
|
|
/datum/atom_hud/proc/add_to_hud(atom/A)
|
|
if(!A)
|
|
return
|
|
hudatoms |= A
|
|
for(var/mob/M in hudusers)
|
|
add_to_single_hud(M, A)
|
|
|
|
/datum/atom_hud/proc/add_to_single_hud(mob/M, atom/A) //unsafe, no sanity apart from client
|
|
if(!M || !M.client || !A)
|
|
return
|
|
if((A.invisibility > M.see_invisible) && !ignore_invisibility_check) // yee yee ass snowflake check for our yee yee ass snowflake huds
|
|
return
|
|
for(var/i in hud_icons)
|
|
if(A.hud_list[i])
|
|
M.client.images |= A.hud_list[i]
|
|
|
|
//MOB PROCS
|
|
/mob/proc/reload_huds()
|
|
//var/gang_huds = list()
|
|
//if(ticker.mode)
|
|
// for(var/datum/gang/G in ticker.mode.gangs)
|
|
// gang_huds += G.ganghud
|
|
|
|
var/serv_huds = list()//mindslaves and/or vampire thralls
|
|
if(SSticker.mode)
|
|
for(var/datum/mindslaves/serv in (SSticker.mode.vampires | SSticker.mode.traitors))
|
|
serv_huds += serv.thrallhud
|
|
|
|
|
|
for(var/datum/atom_hud/hud in (GLOB.all_huds|serv_huds))//|gang_huds))
|
|
if(src in hud.hudusers)
|
|
hud.add_hud_to(src)
|
|
|
|
/mob/new_player/reload_huds()
|
|
return
|
|
|
|
/mob/proc/add_click_catcher()
|
|
client.screen += client.void
|
|
|
|
/mob/new_player/add_click_catcher()
|
|
return
|