Diddl3s

UID Based Loadouts

12 posts in this topic

Hello,

Is there any possibility to have UID based loadouts, such as those that are available in DayZ Mod / Epoch ?

Has anyone come across a script for this?

 

Thanks you

(My apologies if I've missed a thread somewhere)

1 person likes this

Share this post


Link to post
Share on other sites
Advertisement

By UID loadout do you mean you give a list of IDs to spawn in with certain gear, if so then yes this is easy to do and i can help you with it 

Share this post


Link to post
Share on other sites

Here You Go Guy's :D

uiSleep 2;
if (ExileClientPlayerMoney > 1000) then {
	if ((getPlayerUID player) in ["11111111111111","222222222222","333333333"]) then {
        uiSleep 1;
		hint "Gear Supplied"; 
		clearWeaponCargo player;
			clearMagazineCargo player;
				removeBackpackGlobal player;
			player forceAddUniform "U_O_OfficerUniform_ocamo";
		player addBackpack "B_Parachute";
			player addWeapon "hgun_Pistol_heavy_01_F";
				player addMagazine "11Rnd_45ACP_Mag";
					player addItemToVest "11Rnd_45ACP_Mag"
					player addItemToVest "11Rnd_45ACP_Mag"
		player addWeapon "ItemRadio";
		player addWeapon "ItemGPS";
		player addWeapon 'Exile_Item_XM8';
		player addWeapon "ItemCompass";
		player addWeapon "Rangefinder";
		
		/*
		player addItemToBackpack "Exile_Item_BBQSandwich_Cooked";
		player addItemToBackpack "Exile_Item_Energydrink";
		player addItemToBackpack "Exile_Item_InstaDoc";
		player addItemToBackpack "hgun_Rook40_F";
		player addItemToBackpack "U_O_OfficerUniform_ocamo";
		player addItemToVest "16Rnd_9x21_Mag";
		player addVest "V_TacVest_blk_POLICE";
		*/
	}eles{ //This is for Normal Player's That Arnt in the UID Admin List
				player addWeapon "hgun_Pistol_heavy_01_F";
				player addMagazine "11Rnd_45ACP_Mag";
};

 

Share this post


Link to post
Share on other sites

Now, what would be nice if you had

 

If player UID = "this" and respect level = > x then load out 1, If player UID = "this" and respect level = > x then load out 2 and so forth.  

Share this post


Link to post
Share on other sites

This is probably not the best way and its also untested but something like this maybe?

Spoiler

_player = player;
_playerList = ["11111111111111","222222222222","333333333"];
_curRespect = _player getVariable ["ExileScore", 0];

switch (true) do //Add more if needed
case ((getPlayerUID _player) in _playerList && _curRespect > 1000): { _gear = 1 };
case ((getPlayerUID _player) in _playerList && _curRespect > 2000): { _gear = 2 };
//case ((getPlayerUID _player) in _playerList && _curRespect > 3000): { _gear = 3 };
//case ((getPlayerUID _player) in _playerList && _curRespect > 4000): { _gear = 4 };


switch (_gear) do //Add more if needed
{
    case 1:
    {
        _player addBackpack "B_AssaultPack_rgr";
        if (["_diver_", typeOf _player] call fn_findString != -1) then {} else //Condition, if player is diver you dont want to remove the rebreader and goggles
        {
            _player addVest "V_BandollierB_cbr";
            _player addGoggles ""; //Glasses or masks. Overwrites, add as item if you want it a an extra item
        };
        //Slotted Items
        _player addWeapon "Binocular"; //Binocular "Rangefinder", "Binocular"
        _player linkItem "NVGoggles"; //Nightvision, "NVGoggles"
        _player linkItem ""; //GPS, "ItemGPS"
        _player addHeadgear ""; //Hat or helmet. Overwrites, add as item if you want it a an extra item
        //Handgun
        _player addMagazines ["16Rnd_9x21_Mag", 4];
        _player addWeapon "hgun_Rook40_F";
        _player addhandGunItem "";
        _player addhandGunItem "";
        //Primary Weapon
        _player addMagazines ["", 0];
        _player addWeapon "";
        _player addPrimaryWeaponItem "";
        _player addPrimaryWeaponItem "";
        _player addPrimaryWeaponItem "";
        //Secondary Weapon
        _player addMagazines ["", 0];
        _player addWeapon "";
        //Grenades
        _player addMagazines ["MiniGrenade", 1];
        //Select Active Weapon
        _player selectWeapon "hgun_Rook40_F";
        //Misc Items
        _player addItem "FirstAidKit"; //Add to inventory if there is space
        _player addItem ""; //Add to inventory if there is space
        _player addItem ""; //Add to inventory if there is space
    };
    case 2:
    {
        _player addBackpack "B_FieldPack_khk";
        if (["_diver_", typeOf _player] call fn_findString != -1) then {} else  //Condition, if player is diver you dont want to remove the rebreader and googles
        {
            _player addVest "V_TacVest_brn";
            _player addGoggles ""; //Glasses or masks. Overwrites, add as item if you want it a an extra item
        };
        //Slotted Items
        _player addWeapon "Binocular"; //Binocular "Rangefinder", "Binocular"
        _player linkItem "NVGoggles"; //Nightvision, "NVGoggles"
        _player linkItem ""; //GPS, "ItemGPS"
        _player addHeadgear ""; //Hat or helmet. Overwrites, add as item if you want it a an extra item
        //Handgun
        _player addMagazines ["9Rnd_45ACP_Mag", 5];
        _player addWeapon "hgun_ACPC2_F";
        _player addhandGunItem "";
        _player addhandGunItem "";
        //Primary Weapon
        _player addMagazines ["", 0];
        _player addWeapon "";
        _player addPrimaryWeaponItem "";
        _player addPrimaryWeaponItem "";
        _player addPrimaryWeaponItem "";
        //Secondary Weapon
        _player addMagazines ["", 0];
        _player addWeapon "";
        //Grenades
        _player addMagazines ["MiniGrenade", 1];
        //Select Active Weapon
        _player selectWeapon "hgun_ACPC2_F";
        //Misc Items
        _player addItem "FirstAidKit"; //Add to inventory if there is space
        _player addItem "FirstAidKit"; //Add to inventory if there is space
        _player addItem ""; //Add to inventory if there is space
    };
    default 
    {
        _player addBackpack "B_AssaultPack_rgr";
        _player addMagazines ["16Rnd_9x21_Mag", 4];
        _player addWeapon "hgun_P07_F";
        _player addMagazines ["Chemlight_yellow", 4];
        _player addItem "FirstAidKit";
        _player selectWeapon "hgun_P07_F";
    };    
};

This is maybe not necessary anymore but i add magazines before i add the weapon, this way (atleast some time ago) the weapon got loaded right away (so you don't pull out an empty gun in that knife fight).

 

Just found this, which seem to be a nice way of doing it, and you should be able to frankenstein this and that a bit to get a desired result.

https://github.com/Jenartor/exile_uid-loadout

Edited by Cael817
Found https://github.com/Jenartor/exile_uid-loadout
1 person likes this

Share this post


Link to post
Share on other sites
On 12/24/2015 at 2:02 AM, ☢☠†✪Recon✪†☠☢ said:

Here You Go Guy's :D


uiSleep 2;
if (ExileClientPlayerMoney > 1000) then {
	if ((getPlayerUID player) in ["11111111111111","222222222222","333333333"]) then {
        uiSleep 1;
		hint "Gear Supplied"; 
		clearWeaponCargo player;
			clearMagazineCargo player;
				removeBackpackGlobal player;
			player forceAddUniform "U_O_OfficerUniform_ocamo";
		player addBackpack "B_Parachute";
			player addWeapon "hgun_Pistol_heavy_01_F";
				player addMagazine "11Rnd_45ACP_Mag";
					player addItemToVest "11Rnd_45ACP_Mag"
					player addItemToVest "11Rnd_45ACP_Mag"
		player addWeapon "ItemRadio";
		player addWeapon "ItemGPS";
		player addWeapon 'Exile_Item_XM8';
		player addWeapon "ItemCompass";
		player addWeapon "Rangefinder";
		
		/*
		player addItemToBackpack "Exile_Item_BBQSandwich_Cooked";
		player addItemToBackpack "Exile_Item_Energydrink";
		player addItemToBackpack "Exile_Item_InstaDoc";
		player addItemToBackpack "hgun_Rook40_F";
		player addItemToBackpack "U_O_OfficerUniform_ocamo";
		player addItemToVest "16Rnd_9x21_Mag";
		player addVest "V_TacVest_blk_POLICE";
		*/
	}eles{ //This is for Normal Player's That Arnt in the UID Admin List
				player addWeapon "hgun_Pistol_heavy_01_F";
				player addMagazine "11Rnd_45ACP_Mag";
};

 

Sorry to revive this, but where are you putting this, in the mission or the server PBO?

Share this post


Link to post
Share on other sites
Advertisement

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

  • Recently Browsing   0 members

    No registered users viewing this page.