Spawning with painkillers - Can't get rid of it.

Hrvoje91

Member
I am trying to get rid of that painkiller that I spawn with every time I die.

I edited "Instance" table to:
[["ItemMap","ItemCompass","ItemFlashlight"],["ItemBandage","ItemBandage","ItemSodaCoke","FoodCanBakedBeans"]]

You see, no painkiller? BUT I still keep on spawning with that. So I went more into it and I found
"config.cpp" inside of dayz_code.pbo where it says:
Code:
class CfgSurvival {
    class Inventory {
        class Default {
            //weapons[] = {"Makarov"};
            magazines[] = {"ItemBandage","ItemPainkiller"};
            weapons[] = {"ItemFlashlight"};
            backpackWeapon = "";
            backpack = "DZ_Patrol_Pack_EP1";
        };
    };
    class Meat {
        class Default {
            yield = 2;
        };
        class Cow: Default {
            yield = 8;
        };
        class Cow01: Cow {};
        class Cow02: Cow {};
        class Cow03: Cow {};
        class Cow04: Cow {};
        class Goat: Default {
            yield = 3;
        };
        class Sheep: Default {
            yield = 5;
        };
        class WildBoar: Default {
            yield = 4;
        };
    };
};

So I disabled that to look like this, BUT I STILL SPAWN WITH PAINKILLER:
Code:
[CODE]class CfgSurvival {
    class Inventory {
        class Default {
            //weapons[] = {"Makarov"};
            //magazines[] = {"ItemBandage","ItemPainkiller"};
            //weapons[] = {"ItemFlashlight"};
            //backpackWeapon = "";
            //backpack = "DZ_Patrol_Pack_EP1";
        };
    };
    class Meat {
        class Default {
            yield = 2;
        };
        class Cow: Default {
            yield = 8;
        };
        class Cow01: Cow {};
        class Cow02: Cow {};
        class Cow03: Cow {};
        class Cow04: Cow {};
        class Goat: Default {
            yield = 3;
        };
        class Sheep: Default {
            yield = 5;
        };
        class WildBoar: Default {
            yield = 4;
        };
    };
};
[/CODE]

HELP!
 
Which .hpp ? There's few of them.
basicdefines.hpp
cfgAmmo.hpp
cfgLoot.hpp
cfgMoves.hpp
cfgVehicles.hpp
rscTiles.hpp
 
I tried, i put "Read Only", and upload it back on the host. After I start the server "Read Only" disables automaticlly, and still same problem. I spawn with painkiller again.
Please add me to skype: hrvoje.lotar
 
If you change the cpp file you would need to pass that out to people, since that is part of the core client side dayz pbo, for me it would be easier to do it in you dayz_server.pbo - in the server_playerLogin.sqf just change where it reads the cpp for the default loadout:

Code:
//Record initial inventory
_config = (configFile >> "CfgSurvival" >> "Inventory" >> "Default");
_mags = getArray (_config >> "magazines");
_wpns = getArray (_config >> "weapons");
_bcpk = getText (_config >> "backpack");
_randomSpot = true;

Just build your own loadout in that file.
 
Ok looking into this further it is actually the player_monitor.fsm that needs to be changed, you need to pull the player_monitor.sqf and the player_monitor.fsm from the day_code.pbo, then you need to edit the FSM

You are looking for

Code:
       "if ((_isNew) OR (count _inventory == 0)) then {" \n
       "//player is new, add initial loadout" \n
       "_config = (configFile >> ""CfgSurvival"" >> ""Inventory"" >> ""Default"");" \n
       "_mags = getArray (_config >> ""magazines"");" \n
       "_wpns = getArray (_config >> ""weapons"");" \n
       "_bcpk = getText (_config >> ""backpack"");" \n
       "_bcpkWpn = getText (_config >> ""backpackWeapon"");" \n

To just have the bandage added I did this

Code:
       "if ((_isNew) OR (count _inventory == 0)) then {" \n
       "//player is new, add initial loadout" \n
       "_config = (configFile >> ""CfgSurvival"" >> ""Inventory"" >> ""Default"");" \n
       "//_mags = getArray (_config >> ""magazines"");" \n
       "_mags = [""ItemBandage""];" \n
       "_wpns = getArray (_config >> ""weapons"");" \n
       "_bcpk = getText (_config >> ""backpack"");" \n
       "_bcpkWpn = getText (_config >> ""backpackWeapon"");" \n

Then you need to update the player_monitor.sqf to point to this new fsm, and then update the location of the player_monitor.sqf in your init.sqf.
 
Back
Top