Jump to content

JustBullet

Member
  • Posts

    8
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by JustBullet

  1. AWCLOTHES BY JUSTBULLET

    ver. 1.0.3

    info: Can not change clothes near the place of storage and vehicles.

     

    Instructions:

    add in player_wearClothes.sqf:

    after:

    private ["_item","_onLadder","_hasclothesitem","_config","_text","_myModel","_itemNew","_currentSex","_newSex","_model","_playerNear"];

    this code:

    //////////////////////////////////////////////////
    /////////////* Author by JustBullet */////////////
    //             AWClothes ver. 1.0.3             //
    //////////////////////////////////////////////////
     
    _storage = [
    "TentStorage","TentStorageDomed","TentStorageDomed2","Wooden_shed_DZ",
    "WoodShack_DZ","StorageShed_DZ","WoodCrate_DZ","DebugBoxPlayer_DZ","OutHouse_DZ",
    "GunRack_DZ","DZ_Patrol_Pack_EP1","CZ_VestPouch_EP1","DZ_ALICE_Pack_EP1",
    "DZ_Assault_Pack_EP1","DZ_Backpack_EP1","DZ_British_ACU","DZ_CivilBackpack_EP1",
    "DZ_Czech_Vest_Puch","DZ_TK_Assault_Pack_EP1","DZ_TerminalPack_EP1",
    "DZ_GunBag_EP1","DZ_LargeGunBag_EP1"
    ];
    _AllVehicles = count nearestObjects [player, ["AllVehicles"], 10];
    {
        if ((typeOf _x in DZE_LockableStorage) || (typeOf _x in _storage)) exitWith {DZE_ActionInProgress = true;};
    } foreach (nearestObjects [player, ["All"], 10]);
    if ((DZE_ActionInProgress) || (_AllVehicles > 1)) exitWith {systemchat "You can not change clothes near the place of storage and vehicles."; DZE_ActionInProgress = false;};

    P.S. I can`t make the description because i am do not know English well enough. If you do not difficult to help me with this.

     

    ****************************************************

     

  2. BLOCK ESC MENU BY JUSTBULLET

    ver. 1.0.3

    This Anti-Duping system block duping with:
    1. inventory ->> 30 sec. timer ->> ESC = you can not go out 30 seconds. 
    2. inventory ->> 30 sec. timer ->> ((Low FPS ->> ESC) || (ESC --> Low FPS)) = locks the screen and you can not go out 30 seconds. If the FPS will be more, removes the lock screen.

     

    Instructions:

    add in dayz_spaceInterrupt.sqf:

    /* Anti-Duping by JustBullet */
    if (_dikCode in actionKeys "Gear") then {
        _nill = execvm "scripts\escmenu_atniduping.sqf";
    };

    above:

    // Disable ESC after death
    if (_dikCode == 0x01 && r_player_dead) then {
        _handled = true;
    };

    in escmenu_atniduping.sqf:

    /////////////////////////////////////////////////////
    //////////////* Author by JustBullet *///////////////
    ///////////* BLOCK ESC MENU ver. 1.0.3 */////////////
    /////////////////////////////////////////////////////
    
    if (isNil "JustBlock") then {
        private ["_timer","_fps"];
        JustBlock = true;
        disableSerialization;
        waituntil{!isnull (finddisplay 46)};
        _timer = 30;
        _trigger = false;
        while {_timer > 0} do {
            _timer = _timer - 0.1;
            if !(isnull (finddisplay 49)) then {
                findDisplay 106 closeDisplay 1;
                finddisplay 49 closeDisplay 2;
                _fps = round(diag_fps);
    
                switch true do {
                    case (!(_trigger) && (_fps <= 4)): {_trigger = true; disableUserInput true;};
                    case ((_trigger) && (_fps > 4)): {endLoadingScreen; _trigger = false; disableUserInput false;};
                };
    
                if (_trigger) then {startLoadingScreen ["Anti-dupe: Very low FPS, you are blocked...", "DayZ_loadingScreen"];}
                else {systemchat format["Anti-Dupe: You are can't exit of game 1% sec. after access at inventory.", round(_timer)];};
            };
            uiSleep 0.1;
        };
        if (_trigger) then {endLoadingScreen; disableUserInput false;};
        JustBlock = nil;
    };

    P.S. I can`t make the description because i am do not know English well enough. If you do not difficult to help me with this.

     

    ****************************************************

     

     

  3. WAI\missions\init.sqf
     
    // Mission functions
    call compile preprocessFileLineNumbers "\z\addons\dayz_server\WAI\compile\mission_functions.sqf";
    mission_init = compile preprocessFileLineNumbers "\z\addons\dayz_server\WAI\compile\mission_init.sqf";
    mission_winorfail = compile preprocessFileLineNumbers "\z\addons\dayz_server\WAI\compile\mission_winorfail.sqf";
    minefield = compile preprocessFileLineNumbers "\z\addons\dayz_server\WAI\compile\minefield.sqf";
     
    mb:
    // Mission functions
    call = compile preprocessFileLineNumbers "\z\addons\dayz_server\WAI\compile\mission_functions.sqf";
    no ?
×
×
  • Create New...