Skip to content

Commit

Permalink
humans are now lit on fire
Browse files Browse the repository at this point in the history
  • Loading branch information
harryob committed Aug 25, 2023
1 parent c82b96b commit 628da81
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions code/modules/mob/living/carbon/human/human_defines.dm
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/mob/living/carbon/human
light_system = MOVABLE_LIGHT
//Hair color and style
var/r_hair = 0
var/g_hair = 0
Expand Down
5 changes: 5 additions & 0 deletions code/modules/mob/living/carbon/human/update_icons.dm
Original file line number Diff line number Diff line change
Expand Up @@ -701,17 +701,22 @@ Applied by gun suicide and high impact bullet executions, removed by rejuvenate,
/mob/living/carbon/human/update_fire()
remove_overlay(FIRE_LAYER)
if(!on_fire)
set_light_on(FALSE)
return
var/image/I
switch(fire_stacks)
if(1 to 14)
I = image("icon"='icons/mob/humans/onmob/OnFire.dmi', "icon_state"="Standing_weak", "layer"= -FIRE_LAYER)
set_light_range(2)
if(15 to INFINITY)
I = image("icon"='icons/mob/humans/onmob/OnFire.dmi', "icon_state"="Standing_medium", "layer"= -FIRE_LAYER)
set_light_range(3)
else
return
I.appearance_flags |= RESET_COLOR|RESET_ALPHA
I.color = fire_reagent.burncolor
set_light_color(fire_reagent.burncolor)
set_light_on(TRUE)
overlays_standing[FIRE_LAYER] = I
apply_overlay(FIRE_LAYER)

Expand Down

0 comments on commit 628da81

Please sign in to comment.