Jump to content

Veroly

Member
  • Posts

    6
  • Joined

  • Last visited

Posts posted by Veroly

  1. Omg scratch that i am the biggest idiot ever been banging my head against a wall for the past few days while coding other stuff and without much sleep and missed a key element.

     

    Incase people do the same thing as me rightclick your fsm files and edit as notepad ++, to change to kill a hacker.

     

    Little sleep + coding all night = stupid mistakes XD.

  2. That is very strange might have to keep looking into this for people using HFB servers as this is what mine looks like.

     

     

    People using HFB dont try this as it wont work correctly.

     

    //Clean groups
    {
        //diag_log ("CLEANUP: CHECKING GROUP WITH " + str(count units _x) + " UNITS");
        if (count units _x==0) then {
            deleteGroup _x;
            //diag_log ("CLEANUP: DELETING A GROUP");
        };
    } forEach allGroups;

    /*
    //Check for Ammobox
     {
        if(!(_x isKindOf "WeaponHolder")) then {
            diag_log ("CLEANUP: DELETING AN AMMOBOX " + (typeOf _x));
            deleteVehicle _x;
        };
     } forEach allMissionObjects "ReammoBox";
    */

    //Check for hackers
     {
          "heliCrash" addPublicVariableEventHandler {
            _list = nearestObjects [_this select 1, ["CraterLong"], 100];
            {deleteVehicle _x;} foreach _list;
        };
     } forEach allUnits;

    /*
    //Let's move this into the body removal sequence so uncontrolled flies are removed only if corpses are cleaned
    //Check Flies
    _isOK=-1;
    _dwUSOFC=0;
    {
        //_isOk = {!alive _x} count (nearestObjects [_x, ["CAManBase"], 2]);
        _isOk = {!alive _x} count (_x nearEntities [["CAManBase"], 2]);
        if (_isOk>-1) then {
            diag_log ("DW_DEBUG _isOK: " + str(_isOK) );
        };
        if ((_isOk>-1) AND (isOK<1)) then {
            //diag_log ("CLEANUP: DELETING A SOUND OF FLIES");
    _dwUSOFC=_dwUSOFC+1;
            deleteVehicle _x;
            diag_log ("CLEANUP: DELETED AN UNCONTROLLED SOUND OF FLIES:" + str(_dwUSOFC) );
        };
    } forEach allMissionObjects "Sound_Flies";
    */

    dayz_serverObjectMonitor = _safety;

×
×
  • Create New...