mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
Merge pull request #4760 from Neerti/2/8/2018_door_assembly_fix
Makes Projectiles Sometimes Pass Through Door Assemblies
This commit is contained in:
@@ -320,3 +320,10 @@
|
||||
if(2)
|
||||
name = "near finished "
|
||||
name += "[glass == 1 ? "window " : ""][istext(glass) ? "[glass] airlock" : base_name] assembly ([created_name])"
|
||||
|
||||
// Airlock frames are indestructable, so bullets hitting them would always be stopped.
|
||||
// To fix this, airlock assemblies will sometimes let bullets pass through, since generally the sprite shows them partially open.
|
||||
/obj/structure/door_assembly/bullet_act(var/obj/item/projectile/P)
|
||||
if(prob(40)) // Chance for the frame to let the bullet keep going.
|
||||
return PROJECTILE_CONTINUE
|
||||
return ..()
|
||||
|
||||
Reference in New Issue
Block a user