Fixes window frames blocking bullets and thrown grenades (#22995)

- bugfix: "Fixed window frames blocking thrown grenades and bullets."
- bugfix: "Fixed grenades launched instead of being thrown getting stuck
on railings and tables."
This commit is contained in:
FenodyreeAv
2026-08-04 10:50:23 +00:00
committed by GitHub
parent 2be982cd52
commit 24c772e86a
3 changed files with 13 additions and 1 deletions
@@ -6,7 +6,7 @@
maxhealth = OBJECT_HEALTH_MEDIUM
color = COLOR_GRAY20
build_amt = 4
pass_flags_self = PASSRAILING
pass_flags_self = PASSRAILING | LETPASSTHROW
layer = WINDOW_FRAME_LAYER
anchored = TRUE
density = TRUE
@@ -54,6 +54,10 @@
return TRUE
if(istype(mover, /obj/structure/closet/crate))
return TRUE
if(istype(mover,/obj/projectile))
return TRUE
if(mover.throwing)
return TRUE
if(istype(mover) && mover.pass_flags & PASSTABLE)
return TRUE
if(locate(/obj/structure/window_frame) in get_turf(mover))