Improves the admin Antag HUD and enhances the Streamer logo (#34528)

* ok

* better multi icon

* better ghost antag HUD

* removing debug info
This commit is contained in:
DeityLink
2023-07-04 02:00:43 +02:00
committed by GitHub
parent 6af5577f2c
commit 277e8b097f
3 changed files with 17 additions and 18 deletions

View File

@@ -347,25 +347,24 @@ Works together with spawning an observer, noted above.
/mob/dead/proc/assess_antagHUD(list/target_list, mob/dead/observer/U)
for(var/mob/living/target in target_list)
if(target.mind)
var/image/I
U.client.images -= target.hud_list[SPECIALROLE_HUD]
switch(target.mind.antag_roles.len)
if(0)
I = null
if(1)
for(var/R in target.mind.antag_roles)
var/datum/role/role = target.mind.antag_roles[R]
I = image('icons/role_HUD_icons.dmi', target, role.logo_state)
else
I = image('icons/role_HUD_icons.dmi', target, "multi-logo")
if(I)
I.pixel_x = 20 * PIXEL_MULTIPLIER
I.pixel_y = 20 * PIXEL_MULTIPLIER
I.plane = ANTAG_HUD_PLANE
target.hud_list[SPECIALROLE_HUD] = I
U.client.images += I
else
target.hud_list[SPECIALROLE_HUD] = null
var/icon/I_base = new
var/F = 1
for(var/R in target.mind.antag_roles)
var/datum/role/role = target.mind.antag_roles[R]
var/icon/J = icon('icons/role_HUD_icons.dmi',role.logo_state)
I_base.Insert(J,null,frame = F, delay = 10/target.mind.antag_roles.len)
F++
var/image/I = image(I_base)
I.loc = target
I.appearance_flags |= RESET_COLOR|RESET_ALPHA
I.pixel_x = 20 * PIXEL_MULTIPLIER
I.pixel_y = 20 * PIXEL_MULTIPLIER
I.plane = ANTAG_HUD_PLANE
target.hud_list[SPECIALROLE_HUD] = I
U.client.images += I
if(issilicon(target))//If the silicon mob has no law datum, no inherent laws, or a law zero, add them to the hud.
var/mob/living/silicon/silicon_target = target

Binary file not shown.

Before

Width:  |  Height:  |  Size: 30 KiB

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.4 KiB

After

Width:  |  Height:  |  Size: 5.0 KiB