GolovaRaoul

Custom Respect Loadouts Preconfigured

16 posts in this topic

Hello,

This is a very simple script which gives you a specific loadout based on the amount of respect you have. I think this script allready has been released on this forums but I thought I upload my version of it.
This modification is based of this script, all credits to @rentiger1112!

How to install?

  1. Head into your config.cpp clientside (Exile.Chernarus.PBO for example)
  2. Search (Ctrl + F) for CfgExileCustomCode
  3. Paste the following code inside: ExileClient_object_player_bambiStateBegin = "custom\loadout\ExileClient_object_player_bambiStateBegin.sqf"; Feel free to change the path (bold text).
  4. Create a new file called ExileClient_object_player_bambiStateBegin.sqf in the path you defined in step 3
  5. Place the following content in that file:
    Spoiler

    /**
     * ExileServer_object_player_createBambi
     *
     * Exile Mod
     * exile.majormittens.co.uk
     * © 2015 Exile Mod Team
     *
     * This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License. 
     * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
     */
     
    private["_sessionID","_requestingPlayer","_spawnLocationMarkerName","_thugToCheck","_HaloSpawnCheck","_bambiPlayer","_accountData","_direction","_position","_spawnAreaPosition","_spawnAreaRadius","_clanID","_clanData","_clanGroup","_player","_devFriendlyMode","_devs","_parachuteNetID","_spawnType","_parachuteObject"];
    _sessionID = _this select 0;
    _requestingPlayer = _this select 1;
    _spawnLocationMarkerName = _this select 2;
    _bambiPlayer = _this select 3;
    _accountData = _this select 4;
    _direction = random 360;
    _Respect = (_accountData select 0);
    if ((count ExileSpawnZoneMarkerPositions) isEqualTo 0) then 
    {
        _position = call ExileClient_util_world_findCoastPosition;
        if ((toLower worldName) isEqualTo "namalsk") then 
        {
            while {(_position distance2D [76.4239, 107.141, 0]) < 100} do 
            {
                _position = call ExileClient_util_world_findCoastPosition;
            };
        };
    }
    else 
    {
        _spawnAreaPosition = getMarkerPos _spawnLocationMarkerName;
        _spawnAreaRadius = getNumber(configFile >> "CfgSettings" >> "BambiSettings" >> "spawnZoneRadius");
        _position = [_spawnAreaPosition, _spawnAreaRadius] call ExileClient_util_math_getRandomPositionInCircle;
        while {surfaceIsWater _position} do 
        {
            _position = [_spawnAreaPosition, _spawnAreaRadius] call ExileClient_util_math_getRandomPositionInCircle;
        };
    };

    _name = name _requestingPlayer;
    _clanID = (_accountData select 3);
    if !((typeName _clanID) isEqualTo "SCALAR") then
    {
        _clanID = -1;
        _clanData = [];
    }
    else
    {
        _clanData = missionNamespace getVariable [format ["ExileServer_clan_%1",_clanID],[]];
        if(isNull (_clanData select 5))then
        {
            _clanGroup = createGroup independent;
            _clanData set [5,_clanGroup];
            _clanGroup setGroupIdGlobal [_clanData select 0];
            missionNameSpace setVariable [format ["ExileServer_clan_%1",_clanID],_clanData];
        }
        else
        {
            _clanGroup = (_clanData select 5);
        };
        [_player] joinSilent _clanGroup;
    };
    _bambiPlayer setPosATL [_position select 0,_position select 1,0];
    _bambiPlayer disableAI "FSM";
    _bambiPlayer disableAI "MOVE";
    _bambiPlayer disableAI "AUTOTARGET";
    _bambiPlayer disableAI "TARGET";
    _bambiPlayer disableAI "CHECKVISIBLE";
    _bambiPlayer setDir _direction;
    _bambiPlayer setName _name;
    _bambiPlayer setVariable ["ExileMoney", 0, true]; 
    _bambiPlayer setVariable ["ExileScore", (_accountData select 0)];
    _bambiPlayer setVariable ["ExileKills", (_accountData select 1)];
    _bambiPlayer setVariable ["ExileDeaths", (_accountData select 2)];
    _bambiPlayer setVariable ["ExileClanID", _clanID];
    _bambiPlayer setVariable ["ExileClanData", _clanData];
    _bambiPlayer setVariable ["ExileHunger", 100];
    _bambiPlayer setVariable ["ExileThirst", 100];
    _bambiPlayer setVariable ["ExileTemperature", 37];
    _bambiPlayer setVariable ["ExileWetness", 0];
    _bambiPlayer setVariable ["ExileAlcohol", 0]; 
    _bambiPlayer setVariable ["ExileName", _name]; 
    _bambiPlayer setVariable ["ExileOwnerUID", getPlayerUID _requestingPlayer]; 
    _bambiPlayer setVariable ["ExileIsBambi", true];
    _bambiPlayer setVariable ["ExileXM8IsOnline", false, true];
    _bambiPlayer setVariable ["ExileLocker", (_accountData select 4), true];
    _devFriendlyMode = getNumber (configFile >> "CfgSettings" >> "ServerSettings" >> "devFriendyMode");
    if (_devFriendlyMode isEqualTo 1) then 
    {
        _devs = getArray (configFile >> "CfgSettings" >> "ServerSettings" >> "devs");
        {
            if ((getPlayerUID _requestingPlayer) isEqualTo (_x select 0))exitWith 
            {
                if((name _requestingPlayer) isEqualTo (_x select 1))then
                {
                    _bambiPlayer setVariable ["ExileMoney", 500000, true];
                    _bambiPlayer setVariable ["ExileScore", 100000];
                };
            };
        }
        forEach _devs;
    };
    _parachuteNetID = "";

    _thugToCheck = _sessionID call ExileServer_system_session_getPlayerObject;
    _HaloSpawnCheck = _thugToCheck getVariable ["playerWantsHaloSpawn", 0];

    if (_HaloSpawnCheck isEqualTo 1) then
    {
        _position set [2, getNumber(configFile >> "CfgSettings" >> "BambiSettings" >> "parachuteDropHeight")]; 
        if ((getNumber(configFile >> "CfgSettings" >> "BambiSettings" >> "haloJump")) isEqualTo 1) then
        {
            _bambiPlayer addBackpackGlobal "B_Parachute";
            _bambiPlayer setPosATL _position;
            _spawnType = 2;
        }
        else 
        {
            _parachuteObject = createVehicle ["Steerable_Parachute_F", _position, [], 0, "CAN_COLLIDE"];
            _parachuteObject setDir _direction;
            _parachuteObject setPosATL _position;
            _parachuteObject enableSimulationGlobal true;
            _parachuteNetID = netId _parachuteObject;
            _spawnType = 1;
        };
    }
    else
    {
        _spawnType = 0;
    };

    switch (true) do 
    {
       case (_Respect > 0 && _Respect < 2500):
       //Bambi
         {
         _bambiPlayer forceAddUniform "Exile_Uniform_BambiOverall";
         _bambiplayer addItem "Exile_Item_PlasticBottleFreshWater";
         _bambiplayer addItem "Exile_Item_DuctTape";
         _bambiplayer addItem "Exile_Magazine_7Rnd_45ACP";
         _bambiPlayer addWeaponGlobal "Exile_Weapon_Colt1911";
         
          };
       
       case (_Respect > 2499 && _Respect < 5000):
       //Bambi Plus
        {
         _bambiPlayer forceAddUniform "Exile_Uniform_BambiOverall";
         _bambiplayer addVest "V_Rangemaster_belt";
         _bambiplayer addItem "Exile_Item_PlasticBottleFreshWater";
         _bambiplayer addItem "Exile_Item_Bandage";
         _bambiplayer addItem "Exile_Item_Noodles";
         _bambiplayer addItem "Exile_Item_DuctTape";
         _bambiplayer addItem "Exile_Magazine_7Rnd_45ACP";
         _bambiPlayer addWeaponGlobal "Exile_Weapon_Colt1911";
        };
     
        case (_Respect > 4999 && _Respect < 7500):
        //Super Bambi
        {
         _bambiPlayer forceAddUniform "Exile_Uniform_BambiOverall";
         _bambiplayer addVest "V_Rangemaster_belt";
         _bambiplayer addItem "Exile_Item_PlasticBottleCoffee";
         _bambiplayer addItem "Exile_Item_Bandage";
         _bambiplayer addItem "Exile_Item_Noodles";  
         _bambiplayer addItem "Exile_Item_CanOpener";
         _bambiplayer addItem "Exile_Item_DuctTape";
         _bambiplayer addHeadGear "H_Hat_blue";
         _bambiplayer addItem "Exile_Magazine_7Rnd_45ACP";
         _bambiPlayer addWeaponGlobal "Exile_Weapon_Colt1911";
        };
     
        case (_Respect > 7499 && _Respect < 10000):
        //Definetly Not a Bambi
        {
         _bambiPlayer forceAddUniform "U_C_Man_casual_5_F";
         _bambiplayer addVest "V_Rangemaster_belt";
         _bambiplayer addItem "Exile_Item_PlasticBottleCoffee";
         _bambiplayer addItem "Exile_Item_Bandage";
         _bambiplayer addItem "Exile_Item_Noodles";
         _bambiplayer addItem "Exile_Magazine_7Rnd_45ACP";
         _bambiplayer addItem "Exile_Magazine_7Rnd_45ACP";
         _bambiplayer addItem "Exile_Item_DuctTape";
         _bambiPlayer addWeaponGlobal "Exile_Weapon_Colt1911";
        };
     
        case (_Respect > 9999 && _Respect < 12500):
        //Woodman
        {
         _bambiPlayer forceAddUniform "U_C_Man_casual_6_F";
         _bambiplayer addVest "V_Rangemaster_belt";
         _bambiplayer addItem "Exile_Item_PlasticBottleCoffee";
         _bambiplayer addItem "Exile_Item_Bandage";
         _bambiplayer addItem "Exile_Item_Noodles";
         _bambiplayer addItem "Exile_Item_DuctTape";
         _bambiplayer addItem "Exile_Magazine_7Rnd_45ACP";
         _bambiplayer addItem "Exile_Magazine_7Rnd_45ACP";
         _bambiPlayer addWeaponGlobal "Exile_Weapon_Colt1911";
         _bambiplayer addHeadGear "H_Hat_blue";
        };
        case (_Respect > 12499 && _Respect < 15000):
        //Robber
        {
         _bambiPlayer forceAddUniform "U_C_Man_casual_1_F";
         _bambiplayer addItem "Exile_Item_PlasticBottleCoffee";
         _bambiplayer addVest "V_Rangemaster_belt";
         _bambiplayer addItem "Exile_Item_Bandage";
         _bambiplayer addItem "Exile_Item_DuctTape";
         _bambiplayer addItem "Exile_Item_Noodles";
         _bambiPlayer addMagazine "Exile_Magazine_8Rnd_9x18";
         _bambiPlayer addWeaponGlobal "Exile_Weapon_Makarov";
         _bambiplayer addHeadGear "H_Hat_checker";
        };
        case (_Respect > 14999 && _Respect < 20000):
        //Hunter
        {
         _bambiPlayer forceAddUniform "U_C_HunterBody_grn";
         _bambiplayer addBackpack "B_HuntingBackpack";
         _bambiplayer addVest "V_Rangemaster_belt";
         _bambiplayer addItem "Exile_Item_EnergyDrink";
         _bambiplayer addItem "Exile_Item_Bandage";
         _bambiplayer addItem "Exile_Item_DuctTape";
         _bambiplayer addItem "Exile_Item_Noodles";
         _bambiplayer addItem "Exile_Item_CanOpener";
         _bambiPlayer addMagazine "Exile_Magazine_8Rnd_9x18";
         _bambiPlayer addMagazine "Exile_Magazine_8Rnd_9x18";
         _bambiPlayer addWeaponGlobal "Exile_Weapon_Makarov";
         _bambiplayer addHeadGear "H_StrawHat_dark";
        };
        case (_Respect > 19999 && _Respect < 25000):
        //Worker
        {
         _bambiPlayer forceAddUniform "U_C_WorkerCoveralls";
         _bambiplayer addBackpack "B_HuntingBackpack";
         _bambiplayer addVest "V_Rangemaster_belt";
         _bambiplayer addItem "Exile_Item_PowerDrink";
         _bambiplayer addItem "Exile_Item_DuctTape";
         _bambiplayer addItem "Exile_Item_Bandage";
         _bambiplayer addItem "Exile_Item_BeefParts";
         _bambiplayer addItem "Exile_Item_CanOpener";
         _bambiPlayer addMagazine "10Rnd_9x21_Mag";
         _bambiPlayer addMagazine "10Rnd_9x21_Mag";
         _bambiPlayer addWeaponGlobal "hgun_Pistol_01_F";
         _bambiplayer addHeadGear "H_Booniehat_oli";
        };
        case (_Respect > 24999 && _Respect < 30000):
        //Murderer
        {
         _bambiPlayer forceAddUniform "U_B_T_Soldier_F";
         _bambiplayer addBackpack "B_HuntingBackpack";
         _bambiplayer addVest "V_Rangemaster_belt";
         _bambiplayer addItem "Exile_Item_PowerDrink";
         _bambiplayer addItem "Exile_Item_Vishpirin";
         _bambiplayer addItem "Exile_Item_Dogfood_Cooked";
         _bambiplayer addItem "Exile_Item_CanOpener";
         _bambiplayer addItem "Exile_Item_DuctTape";
         _bambiPlayer addMagazine "30Rnd_9x21_Mag";
         _bambiPlayer addMagazine "30Rnd_9x21_Mag";
         _bambiPlayer addWeaponGlobal "hgun_P07_F";
         _bambiplayer addHeadGear "H_Booniehat_oli";
        };
        case (_Respect > 29999 && _Respect < 40000):
        //Prisoner
        {
         _bambiPlayer forceAddUniform "U_B_T_Soldier_AR_F";
         _bambiplayer addBackpack "B_HuntingBackpack";
         _bambiplayer addVest "V_Rangemaster_belt";
         _bambiplayer addItem "Exile_Item_PowerDrink";
         _bambiplayer addItem "Exile_Item_Vishpirin";
         _bambiplayer addItem "Exile_Item_CatFood_Cooked";
         _bambiplayer addItem "Exile_Item_DuctTape";
         _bambiplayer addItem "Exile_Item_CanOpener";
         _bambiplayer addItem "8Rnd_B_Beneli_74Pellets";
         _bambiPlayer addWeaponGlobal "M1014";
         _bambiplayer addHeadGear "H_Hat_Camo";
        };
        case (_Respect > 39999 && _Respect < 50000):
        //Prisoner
        {
         _bambiPlayer forceAddUniform "U_I_CombatUniform_shortsleeve";
         _bambiplayer addBackpack "B_AssaultPack_dgtl";
         _bambiplayer addVest "V_Rangemaster_belt";
         _bambiplayer addItem "Exile_Item_PowerDrink";
         _bambiplayer addItem "Exile_Item_DuctTape";
         _bambiplayer addItem "Exile_Item_Vishpirin";
         _bambiplayer addItem "Exile_Item_CatFood_Cooked";
         _bambiplayer addItem "Exile_Item_CanOpener";
         _bambiplayer addItem "CUP_30Rnd_9x19_MP5";
         _bambiPlayer addWeaponGlobal "CUP_smg_MP5SD6";
         _bambiplayer addHeadGear "H_Hat_Camo";
        };
        case (_Respect > 49999 && _Respect < 60000):
        //KUT AK
        //Prisoner
        {
         _bambiPlayer forceAddUniform "U_O_OfficerUniform_ocamo";
         _bambiplayer addBackpack "B_FieldPack_ocamo";
         _bambiplayer addVest "V_Rangemaster_belt";
         _bambiplayer addItem "Exile_Item_PowerDrink";
         _bambiplayer addItem "Exile_Item_Vishpirin";
         _bambiplayer addItem "Exile_Item_GloriousKnakworst_Cooked";
         _bambiplayer addItem "Exile_Item_CanOpener";
         _bambiplayer addItem "Exile_Item_DuctTape";
         _bambiplayer addItem "20Rnd_556x45_UW_Mag";
         _bambiplayer addItem "20Rnd_556x45_UW_Mag";
         _bambiPlayer addWeaponGlobal "arifle_sdar_f";
         _bambiplayer addHeadGear "H_Booniehat_oli";
         _bambiPlayer addWeapon "NVGoggles";
        };
        case (_Respect > 59999 && _Respect < 75000):
        //Prisoner
        {
         _bambiPlayer forceAddUniform "U_O_T_Officer_F";
         _bambiplayer addBackpack "B_TacticalPack_ocamo";
         _bambiplayer addVest "V_Rangemaster_belt";
         _bambiplayer addItem "Exile_Item_PowerDrink";
         _bambiplayer addItem "Exile_Item_Vishpirin";
         _bambiplayer addItem "Exile_Item_MacasCheese_Cooked";
         _bambiplayer addItem "Exile_Item_CanOpener";
         _bambiplayer addItem "CUP_30Rnd_556x45_Stanag";
         _bambiplayer addItem "CUP_30Rnd_556x45_Stanag";
         _bambiplayer addItem "Exile_Item_DuctTape";
         _bambiPlayer addWeaponGlobal "CUP_arifle_M16A4_Base";
         _bambiplayer addHeadGear "H_Booniehat_oli";
         _bambiPlayer addWeapon "NVGoggles";
        };
        case (_Respect > 74999 && _Respect < 100000):
        //Prisoner
        {
         _bambiPlayer forceAddUniform "U_O_T_Officer_F";
         _bambiplayer addBackpack "B_Kitbag_mcamo";
         _bambiplayer addVest "V_Rangemaster_belt";
         _bambiplayer addItem "Exile_Item_PowerDrink";
         _bambiplayer addItem "Exile_Item_DuctTape";
         _bambiplayer addItem "Exile_Item_Vishpirin";
         _bambiplayer addItem "Exile_Item_DogFood_Cooked";
         _bambiplayer addItem "Exile_Item_CanOpener";
         _bambiplayer addItem "30Rnd_65x39_caseless_green";
         _bambiplayer addItem "30Rnd_65x39_caseless_green";
         _bambiPlayer addWeaponGlobal "arifle_Katiba_F";
         _bambiplayer addHeadGear "H_Watchcap_blk";
         _bambiPlayer addWeapon "NVGoggles";
        };
        case (_Respect > 99999 && _Respect < 499999):
        //Prisoner
        {
         _bambiPlayer forceAddUniform "U_O_T_Officer_F";
         _bambiplayer addBackpack "CUP_B_USPack_Coyote";
         _bambiplayer addVest "V_Rangemaster_belt";
         _bambiplayer addItem "Exile_Item_PowerDrink";
         _bambiplayer addItem "Exile_Item_DuctTape";
         _bambiplayer addItem "Exile_Item_Vishpirin";
         _bambiplayer addItem "Exile_Item_DogFood_Cooked";
         _bambiplayer addItem "Exile_Item_CanOpener";
         _bambiplayer addItem "30Rnd_65x39_caseless_mag";
         _bambiplayer addItem "30Rnd_65x39_caseless_mag";
         _bambiPlayer addWeaponGlobal "arifle_MX_Black_F";
         _bambiplayer addHeadGear "H_Watchcap_blk";
         _bambiPlayer addWeapon "NVGoggles";
        };
        case (_Respect > 499999 && _Respect < 999999):
        //Prisoner
        {
         _bambiPlayer forceAddUniform "U_B_CTRG_Soldier_urb_2_F";
         _bambiplayer addBackpack "CUP_B_USPack_Coyote";
         _bambiplayer addVest "V_Rangemaster_belt";
         _bambiplayer addItem "Exile_Item_PowerDrink";
         _bambiplayer addItem "Exile_Item_DuctTape";
         _bambiplayer addItem "Exile_Item_Vishpirin";
         _bambiplayer addItem "Exile_Item_DogFood_Cooked";
         _bambiplayer addItem "Exile_Item_CanOpener";
         _bambiplayer addItem "30Rnd_762x39_mag_tracer_F";
         _bambiplayer addItem "30Rnd_762x39_mag_tracer_F";
         _bambiPlayer addWeaponGlobal "arifle_AK12_F";
         _bambiplayer addHeadGear "CUP_H_SLA_TankerHelmet";
         _bambiPlayer addWeapon "NVGoggles";
        };
       case (_Respect > 999999):
        //Prisoner
        {
         _bambiPlayer forceAddUniform "U_B_CTRG_Soldier_3_F";
         _bambiplayer addBackpack "CUP_B_USPack_Coyote";
         _bambiplayer addVest "V_Rangemaster_belt";
         _bambiplayer addItem "Exile_Item_PlasticBottleCoffee";
         _bambiplayer addItem "Exile_Item_Vishpirin";
         _bambiplayer addItem "Exile_Item_DuctTape";
         _bambiplayer addItem "Exile_Item_BBQSandwich_Cooked";
         _bambiplayer addItem "Exile_Item_CanOpener";
         _bambiplayer addItem "30Rnd_762x39_mag_tracer_F";
         _bambiplayer addItem "30Rnd_762x39_mag_tracer_F";
         _bambiplayer addItem "30Rnd_762x39_mag_tracer_F";
         _bambiPlayer addWeaponGlobal "arifle_ak12_f";
         _bambiplayer addPrimaryWeaponItem "optic_aco";
         _bambiplayer addHeadGear "CUP_H_SLA_TankerHelmet";
         _bambiPlayer addWeapon "NVGoggles";
        };
       default
         {  
         _bambiplayer forceadduniform "Exile_Uniform_BambiOverall";
         _bambiplayer addVest "V_Rangemaster_belt";
         _bambiplayer addItem "Exile_Item_Beer";   
         _bambiplayer addItem "Exile_Item_DuctTape";
         _bambiplayer addItem "Exile_Magazine_7Rnd_45ACP";
         _bambiPlayer addWeaponGlobal "Exile_Weapon_Colt1911";
         };
    };
    if((canTriggerDynamicSimulation _bambiPlayer) isEqualTo false) then 
    {
        _bambiPlayer triggerDynamicSimulation true; 
    };
    _bambiPlayer addMPEventHandler ["MPKilled", {_this call ExileServer_object_player_event_onMpKilled}];
    _bambiPlayer call ExileServer_object_player_database_insert;
    _bambiPlayer call ExileServer_object_player_database_update;
    [
        _sessionID, 
        "createPlayerResponse", 
        [
            _bambiPlayer, 
            _parachuteNetID, 
            str (_accountData select 0),
            (_accountData select 1),
            (_accountData select 2),
            100,
            100,
            0,
            (getNumber (configFile >> "CfgSettings" >> "BambiSettings" >> "protectionDuration")) * 60, 
            _clanData,
            _spawnType
        ]

    call ExileServer_system_network_send_to;
    [_sessionID, _bambiPlayer] call ExileServer_system_session_update;
    true

     

  6. So since everyone spawns with a gun, there will be no bambis anymore. Go into config.cpp in **YOUR ARMA SERVER ROOT**\@ExileServer\addons\Exile_Server_Config and change protectionDuration to 0, so that it will look like this: protectionDuration = 0;
  7. Tadaah!

Have fun :)
GolovaRaoul

  • Like 2

Share this post


Link to post
Share on other sites
On 9/20/2017 at 3:41 AM, GolovaRaoul said:

Hello,

This is a very simple script which gives you a specific loadout based on the amount of respect you have. I think this script allready has been released on this forums but I thought I upload my version of it.
This modification is based of this script, all credits to @rentiger1112!

How to install?

  1. Head into your config.cpp clientside (Exile.Chernarus.PBO for example)
  2. Search (Ctrl + F) for CfgExileCustomCode
  3. Paste the following code inside: ExileClient_object_player_bambiStateBegin = "custom\loadout\ExileClient_object_player_bambiStateBegin.sqf"; Feel free to change the path (bold text).
  4. Create a new file called ExileClient_object_player_bambiStateBegin.sqf in the path you defined in step 3
  5. Place the following content in that file:
      Reveal hidden contents

    /**
     * ExileServer_object_player_createBambi
     *
     * Exile Mod
     * exile.majormittens.co.uk
     * © 2015 Exile Mod Team
     *
     * This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License. 
     * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
     */
     
    private["_sessionID","_requestingPlayer","_spawnLocationMarkerName","_thugToCheck","_HaloSpawnCheck","_bambiPlayer","_accountData","_direction","_position","_spawnAreaPosition","_spawnAreaRadius","_clanID","_clanData","_clanGroup","_player","_devFriendlyMode","_devs","_parachuteNetID","_spawnType","_parachuteObject"];
    _sessionID = _this select 0;
    _requestingPlayer = _this select 1;
    _spawnLocationMarkerName = _this select 2;
    _bambiPlayer = _this select 3;
    _accountData = _this select 4;
    _direction = random 360;
    _Respect = (_accountData select 0);
    if ((count ExileSpawnZoneMarkerPositions) isEqualTo 0) then 
    {
        _position = call ExileClient_util_world_findCoastPosition;
        if ((toLower worldName) isEqualTo "namalsk") then 
        {
            while {(_position distance2D [76.4239, 107.141, 0]) < 100} do 
            {
                _position = call ExileClient_util_world_findCoastPosition;
            };
        };
    }
    else 
    {
        _spawnAreaPosition = getMarkerPos _spawnLocationMarkerName;
        _spawnAreaRadius = getNumber(configFile >> "CfgSettings" >> "BambiSettings" >> "spawnZoneRadius");
        _position = [_spawnAreaPosition, _spawnAreaRadius] call ExileClient_util_math_getRandomPositionInCircle;
        while {surfaceIsWater _position} do 
        {
            _position = [_spawnAreaPosition, _spawnAreaRadius] call ExileClient_util_math_getRandomPositionInCircle;
        };
    };

    _name = name _requestingPlayer;
    _clanID = (_accountData select 3);
    if !((typeName _clanID) isEqualTo "SCALAR") then
    {
        _clanID = -1;
        _clanData = [];
    }
    else
    {
        _clanData = missionNamespace getVariable [format ["ExileServer_clan_%1",_clanID],[]];
        if(isNull (_clanData select 5))then
        {
            _clanGroup = createGroup independent;
            _clanData set [5,_clanGroup];
            _clanGroup setGroupIdGlobal [_clanData select 0];
            missionNameSpace setVariable [format ["ExileServer_clan_%1",_clanID],_clanData];
        }
        else
        {
            _clanGroup = (_clanData select 5);
        };
        [_player] joinSilent _clanGroup;
    };
    _bambiPlayer setPosATL [_position select 0,_position select 1,0];
    _bambiPlayer disableAI "FSM";
    _bambiPlayer disableAI "MOVE";
    _bambiPlayer disableAI "AUTOTARGET";
    _bambiPlayer disableAI "TARGET";
    _bambiPlayer disableAI "CHECKVISIBLE";
    _bambiPlayer setDir _direction;
    _bambiPlayer setName _name;
    _bambiPlayer setVariable ["ExileMoney", 0, true]; 
    _bambiPlayer setVariable ["ExileScore", (_accountData select 0)];
    _bambiPlayer setVariable ["ExileKills", (_accountData select 1)];
    _bambiPlayer setVariable ["ExileDeaths", (_accountData select 2)];
    _bambiPlayer setVariable ["ExileClanID", _clanID];
    _bambiPlayer setVariable ["ExileClanData", _clanData];
    _bambiPlayer setVariable ["ExileHunger", 100];
    _bambiPlayer setVariable ["ExileThirst", 100];
    _bambiPlayer setVariable ["ExileTemperature", 37];
    _bambiPlayer setVariable ["ExileWetness", 0];
    _bambiPlayer setVariable ["ExileAlcohol", 0]; 
    _bambiPlayer setVariable ["ExileName", _name]; 
    _bambiPlayer setVariable ["ExileOwnerUID", getPlayerUID _requestingPlayer]; 
    _bambiPlayer setVariable ["ExileIsBambi", true];
    _bambiPlayer setVariable ["ExileXM8IsOnline", false, true];
    _bambiPlayer setVariable ["ExileLocker", (_accountData select 4), true];
    _devFriendlyMode = getNumber (configFile >> "CfgSettings" >> "ServerSettings" >> "devFriendyMode");
    if (_devFriendlyMode isEqualTo 1) then 
    {
        _devs = getArray (configFile >> "CfgSettings" >> "ServerSettings" >> "devs");
        {
            if ((getPlayerUID _requestingPlayer) isEqualTo (_x select 0))exitWith 
            {
                if((name _requestingPlayer) isEqualTo (_x select 1))then
                {
                    _bambiPlayer setVariable ["ExileMoney", 500000, true];
                    _bambiPlayer setVariable ["ExileScore", 100000];
                };
            };
        }
        forEach _devs;
    };
    _parachuteNetID = "";

    _thugToCheck = _sessionID call ExileServer_system_session_getPlayerObject;
    _HaloSpawnCheck = _thugToCheck getVariable ["playerWantsHaloSpawn", 0];

    if (_HaloSpawnCheck isEqualTo 1) then
    {
        _position set [2, getNumber(configFile >> "CfgSettings" >> "BambiSettings" >> "parachuteDropHeight")]; 
        if ((getNumber(configFile >> "CfgSettings" >> "BambiSettings" >> "haloJump")) isEqualTo 1) then
        {
            _bambiPlayer addBackpackGlobal "B_Parachute";
            _bambiPlayer setPosATL _position;
            _spawnType = 2;
        }
        else 
        {
            _parachuteObject = createVehicle ["Steerable_Parachute_F", _position, [], 0, "CAN_COLLIDE"];
            _parachuteObject setDir _direction;
            _parachuteObject setPosATL _position;
            _parachuteObject enableSimulationGlobal true;
            _parachuteNetID = netId _parachuteObject;
            _spawnType = 1;
        };
    }
    else
    {
        _spawnType = 0;
    };

    switch (true) do 
    {
       case (_Respect > 0 && _Respect < 2500):
       //Bambi
         {
         _bambiPlayer forceAddUniform "Exile_Uniform_BambiOverall";
         _bambiplayer addItem "Exile_Item_PlasticBottleFreshWater";
         _bambiplayer addItem "Exile_Item_DuctTape";
         _bambiplayer addItem "Exile_Magazine_7Rnd_45ACP";
         _bambiPlayer addWeaponGlobal "Exile_Weapon_Colt1911";
         
          };
       
       case (_Respect > 2499 && _Respect < 5000):
       //Bambi Plus
        {
         _bambiPlayer forceAddUniform "Exile_Uniform_BambiOverall";
         _bambiplayer addVest "V_Rangemaster_belt";
         _bambiplayer addItem "Exile_Item_PlasticBottleFreshWater";
         _bambiplayer addItem "Exile_Item_Bandage";
         _bambiplayer addItem "Exile_Item_Noodles";
         _bambiplayer addItem "Exile_Item_DuctTape";
         _bambiplayer addItem "Exile_Magazine_7Rnd_45ACP";
         _bambiPlayer addWeaponGlobal "Exile_Weapon_Colt1911";
        };
     
        case (_Respect > 4999 && _Respect < 7500):
        //Super Bambi
        {
         _bambiPlayer forceAddUniform "Exile_Uniform_BambiOverall";
         _bambiplayer addVest "V_Rangemaster_belt";
         _bambiplayer addItem "Exile_Item_PlasticBottleCoffee";
         _bambiplayer addItem "Exile_Item_Bandage";
         _bambiplayer addItem "Exile_Item_Noodles";  
         _bambiplayer addItem "Exile_Item_CanOpener";
         _bambiplayer addItem "Exile_Item_DuctTape";
         _bambiplayer addHeadGear "H_Hat_blue";
         _bambiplayer addItem "Exile_Magazine_7Rnd_45ACP";
         _bambiPlayer addWeaponGlobal "Exile_Weapon_Colt1911";
        };
     
        case (_Respect > 7499 && _Respect < 10000):
        //Definetly Not a Bambi
        {
         _bambiPlayer forceAddUniform "U_C_Man_casual_5_F";
         _bambiplayer addVest "V_Rangemaster_belt";
         _bambiplayer addItem "Exile_Item_PlasticBottleCoffee";
         _bambiplayer addItem "Exile_Item_Bandage";
         _bambiplayer addItem "Exile_Item_Noodles";
         _bambiplayer addItem "Exile_Magazine_7Rnd_45ACP";
         _bambiplayer addItem "Exile_Magazine_7Rnd_45ACP";
         _bambiplayer addItem "Exile_Item_DuctTape";
         _bambiPlayer addWeaponGlobal "Exile_Weapon_Colt1911";
        };
     
        case (_Respect > 9999 && _Respect < 12500):
        //Woodman
        {
         _bambiPlayer forceAddUniform "U_C_Man_casual_6_F";
         _bambiplayer addVest "V_Rangemaster_belt";
         _bambiplayer addItem "Exile_Item_PlasticBottleCoffee";
         _bambiplayer addItem "Exile_Item_Bandage";
         _bambiplayer addItem "Exile_Item_Noodles";
         _bambiplayer addItem "Exile_Item_DuctTape";
         _bambiplayer addItem "Exile_Magazine_7Rnd_45ACP";
         _bambiplayer addItem "Exile_Magazine_7Rnd_45ACP";
         _bambiPlayer addWeaponGlobal "Exile_Weapon_Colt1911";
         _bambiplayer addHeadGear "H_Hat_blue";
        };
        case (_Respect > 12499 && _Respect < 15000):
        //Robber
        {
         _bambiPlayer forceAddUniform "U_C_Man_casual_1_F";
         _bambiplayer addItem "Exile_Item_PlasticBottleCoffee";
         _bambiplayer addVest "V_Rangemaster_belt";
         _bambiplayer addItem "Exile_Item_Bandage";
         _bambiplayer addItem "Exile_Item_DuctTape";
         _bambiplayer addItem "Exile_Item_Noodles";
         _bambiPlayer addMagazine "Exile_Magazine_8Rnd_9x18";
         _bambiPlayer addWeaponGlobal "Exile_Weapon_Makarov";
         _bambiplayer addHeadGear "H_Hat_checker";
        };
        case (_Respect > 14999 && _Respect < 20000):
        //Hunter
        {
         _bambiPlayer forceAddUniform "U_C_HunterBody_grn";
         _bambiplayer addBackpack "B_HuntingBackpack";
         _bambiplayer addVest "V_Rangemaster_belt";
         _bambiplayer addItem "Exile_Item_EnergyDrink";
         _bambiplayer addItem "Exile_Item_Bandage";
         _bambiplayer addItem "Exile_Item_DuctTape";
         _bambiplayer addItem "Exile_Item_Noodles";
         _bambiplayer addItem "Exile_Item_CanOpener";
         _bambiPlayer addMagazine "Exile_Magazine_8Rnd_9x18";
         _bambiPlayer addMagazine "Exile_Magazine_8Rnd_9x18";
         _bambiPlayer addWeaponGlobal "Exile_Weapon_Makarov";
         _bambiplayer addHeadGear "H_StrawHat_dark";
        };
        case (_Respect > 19999 && _Respect < 25000):
        //Worker
        {
         _bambiPlayer forceAddUniform "U_C_WorkerCoveralls";
         _bambiplayer addBackpack "B_HuntingBackpack";
         _bambiplayer addVest "V_Rangemaster_belt";
         _bambiplayer addItem "Exile_Item_PowerDrink";
         _bambiplayer addItem "Exile_Item_DuctTape";
         _bambiplayer addItem "Exile_Item_Bandage";
         _bambiplayer addItem "Exile_Item_BeefParts";
         _bambiplayer addItem "Exile_Item_CanOpener";
         _bambiPlayer addMagazine "10Rnd_9x21_Mag";
         _bambiPlayer addMagazine "10Rnd_9x21_Mag";
         _bambiPlayer addWeaponGlobal "hgun_Pistol_01_F";
         _bambiplayer addHeadGear "H_Booniehat_oli";
        };
        case (_Respect > 24999 && _Respect < 30000):
        //Murderer
        {
         _bambiPlayer forceAddUniform "U_B_T_Soldier_F";
         _bambiplayer addBackpack "B_HuntingBackpack";
         _bambiplayer addVest "V_Rangemaster_belt";
         _bambiplayer addItem "Exile_Item_PowerDrink";
         _bambiplayer addItem "Exile_Item_Vishpirin";
         _bambiplayer addItem "Exile_Item_Dogfood_Cooked";
         _bambiplayer addItem "Exile_Item_CanOpener";
         _bambiplayer addItem "Exile_Item_DuctTape";
         _bambiPlayer addMagazine "30Rnd_9x21_Mag";
         _bambiPlayer addMagazine "30Rnd_9x21_Mag";
         _bambiPlayer addWeaponGlobal "hgun_P07_F";
         _bambiplayer addHeadGear "H_Booniehat_oli";
        };
        case (_Respect > 29999 && _Respect < 40000):
        //Prisoner
        {
         _bambiPlayer forceAddUniform "U_B_T_Soldier_AR_F";
         _bambiplayer addBackpack "B_HuntingBackpack";
         _bambiplayer addVest "V_Rangemaster_belt";
         _bambiplayer addItem "Exile_Item_PowerDrink";
         _bambiplayer addItem "Exile_Item_Vishpirin";
         _bambiplayer addItem "Exile_Item_CatFood_Cooked";
         _bambiplayer addItem "Exile_Item_DuctTape";
         _bambiplayer addItem "Exile_Item_CanOpener";
         _bambiplayer addItem "8Rnd_B_Beneli_74Pellets";
         _bambiPlayer addWeaponGlobal "M1014";
         _bambiplayer addHeadGear "H_Hat_Camo";
        };
        case (_Respect > 39999 && _Respect < 50000):
        //Prisoner
        {
         _bambiPlayer forceAddUniform "U_I_CombatUniform_shortsleeve";
         _bambiplayer addBackpack "B_AssaultPack_dgtl";
         _bambiplayer addVest "V_Rangemaster_belt";
         _bambiplayer addItem "Exile_Item_PowerDrink";
         _bambiplayer addItem "Exile_Item_DuctTape";
         _bambiplayer addItem "Exile_Item_Vishpirin";
         _bambiplayer addItem "Exile_Item_CatFood_Cooked";
         _bambiplayer addItem "Exile_Item_CanOpener";
         _bambiplayer addItem "CUP_30Rnd_9x19_MP5";
         _bambiPlayer addWeaponGlobal "CUP_smg_MP5SD6";
         _bambiplayer addHeadGear "H_Hat_Camo";
        };
        case (_Respect > 49999 && _Respect < 60000):
        //KUT AK
        //Prisoner
        {
         _bambiPlayer forceAddUniform "U_O_OfficerUniform_ocamo";
         _bambiplayer addBackpack "B_FieldPack_ocamo";
         _bambiplayer addVest "V_Rangemaster_belt";
         _bambiplayer addItem "Exile_Item_PowerDrink";
         _bambiplayer addItem "Exile_Item_Vishpirin";
         _bambiplayer addItem "Exile_Item_GloriousKnakworst_Cooked";
         _bambiplayer addItem "Exile_Item_CanOpener";
         _bambiplayer addItem "Exile_Item_DuctTape";
         _bambiplayer addItem "20Rnd_556x45_UW_Mag";
         _bambiplayer addItem "20Rnd_556x45_UW_Mag";
         _bambiPlayer addWeaponGlobal "arifle_sdar_f";
         _bambiplayer addHeadGear "H_Booniehat_oli";
         _bambiPlayer addWeapon "NVGoggles";
        };
        case (_Respect > 59999 && _Respect < 75000):
        //Prisoner
        {
         _bambiPlayer forceAddUniform "U_O_T_Officer_F";
         _bambiplayer addBackpack "B_TacticalPack_ocamo";
         _bambiplayer addVest "V_Rangemaster_belt";
         _bambiplayer addItem "Exile_Item_PowerDrink";
         _bambiplayer addItem "Exile_Item_Vishpirin";
         _bambiplayer addItem "Exile_Item_MacasCheese_Cooked";
         _bambiplayer addItem "Exile_Item_CanOpener";
         _bambiplayer addItem "CUP_30Rnd_556x45_Stanag";
         _bambiplayer addItem "CUP_30Rnd_556x45_Stanag";
         _bambiplayer addItem "Exile_Item_DuctTape";
         _bambiPlayer addWeaponGlobal "CUP_arifle_M16A4_Base";
         _bambiplayer addHeadGear "H_Booniehat_oli";
         _bambiPlayer addWeapon "NVGoggles";
        };
        case (_Respect > 74999 && _Respect < 100000):
        //Prisoner
        {
         _bambiPlayer forceAddUniform "U_O_T_Officer_F";
         _bambiplayer addBackpack "B_Kitbag_mcamo";
         _bambiplayer addVest "V_Rangemaster_belt";
         _bambiplayer addItem "Exile_Item_PowerDrink";
         _bambiplayer addItem "Exile_Item_DuctTape";
         _bambiplayer addItem "Exile_Item_Vishpirin";
         _bambiplayer addItem "Exile_Item_DogFood_Cooked";
         _bambiplayer addItem "Exile_Item_CanOpener";
         _bambiplayer addItem "30Rnd_65x39_caseless_green";
         _bambiplayer addItem "30Rnd_65x39_caseless_green";
         _bambiPlayer addWeaponGlobal "arifle_Katiba_F";
         _bambiplayer addHeadGear "H_Watchcap_blk";
         _bambiPlayer addWeapon "NVGoggles";
        };
        case (_Respect > 99999 && _Respect < 499999):
        //Prisoner
        {
         _bambiPlayer forceAddUniform "U_O_T_Officer_F";
         _bambiplayer addBackpack "CUP_B_USPack_Coyote";
         _bambiplayer addVest "V_Rangemaster_belt";
         _bambiplayer addItem "Exile_Item_PowerDrink";
         _bambiplayer addItem "Exile_Item_DuctTape";
         _bambiplayer addItem "Exile_Item_Vishpirin";
         _bambiplayer addItem "Exile_Item_DogFood_Cooked";
         _bambiplayer addItem "Exile_Item_CanOpener";
         _bambiplayer addItem "30Rnd_65x39_caseless_mag";
         _bambiplayer addItem "30Rnd_65x39_caseless_mag";
         _bambiPlayer addWeaponGlobal "arifle_MX_Black_F";
         _bambiplayer addHeadGear "H_Watchcap_blk";
         _bambiPlayer addWeapon "NVGoggles";
        };
        case (_Respect > 499999 && _Respect < 999999):
        //Prisoner
        {
         _bambiPlayer forceAddUniform "U_B_CTRG_Soldier_urb_2_F";
         _bambiplayer addBackpack "CUP_B_USPack_Coyote";
         _bambiplayer addVest "V_Rangemaster_belt";
         _bambiplayer addItem "Exile_Item_PowerDrink";
         _bambiplayer addItem "Exile_Item_DuctTape";
         _bambiplayer addItem "Exile_Item_Vishpirin";
         _bambiplayer addItem "Exile_Item_DogFood_Cooked";
         _bambiplayer addItem "Exile_Item_CanOpener";
         _bambiplayer addItem "30Rnd_762x39_mag_tracer_F";
         _bambiplayer addItem "30Rnd_762x39_mag_tracer_F";
         _bambiPlayer addWeaponGlobal "arifle_AK12_F";
         _bambiplayer addHeadGear "CUP_H_SLA_TankerHelmet";
         _bambiPlayer addWeapon "NVGoggles";
        };
       case (_Respect > 999999):
        //Prisoner
        {
         _bambiPlayer forceAddUniform "U_B_CTRG_Soldier_3_F";
         _bambiplayer addBackpack "CUP_B_USPack_Coyote";
         _bambiplayer addVest "V_Rangemaster_belt";
         _bambiplayer addItem "Exile_Item_PlasticBottleCoffee";
         _bambiplayer addItem "Exile_Item_Vishpirin";
         _bambiplayer addItem "Exile_Item_DuctTape";
         _bambiplayer addItem "Exile_Item_BBQSandwich_Cooked";
         _bambiplayer addItem "Exile_Item_CanOpener";
         _bambiplayer addItem "30Rnd_762x39_mag_tracer_F";
         _bambiplayer addItem "30Rnd_762x39_mag_tracer_F";
         _bambiplayer addItem "30Rnd_762x39_mag_tracer_F";
         _bambiPlayer addWeaponGlobal "arifle_ak12_f";
         _bambiplayer addPrimaryWeaponItem "optic_aco";
         _bambiplayer addHeadGear "CUP_H_SLA_TankerHelmet";
         _bambiPlayer addWeapon "NVGoggles";
        };
       default
         {  
         _bambiplayer forceadduniform "Exile_Uniform_BambiOverall";
         _bambiplayer addVest "V_Rangemaster_belt";
         _bambiplayer addItem "Exile_Item_Beer";   
         _bambiplayer addItem "Exile_Item_DuctTape";
         _bambiplayer addItem "Exile_Magazine_7Rnd_45ACP";
         _bambiPlayer addWeaponGlobal "Exile_Weapon_Colt1911";
         };
    };
    if((canTriggerDynamicSimulation _bambiPlayer) isEqualTo false) then 
    {
        _bambiPlayer triggerDynamicSimulation true; 
    };
    _bambiPlayer addMPEventHandler ["MPKilled", {_this call ExileServer_object_player_event_onMpKilled}];
    _bambiPlayer call ExileServer_object_player_database_insert;
    _bambiPlayer call ExileServer_object_player_database_update;
    [
        _sessionID, 
        "createPlayerResponse", 
        [
            _bambiPlayer, 
            _parachuteNetID, 
            str (_accountData select 0),
            (_accountData select 1),
            (_accountData select 2),
            100,
            100,
            0,
            (getNumber (configFile >> "CfgSettings" >> "BambiSettings" >> "protectionDuration")) * 60, 
            _clanData,
            _spawnType
        ]

    call ExileServer_system_network_send_to;
    [_sessionID, _bambiPlayer] call ExileServer_system_session_update;
    true

     

  6. So since everyone spawns with a gun, there will be no bambis anymore. Go into config.cpp in **YOUR ARMA SERVER ROOT**\@ExileServer\addons\Exile_Server_Config and change protectionDuration to 0, so that it will look like this: protectionDuration = 0;
  7. Tadaah!

Have fun :)
GolovaRaoul

Hey,

I just tried installing this on my server and it's still using the default load-out in the config.cpp. I did edit the file to remove some classes and updated the respect values for my server but I don't think that would caus it to not work. Any idea? Here is my edited file.

Spoiler

/**
 * ExileServer_object_player_createBambi
 *
 * Exile Mod
 * exile.majormittens.co.uk
 * © 2015 Exile Mod Team
 *
 * This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License. 
 * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
 */
 
private["_sessionID","_requestingPlayer","_spawnLocationMarkerName","_thugToCheck","_HaloSpawnCheck","_bambiPlayer","_accountData","_direction","_position","_spawnAreaPosition","_spawnAreaRadius","_clanID","_clanData","_clanGroup","_player","_devFriendlyMode","_devs","_parachuteNetID","_spawnType","_parachuteObject"];
_sessionID = _this select 0;
_requestingPlayer = _this select 1;
_spawnLocationMarkerName = _this select 2;
_bambiPlayer = _this select 3;
_accountData = _this select 4;
_direction = random 360;
_Respect = (_accountData select 0);
if ((count ExileSpawnZoneMarkerPositions) isEqualTo 0) then 
{
    _position = call ExileClient_util_world_findCoastPosition;
    if ((toLower worldName) isEqualTo "namalsk") then 
    {
        while {(_position distance2D [76.4239, 107.141, 0]) < 100} do 
        {
            _position = call ExileClient_util_world_findCoastPosition;
        };
    };
}
else 
{
    _spawnAreaPosition = getMarkerPos _spawnLocationMarkerName;
    _spawnAreaRadius = getNumber(configFile >> "CfgSettings" >> "BambiSettings" >> "spawnZoneRadius");
    _position = [_spawnAreaPosition, _spawnAreaRadius] call ExileClient_util_math_getRandomPositionInCircle;
    while {surfaceIsWater _position} do 
    {
        _position = [_spawnAreaPosition, _spawnAreaRadius] call ExileClient_util_math_getRandomPositionInCircle;
    };
};

_name = name _requestingPlayer;
_clanID = (_accountData select 3);
if !((typeName _clanID) isEqualTo "SCALAR") then
{
    _clanID = -1;
    _clanData = [];
}
else
{
    _clanData = missionNamespace getVariable [format ["ExileServer_clan_%1",_clanID],[]];
    if(isNull (_clanData select 5))then
    {
        _clanGroup = createGroup independent;
        _clanData set [5,_clanGroup];
        _clanGroup setGroupIdGlobal [_clanData select 0];
        missionNameSpace setVariable [format ["ExileServer_clan_%1",_clanID],_clanData];
    }
    else
    {
        _clanGroup = (_clanData select 5);
    };
    [_player] joinSilent _clanGroup;
};
_bambiPlayer setPosATL [_position select 0,_position select 1,0];
_bambiPlayer disableAI "FSM";
_bambiPlayer disableAI "MOVE";
_bambiPlayer disableAI "AUTOTARGET";
_bambiPlayer disableAI "TARGET";
_bambiPlayer disableAI "CHECKVISIBLE";
_bambiPlayer setDir _direction;
_bambiPlayer setName _name;
_bambiPlayer setVariable ["ExileMoney", 0, true]; 
_bambiPlayer setVariable ["ExileScore", (_accountData select 0)];
_bambiPlayer setVariable ["ExileKills", (_accountData select 1)];
_bambiPlayer setVariable ["ExileDeaths", (_accountData select 2)];
_bambiPlayer setVariable ["ExileClanID", _clanID];
_bambiPlayer setVariable ["ExileClanData", _clanData];
_bambiPlayer setVariable ["ExileHunger", 100];
_bambiPlayer setVariable ["ExileThirst", 100];
_bambiPlayer setVariable ["ExileTemperature", 37];
_bambiPlayer setVariable ["ExileWetness", 0];
_bambiPlayer setVariable ["ExileAlcohol", 0]; 
_bambiPlayer setVariable ["ExileName", _name]; 
_bambiPlayer setVariable ["ExileOwnerUID", getPlayerUID _requestingPlayer]; 
_bambiPlayer setVariable ["ExileIsBambi", true];
_bambiPlayer setVariable ["ExileXM8IsOnline", false, true];
_bambiPlayer setVariable ["ExileLocker", (_accountData select 4), true];
_devFriendlyMode = getNumber (configFile >> "CfgSettings" >> "ServerSettings" >> "devFriendyMode");
if (_devFriendlyMode isEqualTo 1) then 
{
    _devs = getArray (configFile >> "CfgSettings" >> "ServerSettings" >> "devs");
    {
        if ((getPlayerUID _requestingPlayer) isEqualTo (_x select 0))exitWith 
        {
            if((name _requestingPlayer) isEqualTo (_x select 1))then
            {
                _bambiPlayer setVariable ["ExileMoney", 500000, true];
                _bambiPlayer setVariable ["ExileScore", 100000];
            };
        };
    }
    forEach _devs;
};
_parachuteNetID = "";

_thugToCheck = _sessionID call ExileServer_system_session_getPlayerObject;
_HaloSpawnCheck = _thugToCheck getVariable ["playerWantsHaloSpawn", 0];

if (_HaloSpawnCheck isEqualTo 1) then
{
    _position set [2, getNumber(configFile >> "CfgSettings" >> "BambiSettings" >> "parachuteDropHeight")]; 
    if ((getNumber(configFile >> "CfgSettings" >> "BambiSettings" >> "haloJump")) isEqualTo 1) then
    {
        _bambiPlayer addBackpackGlobal "B_Parachute";
        _bambiPlayer setPosATL _position;
        _spawnType = 2;
    }
    else 
    {
        _parachuteObject = createVehicle ["Steerable_Parachute_F", _position, [], 0, "CAN_COLLIDE"];
        _parachuteObject setDir _direction;
        _parachuteObject setPosATL _position;
        _parachuteObject enableSimulationGlobal true;
        _parachuteNetID = netId _parachuteObject;
        _spawnType = 1;
    };
}
else
{
    _spawnType = 0;
};

switch (true) do 
{
   case (_Respect > 0 && _Respect < 9999):
   //Bambi
     {
     _bambiPlayer forceAddUniform "Exile_Uniform_BambiOverall";
     _bambiplayer addItem "Exile_Item_PlasticBottleFreshWater";
     _bambiplayer addItem "Exile_Item_DuctTape";
     _bambiplayer addItem "Exile_Magazine_7Rnd_45ACP";
     _bambiPlayer addWeaponGlobal "Exile_Weapon_Colt1911";
     
      };
   
   case (_Respect > 10000 && _Respect < 19999):
   //Bambi Plus
    {
     _bambiPlayer forceAddUniform "Exile_Uniform_BambiOverall";
     _bambiplayer addVest "V_Rangemaster_belt";
     _bambiplayer addItem "Exile_Item_PlasticBottleFreshWater";
     _bambiplayer addItem "Exile_Item_Bandage";
     _bambiplayer addItem "Exile_Item_Noodles";
     _bambiplayer addItem "Exile_Item_DuctTape";
     _bambiplayer addItem "Exile_Magazine_7Rnd_45ACP";
     _bambiPlayer addWeaponGlobal "Exile_Weapon_Colt1911";
    };
 
    case (_Respect > 20000 && _Respect < 29999):
    //Super Bambi
    {
     _bambiPlayer forceAddUniform "Exile_Uniform_BambiOverall";
     _bambiplayer addVest "V_Rangemaster_belt";
     _bambiplayer addItem "Exile_Item_PlasticBottleCoffee";
     _bambiplayer addItem "Exile_Item_Bandage";
     _bambiplayer addItem "Exile_Item_Noodles";  
     _bambiplayer addItem "Exile_Item_CanOpener";
     _bambiplayer addItem "Exile_Item_DuctTape";
     _bambiplayer addHeadGear "H_Hat_blue";
     _bambiplayer addItem "Exile_Magazine_7Rnd_45ACP";
     _bambiPlayer addWeaponGlobal "Exile_Weapon_Colt1911";
    };
 
    case (_Respect > 30000 && _Respect < 39999):
    //Definetly Not a Bambi
    {
     _bambiPlayer forceAddUniform "U_C_Man_casual_5_F";
     _bambiplayer addVest "V_Rangemaster_belt";
     _bambiplayer addItem "Exile_Item_PlasticBottleCoffee";
     _bambiplayer addItem "Exile_Item_Bandage";
     _bambiplayer addItem "Exile_Item_Noodles";
     _bambiplayer addItem "Exile_Magazine_7Rnd_45ACP";
     _bambiplayer addItem "Exile_Magazine_7Rnd_45ACP";
     _bambiplayer addItem "Exile_Item_DuctTape";
     _bambiPlayer addWeaponGlobal "Exile_Weapon_Colt1911";
    };
 
    case (_Respect > 40000 && _Respect < 49999):
    //Woodman
    {
     _bambiPlayer forceAddUniform "U_C_Man_casual_6_F";
     _bambiplayer addVest "V_Rangemaster_belt";
     _bambiplayer addItem "Exile_Item_PlasticBottleCoffee";
     _bambiplayer addItem "Exile_Item_Bandage";
     _bambiplayer addItem "Exile_Item_Noodles";
     _bambiplayer addItem "Exile_Item_DuctTape";
     _bambiplayer addItem "Exile_Magazine_7Rnd_45ACP";
     _bambiplayer addItem "Exile_Magazine_7Rnd_45ACP";
     _bambiPlayer addWeaponGlobal "Exile_Weapon_Colt1911";
     _bambiplayer addHeadGear "H_Hat_blue";
    };
    case (_Respect > 50000 && _Respect < 59999):
    //Robber
    {
     _bambiPlayer forceAddUniform "U_C_Man_casual_1_F";
     _bambiplayer addItem "Exile_Item_PlasticBottleCoffee";
     _bambiplayer addVest "V_Rangemaster_belt";
     _bambiplayer addItem "Exile_Item_Bandage";
     _bambiplayer addItem "Exile_Item_DuctTape";
     _bambiplayer addItem "Exile_Item_Noodles";
     _bambiPlayer addMagazine "Exile_Magazine_8Rnd_9x18";
     _bambiPlayer addWeaponGlobal "Exile_Weapon_Makarov";
     _bambiplayer addHeadGear "H_Hat_checker";
    };
    case (_Respect > 60000 && _Respect < 69999):
    //Hunter
    {
     _bambiPlayer forceAddUniform "U_C_HunterBody_grn";
     _bambiplayer addBackpack "B_HuntingBackpack";
     _bambiplayer addVest "V_Rangemaster_belt";
     _bambiplayer addItem "Exile_Item_EnergyDrink";
     _bambiplayer addItem "Exile_Item_Bandage";
     _bambiplayer addItem "Exile_Item_DuctTape";
     _bambiplayer addItem "Exile_Item_Noodles";
     _bambiplayer addItem "Exile_Item_CanOpener";
     _bambiPlayer addMagazine "Exile_Magazine_8Rnd_9x18";
     _bambiPlayer addMagazine "Exile_Magazine_8Rnd_9x18";
     _bambiPlayer addWeaponGlobal "Exile_Weapon_Makarov";
     _bambiplayer addHeadGear "H_StrawHat_dark";
    };
    case (_Respect > 70000 && _Respect < 79999):
    //Worker
    {
     _bambiPlayer forceAddUniform "U_C_WorkerCoveralls";
     _bambiplayer addBackpack "B_HuntingBackpack";
     _bambiplayer addVest "V_Rangemaster_belt";
     _bambiplayer addItem "Exile_Item_PowerDrink";
     _bambiplayer addItem "Exile_Item_DuctTape";
     _bambiplayer addItem "Exile_Item_Bandage";
     _bambiplayer addItem "Exile_Item_BeefParts";
     _bambiplayer addItem "Exile_Item_CanOpener";
     _bambiPlayer addMagazine "10Rnd_9x21_Mag";
     _bambiPlayer addMagazine "10Rnd_9x21_Mag";
     _bambiPlayer addWeaponGlobal "hgun_Pistol_01_F";
     _bambiplayer addHeadGear "H_Booniehat_oli";
    };
    case (_Respect > 80000 && _Respect < 89999):
    //Murderer
    {
     _bambiPlayer forceAddUniform "U_B_T_Soldier_F";
     _bambiplayer addBackpack "B_HuntingBackpack";
     _bambiplayer addVest "V_Rangemaster_belt";
     _bambiplayer addItem "Exile_Item_PowerDrink";
     _bambiplayer addItem "Exile_Item_Vishpirin";
     _bambiplayer addItem "Exile_Item_Dogfood_Cooked";
     _bambiplayer addItem "Exile_Item_CanOpener";
     _bambiplayer addItem "Exile_Item_DuctTape";
     _bambiPlayer addMagazine "30Rnd_9x21_Mag";
     _bambiPlayer addMagazine "30Rnd_9x21_Mag";
     _bambiPlayer addWeaponGlobal "hgun_P07_F";
     _bambiplayer addHeadGear "H_Booniehat_oli";
    };
    case (_Respect > 90000 && _Respect < 999999):
    //Prisoner
    {
     _bambiPlayer forceAddUniform "U_B_T_Soldier_AR_F";
     _bambiplayer addBackpack "B_HuntingBackpack";
     _bambiplayer addVest "V_Rangemaster_belt";
     _bambiplayer addItem "Exile_Item_PowerDrink";
     _bambiplayer addItem "Exile_Item_Vishpirin";
     _bambiplayer addItem "Exile_Item_CatFood_Cooked";
     _bambiplayer addItem "Exile_Item_DuctTape";
     _bambiplayer addItem "Exile_Item_CanOpener";
     _bambiplayer addItem "8Rnd_B_Beneli_74Pellets";
     _bambiPlayer addWeaponGlobal "M1014";
     _bambiplayer addHeadGear "H_Hat_Camo";
    };
};
if((canTriggerDynamicSimulation _bambiPlayer) isEqualTo false) then 
{
    _bambiPlayer triggerDynamicSimulation true; 
};
_bambiPlayer addMPEventHandler ["MPKilled", {_this call ExileServer_object_player_event_onMpKilled}];
_bambiPlayer call ExileServer_object_player_database_insert;
_bambiPlayer call ExileServer_object_player_database_update;
[
    _sessionID, 
    "createPlayerResponse", 
    [
        _bambiPlayer, 
        _parachuteNetID, 
        str (_accountData select 0),
        (_accountData select 1),
        (_accountData select 2),
        100,
        100,
        0,
        (getNumber (configFile >> "CfgSettings" >> "BambiSettings" >> "protectionDuration")) * 60, 
        _clanData,
        _spawnType
    ]
] 
call ExileServer_system_network_send_to;
[_sessionID, _bambiPlayer] call ExileServer_system_session_update;
true

 

 

Share this post


Link to post
Share on other sites
Advertisement
5 hours ago, Blake2394 said:

Hey,

I just tried installing this on my server and it's still using the default load-out in the config.cpp. I did edit the file to remove some classes and updated the respect values for my server but I don't think that would caus it to not work. Any idea? Here is my edited file.

  Reveal hidden contents


/**
 * ExileServer_object_player_createBambi
 *
 * Exile Mod
 * exile.majormittens.co.uk
 * © 2015 Exile Mod Team
 *
 * This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License. 
 * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
 */
 
private["_sessionID","_requestingPlayer","_spawnLocationMarkerName","_thugToCheck","_HaloSpawnCheck","_bambiPlayer","_accountData","_direction","_position","_spawnAreaPosition","_spawnAreaRadius","_clanID","_clanData","_clanGroup","_player","_devFriendlyMode","_devs","_parachuteNetID","_spawnType","_parachuteObject"];
_sessionID = _this select 0;
_requestingPlayer = _this select 1;
_spawnLocationMarkerName = _this select 2;
_bambiPlayer = _this select 3;
_accountData = _this select 4;
_direction = random 360;
_Respect = (_accountData select 0);
if ((count ExileSpawnZoneMarkerPositions) isEqualTo 0) then 
{
    _position = call ExileClient_util_world_findCoastPosition;
    if ((toLower worldName) isEqualTo "namalsk") then 
    {
        while {(_position distance2D [76.4239, 107.141, 0]) < 100} do 
        {
            _position = call ExileClient_util_world_findCoastPosition;
        };
    };
}
else 
{
    _spawnAreaPosition = getMarkerPos _spawnLocationMarkerName;
    _spawnAreaRadius = getNumber(configFile >> "CfgSettings" >> "BambiSettings" >> "spawnZoneRadius");
    _position = [_spawnAreaPosition, _spawnAreaRadius] call ExileClient_util_math_getRandomPositionInCircle;
    while {surfaceIsWater _position} do 
    {
        _position = [_spawnAreaPosition, _spawnAreaRadius] call ExileClient_util_math_getRandomPositionInCircle;
    };
};

_name = name _requestingPlayer;
_clanID = (_accountData select 3);
if !((typeName _clanID) isEqualTo "SCALAR") then
{
    _clanID = -1;
    _clanData = [];
}
else
{
    _clanData = missionNamespace getVariable [format ["ExileServer_clan_%1",_clanID],[]];
    if(isNull (_clanData select 5))then
    {
        _clanGroup = createGroup independent;
        _clanData set [5,_clanGroup];
        _clanGroup setGroupIdGlobal [_clanData select 0];
        missionNameSpace setVariable [format ["ExileServer_clan_%1",_clanID],_clanData];
    }
    else
    {
        _clanGroup = (_clanData select 5);
    };
    [_player] joinSilent _clanGroup;
};
_bambiPlayer setPosATL [_position select 0,_position select 1,0];
_bambiPlayer disableAI "FSM";
_bambiPlayer disableAI "MOVE";
_bambiPlayer disableAI "AUTOTARGET";
_bambiPlayer disableAI "TARGET";
_bambiPlayer disableAI "CHECKVISIBLE";
_bambiPlayer setDir _direction;
_bambiPlayer setName _name;
_bambiPlayer setVariable ["ExileMoney", 0, true]; 
_bambiPlayer setVariable ["ExileScore", (_accountData select 0)];
_bambiPlayer setVariable ["ExileKills", (_accountData select 1)];
_bambiPlayer setVariable ["ExileDeaths", (_accountData select 2)];
_bambiPlayer setVariable ["ExileClanID", _clanID];
_bambiPlayer setVariable ["ExileClanData", _clanData];
_bambiPlayer setVariable ["ExileHunger", 100];
_bambiPlayer setVariable ["ExileThirst", 100];
_bambiPlayer setVariable ["ExileTemperature", 37];
_bambiPlayer setVariable ["ExileWetness", 0];
_bambiPlayer setVariable ["ExileAlcohol", 0]; 
_bambiPlayer setVariable ["ExileName", _name]; 
_bambiPlayer setVariable ["ExileOwnerUID", getPlayerUID _requestingPlayer]; 
_bambiPlayer setVariable ["ExileIsBambi", true];
_bambiPlayer setVariable ["ExileXM8IsOnline", false, true];
_bambiPlayer setVariable ["ExileLocker", (_accountData select 4), true];
_devFriendlyMode = getNumber (configFile >> "CfgSettings" >> "ServerSettings" >> "devFriendyMode");
if (_devFriendlyMode isEqualTo 1) then 
{
    _devs = getArray (configFile >> "CfgSettings" >> "ServerSettings" >> "devs");
    {
        if ((getPlayerUID _requestingPlayer) isEqualTo (_x select 0))exitWith 
        {
            if((name _requestingPlayer) isEqualTo (_x select 1))then
            {
                _bambiPlayer setVariable ["ExileMoney", 500000, true];
                _bambiPlayer setVariable ["ExileScore", 100000];
            };
        };
    }
    forEach _devs;
};
_parachuteNetID = "";

_thugToCheck = _sessionID call ExileServer_system_session_getPlayerObject;
_HaloSpawnCheck = _thugToCheck getVariable ["playerWantsHaloSpawn", 0];

if (_HaloSpawnCheck isEqualTo 1) then
{
    _position set [2, getNumber(configFile >> "CfgSettings" >> "BambiSettings" >> "parachuteDropHeight")]; 
    if ((getNumber(configFile >> "CfgSettings" >> "BambiSettings" >> "haloJump")) isEqualTo 1) then
    {
        _bambiPlayer addBackpackGlobal "B_Parachute";
        _bambiPlayer setPosATL _position;
        _spawnType = 2;
    }
    else 
    {
        _parachuteObject = createVehicle ["Steerable_Parachute_F", _position, [], 0, "CAN_COLLIDE"];
        _parachuteObject setDir _direction;
        _parachuteObject setPosATL _position;
        _parachuteObject enableSimulationGlobal true;
        _parachuteNetID = netId _parachuteObject;
        _spawnType = 1;
    };
}
else
{
    _spawnType = 0;
};

switch (true) do 
{
   case (_Respect > 0 && _Respect < 9999):
   //Bambi
     {
     _bambiPlayer forceAddUniform "Exile_Uniform_BambiOverall";
     _bambiplayer addItem "Exile_Item_PlasticBottleFreshWater";
     _bambiplayer addItem "Exile_Item_DuctTape";
     _bambiplayer addItem "Exile_Magazine_7Rnd_45ACP";
     _bambiPlayer addWeaponGlobal "Exile_Weapon_Colt1911";
     
      };
   
   case (_Respect > 10000 && _Respect < 19999):
   //Bambi Plus
    {
     _bambiPlayer forceAddUniform "Exile_Uniform_BambiOverall";
     _bambiplayer addVest "V_Rangemaster_belt";
     _bambiplayer addItem "Exile_Item_PlasticBottleFreshWater";
     _bambiplayer addItem "Exile_Item_Bandage";
     _bambiplayer addItem "Exile_Item_Noodles";
     _bambiplayer addItem "Exile_Item_DuctTape";
     _bambiplayer addItem "Exile_Magazine_7Rnd_45ACP";
     _bambiPlayer addWeaponGlobal "Exile_Weapon_Colt1911";
    };
 
    case (_Respect > 20000 && _Respect < 29999):
    //Super Bambi
    {
     _bambiPlayer forceAddUniform "Exile_Uniform_BambiOverall";
     _bambiplayer addVest "V_Rangemaster_belt";
     _bambiplayer addItem "Exile_Item_PlasticBottleCoffee";
     _bambiplayer addItem "Exile_Item_Bandage";
     _bambiplayer addItem "Exile_Item_Noodles";  
     _bambiplayer addItem "Exile_Item_CanOpener";
     _bambiplayer addItem "Exile_Item_DuctTape";
     _bambiplayer addHeadGear "H_Hat_blue";
     _bambiplayer addItem "Exile_Magazine_7Rnd_45ACP";
     _bambiPlayer addWeaponGlobal "Exile_Weapon_Colt1911";
    };
 
    case (_Respect > 30000 && _Respect < 39999):
    //Definetly Not a Bambi
    {
     _bambiPlayer forceAddUniform "U_C_Man_casual_5_F";
     _bambiplayer addVest "V_Rangemaster_belt";
     _bambiplayer addItem "Exile_Item_PlasticBottleCoffee";
     _bambiplayer addItem "Exile_Item_Bandage";
     _bambiplayer addItem "Exile_Item_Noodles";
     _bambiplayer addItem "Exile_Magazine_7Rnd_45ACP";
     _bambiplayer addItem "Exile_Magazine_7Rnd_45ACP";
     _bambiplayer addItem "Exile_Item_DuctTape";
     _bambiPlayer addWeaponGlobal "Exile_Weapon_Colt1911";
    };
 
    case (_Respect > 40000 && _Respect < 49999):
    //Woodman
    {
     _bambiPlayer forceAddUniform "U_C_Man_casual_6_F";
     _bambiplayer addVest "V_Rangemaster_belt";
     _bambiplayer addItem "Exile_Item_PlasticBottleCoffee";
     _bambiplayer addItem "Exile_Item_Bandage";
     _bambiplayer addItem "Exile_Item_Noodles";
     _bambiplayer addItem "Exile_Item_DuctTape";
     _bambiplayer addItem "Exile_Magazine_7Rnd_45ACP";
     _bambiplayer addItem "Exile_Magazine_7Rnd_45ACP";
     _bambiPlayer addWeaponGlobal "Exile_Weapon_Colt1911";
     _bambiplayer addHeadGear "H_Hat_blue";
    };
    case (_Respect > 50000 && _Respect < 59999):
    //Robber
    {
     _bambiPlayer forceAddUniform "U_C_Man_casual_1_F";
     _bambiplayer addItem "Exile_Item_PlasticBottleCoffee";
     _bambiplayer addVest "V_Rangemaster_belt";
     _bambiplayer addItem "Exile_Item_Bandage";
     _bambiplayer addItem "Exile_Item_DuctTape";
     _bambiplayer addItem "Exile_Item_Noodles";
     _bambiPlayer addMagazine "Exile_Magazine_8Rnd_9x18";
     _bambiPlayer addWeaponGlobal "Exile_Weapon_Makarov";
     _bambiplayer addHeadGear "H_Hat_checker";
    };
    case (_Respect > 60000 && _Respect < 69999):
    //Hunter
    {
     _bambiPlayer forceAddUniform "U_C_HunterBody_grn";
     _bambiplayer addBackpack "B_HuntingBackpack";
     _bambiplayer addVest "V_Rangemaster_belt";
     _bambiplayer addItem "Exile_Item_EnergyDrink";
     _bambiplayer addItem "Exile_Item_Bandage";
     _bambiplayer addItem "Exile_Item_DuctTape";
     _bambiplayer addItem "Exile_Item_Noodles";
     _bambiplayer addItem "Exile_Item_CanOpener";
     _bambiPlayer addMagazine "Exile_Magazine_8Rnd_9x18";
     _bambiPlayer addMagazine "Exile_Magazine_8Rnd_9x18";
     _bambiPlayer addWeaponGlobal "Exile_Weapon_Makarov";
     _bambiplayer addHeadGear "H_StrawHat_dark";
    };
    case (_Respect > 70000 && _Respect < 79999):
    //Worker
    {
     _bambiPlayer forceAddUniform "U_C_WorkerCoveralls";
     _bambiplayer addBackpack "B_HuntingBackpack";
     _bambiplayer addVest "V_Rangemaster_belt";
     _bambiplayer addItem "Exile_Item_PowerDrink";
     _bambiplayer addItem "Exile_Item_DuctTape";
     _bambiplayer addItem "Exile_Item_Bandage";
     _bambiplayer addItem "Exile_Item_BeefParts";
     _bambiplayer addItem "Exile_Item_CanOpener";
     _bambiPlayer addMagazine "10Rnd_9x21_Mag";
     _bambiPlayer addMagazine "10Rnd_9x21_Mag";
     _bambiPlayer addWeaponGlobal "hgun_Pistol_01_F";
     _bambiplayer addHeadGear "H_Booniehat_oli";
    };
    case (_Respect > 80000 && _Respect < 89999):
    //Murderer
    {
     _bambiPlayer forceAddUniform "U_B_T_Soldier_F";
     _bambiplayer addBackpack "B_HuntingBackpack";
     _bambiplayer addVest "V_Rangemaster_belt";
     _bambiplayer addItem "Exile_Item_PowerDrink";
     _bambiplayer addItem "Exile_Item_Vishpirin";
     _bambiplayer addItem "Exile_Item_Dogfood_Cooked";
     _bambiplayer addItem "Exile_Item_CanOpener";
     _bambiplayer addItem "Exile_Item_DuctTape";
     _bambiPlayer addMagazine "30Rnd_9x21_Mag";
     _bambiPlayer addMagazine "30Rnd_9x21_Mag";
     _bambiPlayer addWeaponGlobal "hgun_P07_F";
     _bambiplayer addHeadGear "H_Booniehat_oli";
    };
    case (_Respect > 90000 && _Respect < 999999):
    //Prisoner
    {
     _bambiPlayer forceAddUniform "U_B_T_Soldier_AR_F";
     _bambiplayer addBackpack "B_HuntingBackpack";
     _bambiplayer addVest "V_Rangemaster_belt";
     _bambiplayer addItem "Exile_Item_PowerDrink";
     _bambiplayer addItem "Exile_Item_Vishpirin";
     _bambiplayer addItem "Exile_Item_CatFood_Cooked";
     _bambiplayer addItem "Exile_Item_DuctTape";
     _bambiplayer addItem "Exile_Item_CanOpener";
     _bambiplayer addItem "8Rnd_B_Beneli_74Pellets";
     _bambiPlayer addWeaponGlobal "M1014";
     _bambiplayer addHeadGear "H_Hat_Camo";
    };
};
if((canTriggerDynamicSimulation _bambiPlayer) isEqualTo false) then 
{
    _bambiPlayer triggerDynamicSimulation true; 
};
_bambiPlayer addMPEventHandler ["MPKilled", {_this call ExileServer_object_player_event_onMpKilled}];
_bambiPlayer call ExileServer_object_player_database_insert;
_bambiPlayer call ExileServer_object_player_database_update;
[
    _sessionID, 
    "createPlayerResponse", 
    [
        _bambiPlayer, 
        _parachuteNetID, 
        str (_accountData select 0),
        (_accountData select 1),
        (_accountData select 2),
        100,
        100,
        0,
        (getNumber (configFile >> "CfgSettings" >> "BambiSettings" >> "protectionDuration")) * 60, 
        _clanData,
        _spawnType
    ]
] 
call ExileServer_system_network_send_to;
[_sessionID, _bambiPlayer] call ExileServer_system_session_update;
true

 

 

I got a feeling its this section below. Usually when you mess up these you get a bambi creation timeout, unable to spawn.

  1. Paste the following code inside: ExileClient_object_player_bambiStateBegin = "custom\loadout\ExileClient_object_player_bambiStateBegin.sqf"; Feel free to change the path (bold text).
  2. Create a new file called ExileClient_object_player_bambiStateBegin.sqf in the path you defined in step 3

Make sure the file is being called in the right place.

 

Share this post


Link to post
Share on other sites
1 hour ago, Pattoh said:

I got a feeling its this section below. Usually when you mess up these you get a bambi creation timeout, unable to spawn.

  1. Paste the following code inside: ExileClient_object_player_bambiStateBegin = "custom\loadout\ExileClient_object_player_bambiStateBegin.sqf"; Feel free to change the path (bold text).
  2. Create a new file called ExileClient_object_player_bambiStateBegin.sqf in the path you defined in step 3

Make sure the file is being called in the right place.

 

Just checked and its all done right. I have done many other overrides in the past. It however is still using the loadOut in the BambiSettings class. I can spawn just fine and no errors. It just is not using the overrides classes.

Share this post


Link to post
Share on other sites

Is this still working? because I installed it exactly as it says and it doesn't change anything at all, server boots up and everything but if i kill myself and spawn in, i still have the normal bambi clothes and loadout, and yes i have installed it EXACTLY how it say

Share this post


Link to post
Share on other sites

if you are looking to install this, instead of overriding the file he said to, do this one  ExileServer_object_player_createBambi , it will then actually load. 

  • Like 1

Share this post


Link to post
Share on other sites

It seems now that adding a backpack NOW breaks HALO spawning, specifically if using XSpawn.  When the player gets to a rep level where they get a backpack, when you choose HALO spawn, you never get the option to pull your parachute because apparently it doesn't exist anymore.  I've included my overwrite for ExileServer_object_player_createBambi.sqf.  Does anyone have any thoughts on how to fix this so HALO spawn in XSpawn works AND get the backpack their loadout is assigned?

 

Spoiler

/**
 * ExileServer_object_player_createBambi
 *
 * Exile Mod
 * exile.majormittens.co.uk
 * © 2015 Exile Mod Team
 *
 * This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License. 
 * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
 */
 
private["_sessionID","_requestingPlayer","_spawnLocationMarkerName","_thugToCheck","_HaloSpawnCheck","_bambiPlayer","_accountData","_direction","_position","_spawnAreaPosition","_spawnAreaRadius","_clanID","_clanData","_clanGroup","_player","_devFriendlyMode","_devs","_parachuteNetID","_spawnType","_parachuteObject"];
_sessionID = _this select 0;
_requestingPlayer = _this select 1;
_spawnLocationMarkerName = _this select 2;
_bambiPlayer = _this select 3;
_accountData = _this select 4;
_direction = random 360;
if ((count ExileSpawnZoneMarkerPositions) isEqualTo 0) then 
{
    _position = call ExileClient_util_world_findCoastPosition;
    if ((toLower worldName) isEqualTo "namalsk") then 
    {
        while {(_position distance2D [76.4239, 107.141, 0]) < 100} do 
        {
            _position = call ExileClient_util_world_findCoastPosition;
        };
    };
}
else 
{
    _spawnAreaPosition = getMarkerPos _spawnLocationMarkerName;
    _spawnAreaRadius = getNumber(configFile >> "CfgSettings" >> "BambiSettings" >> "spawnZoneRadius");
    _position = [_spawnAreaPosition, _spawnAreaRadius] call ExileClient_util_math_getRandomPositionInCircle;
    while {surfaceIsWater _position} do 
    {
        _position = [_spawnAreaPosition, _spawnAreaRadius] call ExileClient_util_math_getRandomPositionInCircle;
    };
};
_name = name _requestingPlayer;
_clanID = (_accountData select 3);
if !((typeName _clanID) isEqualTo "SCALAR") then
{
    _clanID = -1;
    _clanData = [];
}
else
{
    _clanData = missionNamespace getVariable [format ["ExileServer_clan_%1",_clanID],[]];
    if(isNull (_clanData select 5))then
    {
        _clanGroup = createGroup independent;
        _clanData set [5,_clanGroup];
        _clanGroup setGroupIdGlobal [_clanData select 0];
        missionNameSpace setVariable [format ["ExileServer_clan_%1",_clanID],_clanData];
    }
    else
    {
        _clanGroup = (_clanData select 5);
    };
    [_player] joinSilent _clanGroup;
};
_bambiPlayer setPosATL [_position select 0,_position select 1,0];
_bambiPlayer disableAI "FSM";
_bambiPlayer disableAI "MOVE";
_bambiPlayer disableAI "AUTOTARGET";
_bambiPlayer disableAI "TARGET";
_bambiPlayer disableAI "CHECKVISIBLE";
_bambiPlayer setDir _direction;
_bambiPlayer setName _name;
_bambiPlayer setVariable ["ExileMoney", 0, true]; 
_bambiPlayer setVariable ["ExileScore", (_accountData select 0)];
_bambiPlayer setVariable ["ExileKills", (_accountData select 1)];
_bambiPlayer setVariable ["ExileDeaths", (_accountData select 2)];
_bambiPlayer setVariable ["ExileClanID", _clanID];
_bambiPlayer setVariable ["ExileClanData", _clanData];
_bambiPlayer setVariable ["ExileHunger", 100];
_bambiPlayer setVariable ["ExileThirst", 100];
_bambiPlayer setVariable ["ExileTemperature", 37];
_bambiPlayer setVariable ["ExileWetness", 0];
_bambiPlayer setVariable ["ExileAlcohol", 0]; 
_bambiPlayer setVariable ["ExileName", _name]; 
_bambiPlayer setVariable ["ExileOwnerUID", getPlayerUID _requestingPlayer]; 
_bambiPlayer setVariable ["ExileIsBambi", true];
_bambiPlayer setVariable ["ExileXM8IsOnline", false, true];
_bambiPlayer setVariable ["ExileLocker", (_accountData select 4), true];
_devFriendlyMode = getNumber (configFile >> "CfgSettings" >> "ServerSettings" >> "devFriendyMode");
if (_devFriendlyMode isEqualTo 1) then 
{
    _devs = getArray (configFile >> "CfgSettings" >> "ServerSettings" >> "devs");
    {
        if ((getPlayerUID _requestingPlayer) isEqualTo (_x select 0))exitWith 
        {
            if((name _requestingPlayer) isEqualTo (_x select 1))then
            {
                _bambiPlayer setVariable ["ExileMoney", 500000, true];
                _bambiPlayer setVariable ["ExileScore", 100000];
            };
        };
    }
    forEach _devs;
};
_parachuteNetID = "";

_thugToCheck = _sessionID call ExileServer_system_session_getPlayerObject;
_HaloSpawnCheck = _thugToCheck getVariable ["playerWantsHaloSpawn", 0];

if (_HaloSpawnCheck isEqualTo 1) then
{
    _position set [2, getNumber(configFile >> "CfgSettings" >> "BambiSettings" >> "parachuteDropHeight")]; 
    if ((getNumber(configFile >> "CfgSettings" >> "BambiSettings" >> "haloJump")) isEqualTo 1) then
    {
        _bambiPlayer addBackpackGlobal "B_Parachute";
        _bambiPlayer setPosATL _position;
        _spawnType = 2;
    }
    else 
    {
        _parachuteObject = createVehicle ["Steerable_Parachute_F", _position, [], 0, "CAN_COLLIDE"];
        _parachuteObject setDir _direction;
        _parachuteObject setPosATL _position;
        _parachuteObject enableSimulationGlobal true;
        _parachuteNetID = netId _parachuteObject;
        _spawnType = 1;
    };
}
else
{
    _spawnType = 0;
};

/* GIVE CUSTOM LOADOUT BY RESPECT STATE */
_score = (_accountData select 0);
switch (true) do {
 case (_score < 5000) :
 {
  clearWeaponCargo _bambiPlayer;
  clearMagazineCargo _bambiPlayer;
  hint "5 - 8k respect loadout attached";
  _bambiPlayer forceAddUniform "U_B_PilotCoveralls";
  _bambiPlayer addVest "V_Rangemaster_belt";
  _bambiPlayer addWeapon 'Exile_Item_XM8';
  _bambiPlayer addWeapon "ItemCompass";
  _bambiPlayer addWeapon "ItemMap";
  _bambiPlayer addMagazines ["30Rnd_9x21_Mag", 2];
  _bambiPlayer addWeapon "hgun_Rook40_F";
  _bambiPlayer addHeadgear "H_Cap_blk_CMMG";
  _bambiPlayer addItemToVest "Exile_Item_EMRE";
  _bambiPlayer addItemToVest "Exile_Item_PlasticBottleFreshWater";
  _bambiPlayer addItemToUniform "Exile_Item_Wrench";
  _bambiPlayer addItemToUniform "Exile_Item_Knife";
  _bambiPlayer addItemToVest "Exile_Item_ExtensionCord";
 };
 case (_score > 4999 && _score < 10000) :
 {
  clearWeaponCargo _bambiPlayer;
  clearMagazineCargo _bambiPlayer;
  hint "8 - 10k respect loadout attached";
  _bambiPlayer forceAddUniform "U_B_PilotCoveralls";
  _bambiPlayer addVest "V_Rangemaster_belt";
  _bambiPlayer addWeapon 'Exile_Item_XM8';
  _bambiPlayer addWeapon "ItemCompass";
  _bambiPlayer addWeapon "ItemMap";
  _bambiPlayer addMagazines ["30Rnd_9x21_Mag", 2];  
  _bambiPlayer addWeapon "hgun_Rook40_F";
  _bambiPlayer addHeadgear "H_Cap_blk_CMMG";
  _bambiPlayer addItemToVest "Exile_Item_EMRE";
  _bambiPlayer addItemToVest "Exile_Item_PlasticBottleFreshWater";
  _bambiPlayer addItemToVest "Exile_Item_PlasticBottleFreshWater"; 
  _bambiPlayer addItemToUniform "Exile_Item_Wrench";
  _bambiPlayer addItemToUniform "Exile_Item_Knife";
  _bambiPlayer addItemToVest "Exile_Item_ExtensionCord";
  _bambiPlayer addItemToVest "Exile_Item_Vishpirin";
 };
 case (_score > 9999 && _score < 25000) :
 {
  clearWeaponCargo _bambiPlayer;
  clearMagazineCargo _bambiPlayer;
  hint "10 - 15k respect loadout attached";
  _bambiPlayer forceAddUniform "U_B_PilotCoveralls";
  _bambiPlayer addVest "V_Rangemaster_belt";
  _bambiPlayer addWeapon 'Exile_Item_XM8';
  _bambiPlayer addWeapon "ItemCompass";
  _bambiPlayer addWeapon "ItemMap";
  _bambiPlayer addMagazines ["30Rnd_9x21_Mag", 2];  
  _bambiPlayer addWeapon "hgun_Rook40_F";
  _bambiPlayer addMagazines ["30Rnd_9x21_Mag_SMG_02", 2];
  _bambiPlayer addWeapon "SMG_02_F";
  _bambiPlayer addHeadgear "H_Cap_blk_CMMG";
  _bambiPlayer addItemToVest "Exile_Item_EMRE";
  _bambiPlayer addItemToVest "Exile_Item_PlasticBottleFreshWater";
  _bambiPlayer addItemToVest "Exile_Item_PlasticBottleFreshWater";
  _bambiPlayer addItemToUniform "Exile_Item_Vishpirin";
  _bambiPlayer addItemToUniform "Exile_Item_Wrench";
  _bambiPlayer addItemToUniform "Exile_Item_Knife";
  _bambiPlayer addItemToVest "Exile_Item_ExtensionCord";
  _bambiPlayer addItemToVest "Exile_Item_DuctTape";
 }; 
 case (_score > 24999 && _score < 50000) :
 {
  clearWeaponCargo _bambiPlayer;
  clearMagazineCargo _bambiPlayer;
  hint "15 - 20k respect loadout attached";
  _bambiPlayer forceAddUniform "U_B_PilotCoveralls";
  _bambiPlayer addVest "V_Rangemaster_belt";
  _bambiPlayer addWeapon "ItemGPS";
  _bambiPlayer addWeapon 'Exile_Item_XM8';
  _bambiPlayer addWeapon "ItemCompass";
  _bambiPlayer addWeapon "ItemMap";
  _bambiPlayer addMagazines ["30Rnd_9x21_Mag", 2]; 
  _bambiPlayer addWeapon "hgun_Rook40_F";
  _bambiPlayer addMagazines ["30Rnd_9x21_Mag_SMG_02", 2];
  _bambiPlayer addWeapon "SMG_02_F";
// _bambiPlayer addBackpack "B_AssaultPack_dgtl";
  _bambiPlayer addHeadgear "H_Cap_blk_CMMG";
  _bambiPlayer addItemToVest "Exile_Item_EMRE";
  _bambiPlayer addItemToVest "Exile_Item_PlasticBottleFreshWater";
  _bambiPlayer addItemToVest "Exile_Item_PlasticBottleFreshWater";
//  _bambiPlayer addItemToBackpack "Exile_Item_Vishpirin";
//  _bambiPlayer addItemToBackpack "Exile_Item_Vishpirin";
  _bambiPlayer addItemToUniform "Exile_Item_Wrench";
  _bambiPlayer addItemToUniform "Exile_Item_Knife";
  _bambiPlayer addItemToVest "Exile_Item_ExtensionCord";
//  _bambiPlayer addItemToBackpack "Exile_Item_DuctTape";
 }; 
 case (_score > 49999 && _score < 100000) :
 {
  clearWeaponCargo _bambiPlayer;
  clearMagazineCargo _bambiPlayer;
  hint "20 - 30k respect loadout attached";
  _bambiPlayer forceAddUniform "U_B_PilotCoveralls";
  _bambiPlayer addVest "V_TacVest_oli";
  _bambiPlayer addWeapon "ItemGPS";
  _bambiPlayer addWeapon 'Exile_Item_XM8';
  _bambiPlayer addWeapon "ItemCompass";
  _bambiPlayer addWeapon "ItemMap";
  _bambiPlayer addMagazines ["30Rnd_9x21_Mag", 2];  
  _bambiPlayer addWeapon "hgun_Rook40_F";
  _bambiPlayer addMagazines ["30Rnd_556x45_Stanag_Tracer_Red", 2];
  _bambiPlayer addWeapon "arifle_SPAR_01_blk_F";
  _bambiPlayer addPrimaryWeaponItem "optic_Aco";
//  _bambiPlayer addBackpack "B_AssaultPack_dgtl";
  _bambiPlayer addHeadgear "H_Booniehat_dgtl";
  _bambiPlayer addItemToVest "Exile_Item_EMRE";
  _bambiPlayer addItemToVest "Exile_Item_PlasticBottleFreshWater";
  _bambiPlayer addItemToVest "Exile_Item_PlasticBottleFreshWater";
//  _bambiPlayer addItemToBackpack "Exile_Item_Vishpirin";
//  _bambiPlayer addItemToBackpack "Exile_Item_Vishpirin";
//  _bambiPlayer addItemToBackpack "Exile_Item_ToiletPaper";
//  _bambiPlayer addItemToBackpack "Exile_Item_ToiletPaper";
//  _bambiPlayer addItemToBackpack "Exile_Item_DuctTape";
  _bambiPlayer addItemToUniform "Exile_Item_Wrench";
  _bambiPlayer addItemToUniform "Exile_Item_Knife";
  _bambiPlayer addItemToVest "Exile_Item_ExtensionCord";
 };
 case (_score > 99999) :
 {
  clearWeaponCargo _bambiPlayer;
  clearMagazineCargo _bambiPlayer;
  hint "30k+ respect loadout attached";
  _bambiPlayer forceAddUniform "U_B_PilotCoveralls";
  _bambiPlayer addVest "V_TacVest_oli";
  _bambiPlayer addWeapon "ItemGPS";
  _bambiPlayer addWeapon 'Exile_Item_XM8';
  _bambiPlayer addWeapon "ItemCompass";
  _bambiPlayer addWeapon "ItemMap";
  _bambiPlayer addMagazines ["30Rnd_9x21_Mag", 2];  
  _bambiPlayer addWeapon "hgun_Rook40_F";
//  _bambiPlayer addItemToBackpack "muzzle_snds_L";
  _bambiPlayer addMagazines ["30Rnd_556x45_Stanag_Tracer_Red", 2];
  _bambiPlayer addWeapon "arifle_SPAR_01_blk_F";
  _bambiPlayer addPrimaryWeaponItem "optic_Hamr";
//  _bambiPlayer addBackpack "B_AssaultPack_dgtl";
  _bambiPlayer addHeadgear "H_HelmetB_light";
  _bambiPlayer addItemToVest "Exile_Item_EMRE";
  _bambiPlayer addItemToVest "Exile_Item_PlasticBottleFreshWater";
  _bambiPlayer addItemToVest "Exile_Item_PlasticBottleFreshWater";
//  _bambiPlayer addItemToBackpack "Exile_Item_InstaDoc";
//  _bambiPlayer addItemToBackpack "Exile_Item_ToiletPaper";
//  _bambiPlayer addItemToBackpack "Exile_Item_ToiletPaper";
//  _bambiPlayer addItemToBackpack "Exile_Item_DuctTape";
  _bambiPlayer addItemToUniform "Exile_Item_Wrench";
  _bambiPlayer addItemToUniform "Exile_Item_Knife";
  _bambiPlayer addItemToVest "Exile_Item_ExtensionCord";
 };  
 default {
 
 };
};
/* END */

_bambiPlayer addMPEventHandler ["MPKilled", {_this call ExileServer_object_player_event_onMpKilled}];
_bambiPlayer call ExileServer_object_player_database_insert;
_bambiPlayer call ExileServer_object_player_database_update;
[
    _sessionID, 
    "createPlayerResponse", 
    [
        _bambiPlayer, 
        _parachuteNetID, 
        str (_accountData select 0),
        (_accountData select 1),
        (_accountData select 2),
        100,
        100,
        0,
        (getNumber (configFile >> "CfgSettings" >> "BambiSettings" >> "protectionDuration")) * 60, 
        _clanData,
        _spawnType
    ]

call ExileServer_system_network_send_to;
[_sessionID, _bambiPlayer] call ExileServer_system_session_update;
true

 

Share this post


Link to post
Share on other sites

this was happening for me so i altered the  ExileServer_object_player_createBambi.sqf to add the following line

between _parachuteNetID = netId _parachuteObject; 

and _spawnType = 1;

add _bambiPlayer moveIndriver _parachuteObject;

  • Like 3

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.