I'm running a small private server for some friends and myself.
Occasionally we like to do stupid shit like AC130 fights, so I've created a menu for myself to spawn random stuff, like a C130 with sidewinders and a GAU8 etc.
To make these vehicles not disapear when somebody gets into them, I've removed this code form the init\server_functions.sqf
Question
Shak
Hi,
I'm running a small private server for some friends and myself.
Occasionally we like to do stupid shit like AC130 fights, so I've created a menu for myself to spawn random stuff, like a C130 with sidewinders and a GAU8 etc.
To make these vehicles not disapear when somebody gets into them, I've removed this code form the init\server_functions.sqf
server_checkHackers = {
if (DZE_DYN_AntiStuck2nd > 3) then { DZE_DYN_HackerCheck = nil; DZE_DYN_AntiStuck2nd = 0; };
if(!isNil "DZE_DYN_HackerCheck") exitWith { DZE_DYN_AntiStuck2nd = DZE_DYN_AntiStuck2nd + 1;};
DZE_DYN_HackerCheck = true;
{
if (!((isNil "_x") || {(isNull _x)})) then {
if(vehicle _x != _x && !(vehicle _x in PVDZE_serverObjectMonitor) && (isPlayer _x) && !((typeOf vehicle _x) in DZE_safeVehicle) && !(_x getVariable["SAR_protect",false]) && (vehicle _x getVariable ["Sarge",0] != 1) && (vehicle _x getVariable ["Mission",0] != 1)) then {
diag_log ("CLEANUP: KILLING A HACKER " + (name _x) + " " + str(_x) + " IN " + (typeOf vehicle _x));
(vehicle _x) setDamage 1;
_x setDamage 1;
sleep 0.25;
};
};
sleep 0.001;
} count allUnits;
DZE_DYN_HackerCheck = nil;
};
Problem is, that spams the rpt with this error.
In system\server_cleanup.fsm there is this code
/*%FSM</STATE>*/
/*%FSM<STATE "group_cleanup">*/
class group_cleanup
{
name = "group_cleanup";
init = /*%FSM<STATEINIT""">*/"[] spawn server_checkHackers;" \n
"[] spawn server_cleanupGroups;"/*%FSM</STATEINIT""">*/;
precondition = /*%FSM<STATEPRECONDITION""">*/""/*%FSM</STATEPRECONDITION""">*/;
class Links
{
/*%FSM<LINK "true">*/
class true
{
priority = 0.000000;
to="general_cleanup";
precondition = /*%FSM<CONDPRECONDITION""">*/""/*%FSM</CONDPRECONDITION""">*/;
condition=/*%FSM<CONDITION""">*/"true"/*%FSM</CONDITION""">*/;
action=/*%FSM<ACTION""">*/""/*%FSM</ACTION""">*/;
};
/*%FSM</LINK>*/
};
};
So my question is, how do I edit the server cleanup to not spam the rpt? Any help would be appreciated.
Thanks.
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now