mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-13 03:33:21 +00:00
Added cortical borers to the various HUDs.
This commit is contained in:
@@ -104,6 +104,8 @@
|
|||||||
holder = patient.hud_list[STATUS_HUD]
|
holder = patient.hud_list[STATUS_HUD]
|
||||||
if(patient.stat == 2)
|
if(patient.stat == 2)
|
||||||
holder.icon_state = "huddead"
|
holder.icon_state = "huddead"
|
||||||
|
else if(patient.has_brain_worms())
|
||||||
|
holder.icon_state = "hudbrainworm"
|
||||||
else if(patient.status_flags & XENO_HOST)
|
else if(patient.status_flags & XENO_HOST)
|
||||||
holder.icon_state = "hudxeno"
|
holder.icon_state = "hudxeno"
|
||||||
else if(foundVirus)
|
else if(foundVirus)
|
||||||
|
|||||||
@@ -69,6 +69,8 @@
|
|||||||
holder = patient.hud_list[STATUS_HUD]
|
holder = patient.hud_list[STATUS_HUD]
|
||||||
if(patient.stat == 2)
|
if(patient.stat == 2)
|
||||||
holder.icon_state = "huddead"
|
holder.icon_state = "huddead"
|
||||||
|
else if(patient.has_brain_worms())
|
||||||
|
holder.icon_state = "hudbrainworm"
|
||||||
else if(patient.status_flags & XENO_HOST)
|
else if(patient.status_flags & XENO_HOST)
|
||||||
holder.icon_state = "hudxeno"
|
holder.icon_state = "hudxeno"
|
||||||
else if(foundVirus)
|
else if(foundVirus)
|
||||||
|
|||||||
@@ -26,7 +26,7 @@
|
|||||||
see_invisible = SEE_INVISIBLE_OBSERVER
|
see_invisible = SEE_INVISIBLE_OBSERVER
|
||||||
see_in_dark = 100
|
see_in_dark = 100
|
||||||
verbs += /mob/dead/observer/proc/dead_tele
|
verbs += /mob/dead/observer/proc/dead_tele
|
||||||
|
|
||||||
stat = DEAD
|
stat = DEAD
|
||||||
|
|
||||||
var/turf/T
|
var/turf/T
|
||||||
@@ -93,12 +93,12 @@ Works together with spawning an observer, noted above.
|
|||||||
|
|
||||||
/mob/dead/observer/Life()
|
/mob/dead/observer/Life()
|
||||||
..()
|
..()
|
||||||
if(!loc) return
|
if(!loc) return
|
||||||
if(!client) return 0
|
if(!client) return 0
|
||||||
|
|
||||||
|
|
||||||
if(client.images.len)
|
if(client.images.len)
|
||||||
for(var/image/hud in client.images)
|
for(var/image/hud in client.images)
|
||||||
if(copytext(hud.icon_state,1,4) == "hud")
|
if(copytext(hud.icon_state,1,4) == "hud")
|
||||||
client.images.Remove(hud)
|
client.images.Remove(hud)
|
||||||
if(antagHUD)
|
if(antagHUD)
|
||||||
@@ -145,7 +145,7 @@ Works together with spawning an observer, noted above.
|
|||||||
var/foundVirus = 0
|
var/foundVirus = 0
|
||||||
if(patient.virus2.len)
|
if(patient.virus2.len)
|
||||||
foundVirus = 1
|
foundVirus = 1
|
||||||
if(!C) return
|
if(!C) return
|
||||||
holder = patient.hud_list[HEALTH_HUD]
|
holder = patient.hud_list[HEALTH_HUD]
|
||||||
if(patient.stat == 2)
|
if(patient.stat == 2)
|
||||||
holder.icon_state = "hudhealth-100"
|
holder.icon_state = "hudhealth-100"
|
||||||
@@ -156,14 +156,16 @@ Works together with spawning an observer, noted above.
|
|||||||
holder = patient.hud_list[STATUS_HUD]
|
holder = patient.hud_list[STATUS_HUD]
|
||||||
if(patient.stat == 2)
|
if(patient.stat == 2)
|
||||||
holder.icon_state = "huddead"
|
holder.icon_state = "huddead"
|
||||||
|
else if(patient.has_brain_worms())
|
||||||
|
holder.icon_state = "hudbrainworm"
|
||||||
else if(patient.status_flags & XENO_HOST)
|
else if(patient.status_flags & XENO_HOST)
|
||||||
holder.icon_state = "hudxeno"
|
holder.icon_state = "hudxeno"
|
||||||
else if(foundVirus)
|
else if(foundVirus)
|
||||||
holder.icon_state = "hudill"
|
holder.icon_state = "hudill"
|
||||||
else
|
else
|
||||||
holder.icon_state = "hudhealthy"
|
holder.icon_state = "hudhealthy"
|
||||||
C.images += holder
|
C.images += holder
|
||||||
|
|
||||||
|
|
||||||
/mob/dead/proc/assess_targets(list/target_list, mob/dead/observer/U)
|
/mob/dead/proc/assess_targets(list/target_list, mob/dead/observer/U)
|
||||||
var/icon/tempHud = 'icons/mob/hud.dmi'
|
var/icon/tempHud = 'icons/mob/hud.dmi'
|
||||||
@@ -319,7 +321,7 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
|
|||||||
if(jobban_isbanned(M, "AntagHUD"))
|
if(jobban_isbanned(M, "AntagHUD"))
|
||||||
src << "\red <B>You have been banned from using this feature</B>"
|
src << "\red <B>You have been banned from using this feature</B>"
|
||||||
return
|
return
|
||||||
if(config.antag_hud_restricted && !M.has_enabled_antagHUD &&!client.holder)
|
if(config.antag_hud_restricted && !M.has_enabled_antagHUD &&!client.holder)
|
||||||
var/response = alert(src, "If you turn this on, you will not be able to take any part in the round.","Are you sure you want to turn this feature on?","Yes","No")
|
var/response = alert(src, "If you turn this on, you will not be able to take any part in the round.","Are you sure you want to turn this feature on?","Yes","No")
|
||||||
if(response == "No") return
|
if(response == "No") return
|
||||||
M.can_reenter_corpse = 0
|
M.can_reenter_corpse = 0
|
||||||
@@ -455,7 +457,7 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
|
|||||||
|
|
||||||
var/response = alert(src, "Are you -sure- you want to become a mouse?","Are you sure you want to squeek?","Squeek!","Nope!")
|
var/response = alert(src, "Are you -sure- you want to become a mouse?","Are you sure you want to squeek?","Squeek!","Nope!")
|
||||||
if(response != "Squeek!") return //Hit the wrong key...again.
|
if(response != "Squeek!") return //Hit the wrong key...again.
|
||||||
|
|
||||||
|
|
||||||
//find a viable mouse candidate
|
//find a viable mouse candidate
|
||||||
var/mob/living/simple_animal/mouse/host
|
var/mob/living/simple_animal/mouse/host
|
||||||
|
|||||||
@@ -76,6 +76,8 @@
|
|||||||
holder = patient.hud_list[STATUS_HUD]
|
holder = patient.hud_list[STATUS_HUD]
|
||||||
if(patient.stat == 2)
|
if(patient.stat == 2)
|
||||||
holder.icon_state = "huddead"
|
holder.icon_state = "huddead"
|
||||||
|
else if(patient.has_brain_worms())
|
||||||
|
holder.icon_state = "hudbrainworm"
|
||||||
else if(patient.status_flags & XENO_HOST)
|
else if(patient.status_flags & XENO_HOST)
|
||||||
holder.icon_state = "hudxeno"
|
holder.icon_state = "hudxeno"
|
||||||
else if(foundVirus)
|
else if(foundVirus)
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.9 KiB |
Reference in New Issue
Block a user