Custom Start Gear

Discussion in 'Support' started by MikeCandys, Feb 3, 2017.

  1. MikeCandys

    MikeCandys Well-Known Member

    Joined:
    Mar 14, 2013
    Messages:
    124
    Likes Received:
    0
    How to change the default vanilla starter pack to a custom start gear with for example a map.
     
  2. clifdayz

    clifdayz Well-Known Member

    Joined:
    Jul 28, 2015
    Messages:
    137
    Likes Received:
    12
    the easiest place to change it for everyone is server_playerLogin.sqf in the server files.
    look for these lines
    Code:
        _config = (configFile >> "CfgSurvival" >> "Inventory" >> "Default");
        _mags = getArray (_config >> "magazines");
        _wpns = getArray (_config >> "weapons");
        _bcpk = getText (_config >> "backpack");
    
     
  3. MikeCandys

    MikeCandys Well-Known Member

    Joined:
    Mar 14, 2013
    Messages:
    124
    Likes Received:
    0
    Not sure if this is the best way but i changed it like this:
    Code:
    if (isNil "sm_done") exitWith { diag_log ("Login cancelled, server is not ready. " + str(_playerObj)); };
    
    _inventory = [["ItemMap","ItemToolbox","MakarovSD_DZN"],["ItemPainkiller","ItemBandage","ItemBandage","ItemMorphine","ItemAntibiotic","ItemHeatPack","ItemHeatPack","ItemHeatPack","8Rnd_9x18_Makarov","8Rnd_9x18_Makarov","8Rnd_9x18_Makarov"]];
    _backpack = ["DZ_Czech_Vest_Puch",[[],[]],[[],[]]];
    _survival = [0,0,0];
    _model = "";
    And it works though.
     
  4. Zeehond23

    Zeehond23 Valued Member!

    Joined:
    Mar 7, 2013
    Messages:
    589
    Likes Received:
    52
    does it work for every new log in and after death? Had the problem it worked with new log ins but after death players would spawn without any gear
     

Share This Page