Skip to content

Commit

Permalink
smoke again, yippee
Browse files Browse the repository at this point in the history
  • Loading branch information
Ediblebomb committed Aug 8, 2024
1 parent 96c596a commit 1b97f79
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions code/game/objects/effects/effect_system/smoke.dm
Original file line number Diff line number Diff line change
Expand Up @@ -131,18 +131,21 @@
for(var/mob/living/carbon/M in get_turf(src))
affect(M)

/obj/effect/particle_effect/smoke/bad/affect(mob/living/carbon/M)
/obj/effect/particle_effect/smoke/bad/affect(mob/living/carbon/human/M)
..()
if (M.internal != null && M.wear_mask && (M.wear_mask.flags_inventory & ALLOWINTERNALS))
return
if(M.wear_mask && (M.wear_mask.flags_inventory & BLOCKGASEFFECT))
return FALSE
if(M.head && (M.head.flags_inventory & BLOCKGASEFFECT))
return FALSE
else
if(prob(20))
M.drop_held_item()
M.apply_damage(1, OXY)
if(M.coughedtime != 1)
M.coughedtime = 1
if(ishuman(M)) //Humans only to avoid issues
M.emote("cough")
M.emote("cough")
addtimer(VARSET_CALLBACK(M, coughedtime, 0), 2 SECONDS)

/////////////////////////////////////////////
Expand Down

0 comments on commit 1b97f79

Please sign in to comment.