Jump to content
  • 0

Remap Alt+F4 to avoid combatlogging ?


StiflersM0M

Question

Hey guys,

 

i found a quite old script from a old hack release, (looking often in this forums too be up too date with hackers)

 

Just a imagine, i think it would stop alot of combatloggers who are exit via the menu and press alt+f4, maybe anyone can rewrite this script that it will work with epoch ?

 

i cant my scripting knowledge is not enough for that...

 

would be just awesome, here the script:


	sdasdadsasdsaffsdsdfrtretrwe = {
		private["_display","_btnabort"];
		disableSerialization;
		waitUntil {
			_display = findDisplay 49;
			!isNull _display;
		};
		_btnabort = _display displayCtrl 104;
		_btnabort ctrlEnable _this;
	};

publicVariable "sdasdadsasdsaffsdsdfrtretrwe";

	gfdiogfhdoigfdhiogfdoigfhd = {
		_dikCode = 	_this select 1;
		if (_dikCode in actionKeys "IngamePause") then {
			_id = false spawn sdasdadsasdsaffsdsdfrtretrwe;
		};
		_handled
	};
publicvariable "gfdiogfhdoigfdhiogfdoigfhd";

    TAG_onKeyDown =
{
     private ["_key", "_return"];
     _shift = _this select 2;
     _key = _this select 1;
     _return = false;
     if (_key == 62) then //Scroll lock
     {

    	player setdamage 1;
TitleText [format['Hah, ALT+F4? Nah you dont get off that easy. I remapped those keys to suicide.'], 'PLAIN DOWN'];
        _shift = nil;

     };
    _return
};


waitUntil {!isNull (findDisplay 46)};
(findDisplay 46) displayAddEventHandler ["keyDown", "_this call TAG_onKeyDown"];
Link to comment
Share on other sites

12 answers to this question

Recommended Posts

  • 0

Disable character removal from the world until after 10 seconds of the players client disconnection.  On disconnection, move the character control to the server and then after the 10 seconds log them off.  Obviously only for disconnects :) .  That way if the kill the game, their character does not instantly vanish and makes combat logging via these methods pointless.

 

There was some disconnect code floating around to try and catch dupers on the forums that someone may be able to utilise.

Link to comment
Share on other sites

  • 0
if (_dikCode == 0x3E && _alt) then {
        // Kill player when they press alt-F4
	[] spawn (compile preprocessFileLineNumbers 'dayz_code\compile\player_death.sqf'); // Might need to change this line
	player setHit['Body',1];
};

Add this code right before _handled in dayz_spaceInterrupt.sqf

 

Credit: Meca

Link to comment
Share on other sites

  • 0
if (_dikCode == 0x3E && _alt) then {
        // Kill player when they press alt-F4
	[] spawn (compile preprocessFileLineNumbers 'dayz_code\compile\player_death.sqf'); // Might need to change this line
	player setHit['Body',1];
};

Add this code right before _handled in dayz_spaceInterrupt.sqf

 

Credit: Meca

 

seems not to work.

Link to comment
Share on other sites

  • 0

if (_dikCode == 0x3E && _alt) then {
//Death
	//[] spawn player_death;
	//player setHit['Body',1];
//unconscious
	player setVariable["NORRN_unconscious",true, true];
	player setVariable["unconsciousTime",300,true];
	//diag_log format["COMBAT LOGGED: %1 (%2) at location %3", _playerName,_timeout,(getPosATL _playerObj)];
}; 

Try with this..

 

Link to comment
Share on other sites

  • 0
if (_dikCode == 0x3E && _alt) then {
//Death
	//[] spawn player_death;
	//player setHit['Body',1];
//unconscious
	player setVariable["NORRN_unconscious",true, true];
	player setVariable["unconsciousTime",300,true];
	//diag_log format["COMBAT LOGGED: %1 (%2) at location %3", _playerName,_timeout,(getPosATL _playerObj)];
}; 

Try with this..

 

 

did this also work if the person gos into the menu and press there alt+f4 ?

Link to comment
Share on other sites

  • 0

Disable character removal from the world until after 10 seconds of the players client disconnection.  On disconnection, move the character control to the server and then after the 10 seconds log them off.  Obviously only for disconnects :) .  That way if the kill the game, their character does not instantly vanish and makes combat logging via these methods pointless.

 

There was some disconnect code floating around to try and catch dupers on the forums that someone may be able to utilise.

yes, thats this one: http://opendayz.net/threads/anti-combat-logging-discobot.12073/ but anyway, the git is offline.... i think this would be the best method do prevent combat loggers. or like in redux, if anyone fiered around you (80-100M) or a bullet landed near to you or fly near too you its just throwed you in combat and if you combat log it killed you, this is very agressive but i hate combat loggers, as much as i hate hackers. but alot of times i have not enough proof too ban theese people.

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

×
×
  • Create New...