As I understand it, you might try creating a separate collision layer for walls and floors, set the parent of the outer collision shape's to floors, and the inner to whatever terrain you want to kill the player. If need be, you can dynamically set the collision mask of a collision object using set_collision_mask_value().