As we all know Hamas unchecked friendly fire when they started the server, so nothing in Gaza was damaged by Hamas. So when they engage in a firefight with the IDF, their bullets and rockets have no affect on the property or the people in the area.
and they almost certainly know exactly where they are, because there is no way these orgs are just, walking into warzones without informing both parties about where they're going and when.