Page MenuHomeFeedback Tracker

Corpse and Wreck Cleanup / Delete
New, WishlistPublic

Description

Corpse and wreck cleanup functionality seem to miss certain objects such as "CraterLong" and "Ruins". This is perhaps, a feature by design, not a bug.

Accordingly, in addition to built-in corpse and wreck cleanup functionality, it is still necessary to include mission scripting to handle cleanup of:

  1. abandoned vehicles, statics and mines
  2. GroundWeaponHolder and WeaponHolderSimulated
  3. craters created by air crashes "CraterLong"
  4. ruins

Some script-created objects such as "test_EmptyObjectForFireBig" and "test_EmptyObjectForFireBig", once created, cannot be identified by allMissionObjects or entities "typename". In order to delete them, they have to be found using nearestObjects with [] in the type parameter.

Objects such as "EmptyDetector", "#destructioneffects" and "#smokesource" cannot be deleted at all and accumulates to large numbers over time.

Feature Request: Current corpse and wreck cleanup is based on limit and time. Would be nice if corpse and wreck cleanup includes a player in proximity or in view of player parameter. Despawning objects close to and in players view, affects the realism of the gameplay experience.

Details

Legacy ID
1333133033
Severity
None
Resolution
Open
Reproducibility
Always
Category
Performance
Steps To Reproduce

manualCleanup = {
_cleanList = _this;
systemChat "* BEFORE CLEANUP *";
{

		systemChat str [_x, count allMissionObjects _x];
		{
			deleteVehicle _x; 
			{ deleteVehicle _x; } forEach (nearestObjects [getPosASL _x,[],3]);
		} forEach allMissionObjects _x;

} forEach _cleanList;

systemChat "* AFTER CLEANUP *";
{ systemChat str [_x, count allMissionObjects _x]; } forEach _cleanList;

systemChat "* CLEANUP COMPLETE *";
};

[
"GroundWeaponHolder",
"WeaponHolderSimulated",
"CraterLong",
"StaticWeapon",
"Default",
"Ruins",
"EmptyDetector",
"#smokesource",
"#destructioneffects"
] spawn manualCleanUp;

Event Timeline

cyckuan edited Steps To Reproduce. (Show Details)Jun 17 2014, 8:41 PM
cyckuan edited Additional Information. (Show Details)
cyckuan set Category to Performance.
cyckuan set Reproducibility to Always.
cyckuan set Severity to None.
cyckuan set Resolution to Open.
cyckuan set Legacy ID to 1333133033.May 7 2016, 6:46 PM
Bohemia added a subscriber: AD2001.Jun 17 2014, 8:41 PM