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.
Weaponholders dropped from bodies (WeaponHolderSimulated) seem to be automatically deleted when their body is deleted. Item piles on the ground (GroundWeaponHolder) are not deleted.
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 theOT_civilian_cleanup_crew
action to check for really old bodies (90 mins, maybe?) to delete them.