GolovaRaoul

Respect Loadout adds no Items, only Uniform

3 posts in this topic

Hello,

I'm trying to get a script to work which should add gear to the bambi player the more respect he/she has.

Problem, the script does not add items/guns. Only headgear and Uniform.

Spoiler

private["_sessionID","_parameters","_requestingPlayer","_spawnLocationMarkerName","_playerUID","_accountData","_bambiPlayer","_cargoType"];
_sessionID = _this select 0;
_parameters = _this select 1;
_requestingPlayer = _sessionID call ExileServer_system_session_getPlayerObject;
_spawnLocationMarkerName = _parameters select 0;
_playerUID = getPlayerUID _requestingPlayer;
_accountData = format["getAccountStats:%1", _playerUID] call ExileServer_system_database_query_selectSingle;
_group = createGroup independent;
_bambiPlayer = _group createUnit ["Exile_Unit_Player", [0,0,0], [], 0, "CAN_COLLIDE"];
_bambiPlayer setVariable ["ExileIsBambi", false];

_RespectLoadouts = (_accountData select 1);

switch (true) do 
{
   case (_RespectLoadouts > 0 && _RespectLoadouts < 2500):
     {
     _bambiPlayer forceAddUniform "U_C_Poloshirt_burgundy";
    };

  case (_RespectLoadouts > 2499 && _RespectLoadouts < 5000):
     {
     _bambiPlayer forceAddUniform "U_C_Poloshirt_burgundy";
     _bambiPlayer addItem "Exile_Item_Bandage";
     _bambiPlayer addHeadgear "H_Booniehat_oli";
    };

  case (_RespectLoadouts > 4999 && _RespectLoadouts < 10000):
    {
     _bambiPlayer forceAddUniform "U_C_Poloshirt_burgundy";
     _bambiPlayer addVest "V_BandollierB_oli";
     _bambiPlayer addItem "Exile_Item_EnergyDrink";
     _bambiPlayer addItem "Exile_Item_Bandage";
    };
 
  case (_RespectLoadouts > 9999 && _RespectLoadouts < 15000):
    {
     _bambiPlayer forceAddUniform "U_C_Poor_1";
     _bambiPlayer addVest "V_Chestrig_blk";
     _bambiPlayer addItem "Exile_Item_Matches";
     _bambiPlayer addItem "Exile_Item_EnergyDrink";
     _bambiPlayer addItem "Exile_Item_Noodles";
     _bambiPlayer addItem "Exile_Item_Vishpirin";
    };
   
  case (_RespectLoadouts > 14999 && _RespectLoadouts < 20000):
   {
    clearWeaponCargo _bambiPlayer;
    clearMagazineCargo _bambiPlayer;
    _bambiPlayer forceAddUniform "U_C_Poloshirt_burgundy";
    _bambiPlayer addHeadgear "H_Cap_blk";
    _bambiPlayer addItem "Exile_Item_Matches";
    _bambiPlayer addItem "Exile_Item_EnergyDrink";
    _bambiPlayer addItem "Exile_Item_Noodles";
    _bambiPlayer addItem "Exile_Item_Vishpirin";
    _bambiPlayer addWeaponGlobal "Exile_Weapon_Taurus";
    _bambiPlayer addItem "Exile_Magazine_6Rnd_45ACP";
   };
 
  case (_RespectLoadouts > 19999 && _RespectLoadouts < 39999):
    {
     _bambiPlayer forceAddUniform "U_B_CTRG_3";
     _bambiPlayer addBackpack "B_HuntingBackpack";
     _bambiPlayer addHeadgear "CUP_H_PMC_Cap_PRR_Grey";
     _bambiPlayer addVest "V_Rangemaster_belt";
     _bambiPlayer addItem "Exile_Item_Matches";
     _bambiPlayer addItem "Exile_Item_EnergyDrink";
     _bambiPlayer addItem "Exile_Item_Noodles";
     _bambiPlayer addItem "Exile_Item_Vishpirin";
     _bambiPlayer addItem "Exile_Item_Vishpirin";
    };

  case (_RespectLoadouts > 40000 && _RespectLoadouts < 49999):
    {
     _bambiPlayer forceAddUniform "U_O_CombatUniform_oucamo";
     _bambiPlayer addBackpack "B_HuntingBackpack";
     _bambiPlayer addHeadgear "CUP_H_PMC_Cap_PRR_Grey";
     _bambiPlayer addVest "V_Rangemaster_belt";
     _bambiPlayer addItem "Exile_Item_Matches";
     _bambiPlayer addItem "Exile_Item_EnergyDrink";
     _bambiPlayer addItem "Exile_Item_Noodles";
     _bambiPlayer addItem "Exile_Item_Vishpirin";
     _bambiPlayer addItem "Exile_Item_Vishpirin";
    };

  case (_RespectLoadouts > 50000 && _RespectLoadouts < 69999):
    {
     _bambiPlayer forceAddUniform "U_BG_Guerilla3_1";
     _bambiPlayer addBackpack "B_mas_AssaultPack_mul";
     _bambiPlayer addHeadgear "CUP_H_PMC_Cap_PRR_Grey";
     _bambiPlayer addVest "V_TacVest_blk";
     _bambiPlayer addItem "Exile_Item_Matches";
     _bambiPlayer addItem "Exile_Item_EnergyDrink";
     _bambiPlayer addItem "Exile_Item_Noodles";
     _bambiPlayer addItem "Exile_Item_Vishpirin";
     _bambiPlayer addItem "Exile_Item_Vishpirin";
    };

   case (_RespectLoadouts > 70000 && _RespectLoadouts < 89999):
    {
     _bambiPlayer forceAddUniform "Exile_Uniform_Woodland";
     _bambiPlayer addBackpack "B_mas_AssaultPack_mul";
     _bambiPlayer addHeadgear "CUP_H_PMC_Cap_PRR_Grey";
     _bambiPlayer addVest "V_TacVest_blk";
     _bambiPlayer addItem "Exile_Item_Matches";
     _bambiPlayer addItem "Exile_Item_EnergyDrink";
     _bambiPlayer addItem "Exile_Item_Noodles";
     _bambiPlayer addItem "Exile_Item_Vishpirin";
     _bambiPlayer addItem "Exile_Item_Vishpirin";
    };

   case (_RespectLoadouts > 90000 && _RespectLoadouts < 99999):
    {
     _bambiPlayer forceAddUniform "U_BG_Guerilla3_1";
     _bambiPlayer addBackpack "B_mas_AssaultPack_mul";
     _bambiPlayer addHeadgear "CUP_H_PMC_Cap_PRR_Grey";
     _bambiPlayer addVest "V_TacVest_blk";
     _bambiPlayer addItem "Exile_Item_Matches";
     _bambiPlayer addItem "Exile_Item_EnergyDrink";
     _bambiPlayer addItem "Exile_Item_Noodles";
     _bambiPlayer addItem "Exile_Item_InstaDoc";
     _bambiPlayer addItem "Exile_Item_Vishpirin";
    };
   
   case (_RespectLoadouts > 100000):
    {
     _bambiPlayer forceAddUniform "U_BG_Guerilla3_1";
     _bambiPlayer addBackpack "B_mas_AssaultPack_mul";
     _bambiPlayer addHeadgear "CUP_H_PMC_Cap_PRR_Grey";
     _bambiPlayer addVest "V_TacVest_blk";
     _bambiPlayer addItem "Exile_Item_Matches";
     _bambiPlayer addItem "Exile_Item_EnergyDrink";
     _bambiPlayer addItem "Exile_Item_Noodles";
        _bambiPlayer addItem "Exile_Item_EnergyDrink";
     _bambiPlayer addItem "Exile_Item_Noodles";
     _bambiPlayer addItem "Exile_Item_InstaDoc";
        _bambiPlayer addItem "Exile_Item_InstaDoc";
     _bambiPlayer addItem "Exile_Item_Vishpirin";
    };
   
   default
     {   
     _bambiPlayer forceAddUniform "Exile_Uniform_BambiOverall";
     }; 
};


{
    _cargoType = _x call ExileClient_util_cargo_getType;
    switch (_cargoType) do
    {
        case 1:     { _bambiPlayer addItem _x; };
        case 2:     { _bambiPlayer addWeaponGlobal _x; };
        case 3:     { _bambiPlayer addBackpackGlobal _x; };
        case 4:        { _bambiPlayer linkItem _x; };
        default                     { _bambiPlayer addItem _x; };
    };
}
forEach getArray(configFile >> "CfgSettings" >> "BambiSettings" >> "loadOut");
[_sessionID, _requestingPlayer, _spawnLocationMarkerName, _bambiPlayer, _accountData] call ExileServer_object_player_createBambi;

Can anyone tell me what's wrong here? Looks fine to me...

Share this post


Link to post
Share on other sites

Ok it should be _bambiplayer add item to uniform or add item to vest"then item name";

Share this post


Link to post
Share on other sites

See if this helps you. You can modify the scripts for respect easily enough:

 

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.