rekterakathom / Overthrow

A dynamic and persistent revolution platform for Arma 3
https://steamcommunity.com/sharedfiles/filedetails/?id=2824471652
GNU General Public License v2.0
14 stars 9 forks source link

Weaponholders and wrecks don't get cleaned up #107

Open rekterakathom opened 3 months ago

rekterakathom commented 3 months ago

The only way that weaponholders ever get removed is by looting with AI or using the recovery truck, otherwise stuff is just going to remain forever. Wrecks are basically the same thing, except that nothing will ever clean them up, except for players with a toolkit. We could drastically reduce performance degradation by fixing these issues.

2.18 will introduce getCorpseWeaponHolders that can be implemented into the cleanup functions so that weapon holders get deleted alongside bodies. Though weaponholders not associated with a body will still remain...

There is also the issue that dead units that don't get looted will never be automatically deleted. Manual cleanup fixes this issue, but preferably the cleanup would work well enough that manual cleanup isn't needed.

2.18 will also introduce getEntityInfo that can be implemented into the OT_civilian_cleanup_crew action to check for really old bodies (90 mins, maybe?) to delete them.

Tuupertunut commented 13 hours ago

Weaponholders dropped from bodies (WeaponHolderSimulated) seem to be automatically deleted when their body is deleted. Item piles on the ground (GroundWeaponHolder) are not deleted.