canuckbrian

Delete Vehicle Wrecks Separate From Player Corpses

5 posts in this topic

I'm not sure where to post this, so I'm posting it here.

Right now Exile has the player corpse and the vehicle wreck cleanup on the same timer setting. This is annoying for a couple of reasons.

  1. Players want a chance to get back to their bodies, so setting this to 15 minutes gives players a chance at least.
  2. Server owners want wrecked vehicles cleaned up quickly for performance reasons.
  3. When a player dies in the vehicle and  the vehicle is destroyed their corpse is trapped inside. No way to pull it out. So it and the wrecked vehicle get deleted together.
  4. In PVP the attackers gain nothing by taking out a vehicle and it's occupants.

As an admin I can delete the wreck. When this happens the corpses of any players inside are released from the wreck and are able to be looted.

What I'd love to see is this. Separate the cleanup timers for corpses and wrecks so admins can choose how long each type sticks around for before it's cleaned up. I'd also like to see it that any player that dies while inside a vehicle is immediately ejected regardless of whether the vehicle is destroyed or not. This way any PVP attackers would at least get some rewards for their kill in the form of the player's loot.

Share this post


Link to post
Share on other sites

rather get wrecked in vehicle with all that i got than some1 steals my corpse empty.

 

Question; what would happen to you and everything you got on your person when your vehicle explodes and burns?

 

Answer; NOTHING stays left.

 

No pun

Edited by STONEY-DSP

Share this post


Link to post
Share on other sites
Advertisement

But i want rework this script for return items from destroyed vehicle.

I have this script, but his don't work

getContainerItems = {
	private _return = [];
	{
	_name = _x select 0;
	_object = _x select 1;
	
	_mags = magazinesAmmo _object;
	_weaps = weaponsItems _object;
	_items = itemCargo _object;
	_containers = everyContainer _object;
	
	_containers = if (_containers isEqualTo []) then {[]} else {_containers call getContainerItems};
	
	_return pushBack [_name,_mags,_items,_weaps,_containers];
	
	} foreach _this;
	_return
};

_veh = cursorObject;
_top_mags = magazinesAmmoCargo _veh;

_top_weaps = weaponsItemsCargo _veh;

_top_items = itemCargo _veh;

_top_containers = everyContainer _veh;  

_containers = if (_top_containers isEqualTo []) then {[]} else {_top_containers call getContainerItems};

return = [_top_mags,_top_items,_top_weaps,_top_containers];

Correct me please.

Share this post


Link to post
Share on other sites
On 6/19/2017 at 1:48 AM, leonardos1978 said:

But i want rework this script for return items from destroyed vehicle.

I have this script, but his don't work


getContainerItems = {
	private _return = [];
	{
	_name = _x select 0;
	_object = _x select 1;
	
	_mags = magazinesAmmo _object;
	_weaps = weaponsItems _object;
	_items = itemCargo _object;
	_containers = everyContainer _object;
	
	_containers = if (_containers isEqualTo []) then {[]} else {_containers call getContainerItems};
	
	_return pushBack [_name,_mags,_items,_weaps,_containers];
	
	} foreach _this;
	_return
};

_veh = cursorObject;
_top_mags = magazinesAmmoCargo _veh;

_top_weaps = weaponsItemsCargo _veh;

_top_items = itemCargo _veh;

_top_containers = everyContainer _veh;  

_containers = if (_top_containers isEqualTo []) then {[]} else {_top_containers call getContainerItems};

return = [_top_mags,_top_items,_top_weaps,_top_containers];

Correct me please.

Did you make this work? I'd love to see something like this. I don't know how to write my own, wouldn't know where to start, but I noticed that when you unpack a safe, the items within are dropped to the ground. So maybe find that code there and see if it could be adjusted to drop content from vehicle?

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.