Jump to content
  • 0

Server Dead Body Cleanup


ElDubya

Question

Hi, 

 

I am having issues whereby players bodies are vanishing more often that not after they die. Like, they just dissapear. It's a PVE server and no one is hiding the bodies. Is it possible to turn off the server cleanup of bodies all together, or are zombie bodies that have been shot included in that? If it is possible, do I just comment this line out in server_cleanup.fsm?

item18[] = {"cleanup_dead",2,250,575.000000,0.000000,675.000000,50.000000,0.000000,"cleanup" \n "dead"};

Or what's the best way to either turn it off completely or delay the cleanup of bodies by about an hour?

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Or is this it : 

// must spawn these 
server_spawncleanDead = {
	private ["_deathTime","_delQtyZ","_delQtyP","_qty","_allDead"];
	_allDead = allDead;
	_delQtyZ = 0;
	_delQtyP = 0;
	{
		if (local _x) then {
			if (_x isKindOf "zZombie_Base") then
			{
				_x call dayz_perform_purge;
				sleep 0.05;
				_delQtyZ = _delQtyZ + 1;
			} else {
				if (_x isKindOf "CAManBase") then {
					_deathTime = _x getVariable ["processedDeath", diag_tickTime];
					if (diag_tickTime - _deathTime > 1800) then {
						_x call dayz_perform_purge_player;
						sleep 0.025;
						_delQtyP = _delQtyP + 1;
					};
				};
			};
		};

and I just change

if (diag_tickTime - _deathTime > 1800) then {  

to

if (diag_tickTime - _deathTime > 3600) then { 

??

Link to comment
Share on other sites

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
  • Advertisement
  • Discord

×
×
  • Create New...