Jump to content
  • 0

Overpoch custom loadouts


CommanderWolf

Question

6 answers to this question

Recommended Posts

  • 0

Hello CommanderWolf,

This is just one for me but can be replicated into many.

 

loadout.sqf

//________________________________start_loadout_______________________________

private ["_isSet","_puid"];
 
// Get player uid.
if (!isDedicated) then {
    waitUntil {(getPlayerUID player) != ""};
    _puid = getPlayerUID player;
    //diag_log ("Player UID retrieved.");
}
else {
    // not player so set to empty.
    _puid = "";
};
_isSet = false;
 
// Stench
if ((_puid == "666666666")) then {
    DefaultMagazines = ["ItemBandage","ItemBandage","ItemBandage","ItemBandage","17Rnd_9x19_glock17","17Rnd_9x19_glock17","17Rnd_9x19_glock17","17Rnd_9x19_glock17","ItemAntibiotic","ItemMorphine","ItemPainkiller","ItemBloodbag","ItemWaterbottleBoiled","ItemWaterbottleBoiled","FoodSteakCooked","FoodSteakCooked","20Rnd_762x51_DMR","20Rnd_762x51_DMR","20Rnd_762x51_DMR","20Rnd_762x51_DMR","Skin_Soldier_TL_PMC_DZ"];
    DefaultWeapons = ["glock17_EP1","vil_M110sd","Binocular_Vector","NVGoggles","ItemMap","ItemMatchbox","Itemtoolbox","ItemCompass","ItemGPS","ItemWatch","ItemKnife","ItemCrowbar","Itemetool","ItemHatchet"];
DefaultBackpack = "DZ_LargeGunBag_EP1";
DefaultBackpackWeapon = "RH_m1stacog";
DefaultBackpackMagazines = ["ItemSodaPepsi","FoodCanPasta"];
    _isSet = true;
};
 
if (!(_isSet)) then {
    DefaultMagazines = ["ItemBandage","ItemBandage","ItemPainkiller","17Rnd_9x19_glock17","17Rnd_9x19_glock17","ItemMorphine","ItemWaterbottleBoiled","FoodSteakCooked"];
    DefaultWeapons = ["glock17_EP1","ItemWatch","ItemCompass","ItemMap","Itemtoolbox"];
    DefaultBackpack = "DZ_TerminalPack_EP1";
    DefaultBackpackWeapon = "";
};
//_______________________________finish _loadout____________________________
 
This method does three things:
 
1. Sets the loadout for selected player.
2. Sets the default loadout for any other players.
3. Sets gender selection as a requirement.
 
Call it from your mission/init.sqf in this fashion:
 
//Load in compiled functions
call compile preprocessFileLineNumbers "file_path\loadout.sqf";
 
Hope this helps.
STENCH 
Link to comment
Share on other sites

  • 0

Copy and paste into a notepad from stench' post above all the content from here

 

//________________________________start_loadout_______________________________

to

//_______________________________finish _loadout____________________________

 

rename the notepad to loadout.sqf  make sure you have show file extensions enabled in windows ( http://lmgtfy.com/?q=show+file+extensions )

upload this to your mission folder here is the path in vilayer to follow to your mission folder (  14j3jg1.png  )

 

at the bottome of your init.sqf in the same folder paste this

 

//Load in compiled functions
call compile preprocessFileLineNumbers "loadout.sqf";
Link to comment
Share on other sites

  • 0

 

works fine for me, 90% of everyone else whos used it

 

with 1.0.5.1 they changed one of the loadout varibles:

 

[CHANGED] Replaced variable DefaultBackpackWeapon = ""; with DefaultBackpackItems = [""]; which accepts both weapons and magazines. @icomrade

 

if thats in your code it could be bugging your startup, also over taxed server like overpoch servers will sometimes ignore this script during startup.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...