mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-28 15:39:57 +01:00
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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user