Jump to content
  • 0

Combat logger uncounsicousness timer


FragZ

Question

So when someone combat log, even by accident, they get knocked out for like 5 mins in game.

I would like to know where do u change that^ I would put it to 1-2 min instead cus shit happens you know! I myself crashed few times or stuff like that and got uncounscious for like 5mins.



Any help is appreciated.

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Look at dayz_server\compile\server_onPlayerDisconnect.sqf and look for this block of code:

if ((_timeout - time) > 0) then {

		_playerObj setVariable["NORRN_unconscious",true, true];
		_playerObj setVariable["unconsciousTime",300,true];
	
		diag_log format["COMBAT LOGGED: %1 (%2) at location %3", _playerName,_timeout,(getPosATL _playerObj)];
		//diag_log format["SET UNCONCIOUSNESS: %1", _playerName];
	
		// Message whole server when player combat logs
		_message = format["PLAYER COMBAT LOGGED: %1",_playerName];
		[nil, nil, rTitleText, _message, "PLAIN"] call RE;
	};

Change:

["unconsciousTime",300,true]

to how long you want the timer, in seconds.

Link to comment
Share on other sites

  • 0

Look at dayz_server\compile\server_onPlayerDisconnect.sqf and look for this block of code:

if ((_timeout - time) > 0) then {

		_playerObj setVariable["NORRN_unconscious",true, true];
		_playerObj setVariable["unconsciousTime",300,true];
	
		diag_log format["COMBAT LOGGED: %1 (%2) at location %3", _playerName,_timeout,(getPosATL _playerObj)];
		//diag_log format["SET UNCONCIOUSNESS: %1", _playerName];
	
		// Message whole server when player combat logs
		_message = format["PLAYER COMBAT LOGGED: %1",_playerName];
		[nil, nil, rTitleText, _message, "PLAIN"] call RE;
	};

Change:

["unconsciousTime",300,true]

to how long you want the timer, in seconds.

Appreciate the help man. Thanks!

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...