Jump to content

Mig

Member
  • Posts

    260
  • Joined

  • Last visited

  • Days Won

    20

Posts posted by Mig

  1. 6 hours ago, voks32 said:

    I try to run a clean server and I get some white walls in the game almost on the entire map. They seem to divide the map into huge rooms. However, they disappear when viewed in an arc direction. Please tell me what am I doing wrong? Sorry for my english, I'm through a translator.

    To ulock map and delete "artefacts" on map in init.sqf, on buttom add this:

    {_x animate ["ani_door1",1];}count(nearestObjects [getMarkerPos "center", ["Land_tav_HouseBlock_D1_ex2"],18000]);

     

  2. 10 hours ago, poppen1234 said:

    how would i incorporate that. my file for traders are as such


     

    so would it be like

    ["GUE_Woodlander2", setPosATL  [23371.3,5283.87,25],50.2731],

    You need to modify the file: server_spawnTraders.sqf
    https://github.com/EpochModTeam/DayZ-Epoch/blob/master/SQF/dayz_server/compile/server_spawnTraders.sqf
    

     

    it should look like this:
    private "_trader";
    {
    	_trader = createAgent [_x select 0,_x select 1,[],0,"CAN_COLLIDE"]; 
    	{_trader removeMagazine _x;} count magazines _trader;
    	removeAllItems _trader;
    	removeAllWeapons _trader;
    	removeBackpack _trader;
    	_trader switchMove "";
    	_trader setDir (_x select 2);
    	_trader setVehicleInit "this disableAI 'ANIM'; this disableAI 'AUTOTARGET'; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0; this allowDamage false;";
    	_trader setUnitAbility 0.6;
    	_trader disableAI "ANIM";
    	_trader disableAI "AUTOTARGET";
    	_trader disableAI "FSM";
    	_trader disableAI "MOVE";
    	_trader disableAI "TARGET";
    	_trader setBehaviour "CARELESS";
    	_trader setcaptive true;
    	_trader forceSpeed 0;
    	_trader allowDamage false;
    	_trader enableSimulation false;
      
        _trader setPosATL _x select 1;
      
    } count _this;
    
    processInitCommands;

     

  3. 5 hours ago, poppen1234 said:

    So im running an ORI/epoch server. trying to get my trade npcs to spawn at the original ORI location.

    No matter where i set their height. they will only spawn on the ground level. almost as if they are loading in before the map models are. is there a way to change the load order of these?

    Hello,

    Try with setPosATL

     

  4. On 6/5/2021 at 8:05 AM, higgibaby said:

    Hi @Mig!

    Wow. That is a lot of code; I would never have made it. Thank you very much!  Now, my tiny server is going to be a lot of fun.

    Weekend is save! :smile:

    EDIT: I've done it into compiles. But the problem persists.

    Here is my custom compiles:

     

    did you change the call to your compile.sqf in the init file?
  5. private["_canSearch","_loot"];
    
    _canSearch = count nearestObjects [player, ["LADAWreck","hiluxWreck","datsun01Wreck","datsun02Wreck","SKODAWreck","UAZWreck","UralWreck","Land_Shed_W02","Land_Shed_M03"], 4] > 0;
    
    _loot=["ItemSodaPepsi",
    "ItemBandage",
    "FishCookedTrout",
    "FoodBeefCooked",
    "ItemSodaMdew",
    "Attachment_Kobra",
    "ItemBriefcase100oz",
    "ItemGoldBar",
    "ItemKiloHemp",
    "ItemRuby",
    "PartGeneric",
    "PartWheel",
    "PartGlass",
    "PartEngine",
    "ItemAntibiotic",
    "ItemFuelBarrel",
    "ItemFuelcan",
    "ItemHotwireKit",
    "Skin_CZ_Soldier_Sniper_EP1_DZ"] call BIS_fnc_selectRandom;
    
    
    if (_canSearch) then {
        sleep 2;
        systemChat ("Searching...");
        sleep 2; 
        systemChat ("Searching...");
    	if (20 > random 100) then {  // 20% chance 
            player playActionNow "PutDown";
            player addMagazine _loot;
            titleText ["Sweet, I found something!!!", "PLAIN DOWN", 1];    
    	}else{
    	    titleText ["Nothing...", "PLAIN DOWN", 1]; 
    	};
    };

     

  6. 10 hours ago, Vladick said:

    @Mig Hey there, I installed this script and it works great. Thanks again! One issue I am having though is that on Github it says you can't lift locked vehicles but I have tested it and am able to lift locked vehicles, including ones that are not mine. I checked the scripts for a place to switch this function on or off and could not find one. Can you, or anyone, please tell me how I can make it so that helis cannot lift locked vehicles?

    Thanks!

    Vladick

    try this 

    https://github.com/MigSDev5/BTC_Logistic_Modified_Epoch_Version

  7. 10 hours ago, shay2020 said:

    Hi Mig, thanks for the reply. Tried and still doesn't work. Here's how it goes:-

    empty all items from inv into backpack

    RC on m240 and click build dshkm, tells me i need 3 poles, good

    add poles, RC on m240, tells me i need 1 scrap, good

    add scrap, RC on m240 tells me i need 4 mags, good

    add 4 mags Rc on m240 and nothing happens, hence the slight confusion right now

    Thanks again.

     

    Change this

    _hasitems = [["ItemPole",3], "PartGeneric", ["100Rnd_762x51_M240",4]] call player_checkItems;
    
     
    
    if(_hasitems} then {
    
         
          execVM "dshkm\DSHkM_Gue.sqf";         
     
            
        };

    To this :

    _hasitems = [["ItemPole",3], "PartGeneric", ["100Rnd_762x51_M240",4]] call player_checkItems;
    
     
    
    if(_hasitems) then {
    
         
          execVM "dshkm\DSHkM_Gue.sqf";         
     
            
        };

    and try.

  8. 15 hours ago, Reaper5150 said:

    I'm needing help with this please! I'm tired of players using dumb names like Admin or Owner joining and would like to kick them back to lobby until they change it. Here it what I have come up with but can't get it to work?

    waitUntil { alive player };
    sleep 10;
    systemChat(format["CHECKING PLAYER NAME..."]);

    if(name player in [""] )then{  //Badnames would go here
    systemChat(format["YOUR PLAYER NAME IS NOT ALLOWED HERE, PLEASE CHANGE IT AND REJOIN!"]);
    sleep 5;
    systemChat(format["RETURNING YOU TO THE LOBBY. DO NOT TRY TO REJOIN WITH THE SAME NAME OR YOU WILL BE BANNED!!!"]);
    sleep 5;
    for "_badnames" do {
            titleText [format[localize "str_return_lobby", _badnames], "PLAIN DOWN", 1];
            uiSleep 1;
        };
    };
    //disableUserInput true;

     

    Any help would be great! Feel free to use also :)

    waitUntil { alive player };
    sleep 15;
    
    systemChat "CHECKING PLAYER NAME...";
    
    if(name player in ["Admin","Owner"])then{  //Badnames would go here
        systemChat "YOUR PLAYER NAME IS NOT ALLOWED HERE, PLEASE CHANGE IT AND REJOIN!";
        sleep 5;
        systemChat "RETURNING YOU TO THE LOBBY. DO NOT TRY TO REJOIN WITH THE SAME NAME OR YOU WILL BE BANNED!!!";
        sleep 5;
    	endMission "END1";
        forceEnd;
    };

     

  9. 14 hours ago, Reaper5150 said:

    Nice work! Is there anyway to give players coins via the right click on ItemRadio?

    ["ItemRadio","Give Coins","execVM 'Give_Coins.sqf';","true"],

     

    private ["_coins","_player_coins"];
    
    _coins = 500;
    
    _player_coins = player getVariable[Z_MoneyVariable,0];
    player setVariable[Z_MoneyVariable,(_player_coins + _coins),true];
    
    systemChat format ["You received %1 coins.",_coins];
    
    call player_forceSave;

     

×
×
  • Create New...