Jump to content
  • 0

Donator Spawn loadout without Database triggers


MassAsster

Question

I've been toying around with how not to do database driven donator spawn loot, I've come up with this system that  I am currently testing.

 

Inside the server PBO, inside the compile folder  locate server_playerLogin.sqf

 

AFTER line

if (count _this > 2) then {
	dayz_players = dayz_players - [_this select 2];
};

Insert your custom user spawn setups.

if (_playerID == "3042438") then {
//MassAsster
_inventory =	[["ItemMap","ItemFlashlight","ItemWatch","ItemCompass","revolver_gold_EP1","AKS_GOLD"], ["ItemBandage","6Rnd_45ACP","6Rnd_45ACP","6Rnd_45ACP","30Rnd_762x39_AK47","ItemBandage","ItemPainkiller","ItemEpinephrine","ItemAntibiotic","ItemMorphine","ItemWaterbottle","FoodCanBakedBeans"]];
_backpack = 	["DZ_ALICE_Pack_EP1",[[],[]],[[],[]]]; };

if (_playerID == "3042694") then {
//Adam
_inventory =	[["ItemMap","ItemFlashlight","ItemWatch","ItemCompass","revolver_gold_EP1","AKS_GOLD"], ["ItemBandage","6Rnd_45ACP","6Rnd_45ACP","6Rnd_45ACP","30Rnd_762x39_AK47","ItemBandage","ItemPainkiller","ItemEpinephrine","ItemAntibiotic","ItemMorphine","ItemWaterbottle","FoodCanBakedBeans"]];
_backpack = 	["DZ_ALICE_Pack_EP1",[[],[]],[[],[]]]; };

if (_playerID == "3042630") then {
//jody
_inventory =	[["ItemMap","ItemFlashlight","ItemWatch","ItemCompass","revolver_gold_EP1","AKS_GOLD"], ["ItemBandage","6Rnd_45ACP","6Rnd_45ACP","6Rnd_45ACP","30Rnd_762x39_AK47","ItemBandage","ItemPainkiller","ItemEpinephrine","ItemAntibiotic","ItemMorphine","ItemWaterbottle","FoodCanBakedBeans"]];
_backpack = 	["DZ_ALICE_Pack_EP1",[[],[]],[[],[]]]; };

if (_playerID == "138731014") then {
//Greg
_inventory =	[["ItemMap","ItemFlashlight","ItemWatch","ItemCompass","revolver_gold_EP1","AKS_GOLD"], ["ItemBandage","6Rnd_45ACP","6Rnd_45ACP","6Rnd_45ACP","30Rnd_762x39_AK47","ItemBandage","ItemPainkiller","ItemEpinephrine","ItemAntibiotic","ItemMorphine","ItemWaterbottle","FoodCanBakedBeans"]];
_backpack = 	["DZ_ALICE_Pack_EP1",[[],[]],[[],[]]]; };

Comment out any spawn setups that may exist under these lines.

//Variables
//_inventory =	[[], []];
//_backpack = 	["DZ_ALICE_Pack_EP1",[[],[]],[[],[]]];
//_items = 		[];
//_magazines = 	[];
//_weapons = 		[];
//_medicalStats =	[];

Locate your Init inside your mission.pbo

 

Locate (if they are inside) or insert (if they are not)

DefaultMagazines = ["ItemBandage","ItemBandage","ItemMorphine"];
DefaultWeapons = ["ItemFlashlight","ItemWatch","ItemCompass"];
DefaultBackpack = "DZ_ALICE_Pack_EP1";
DefaultBackpackWeapon = "";

Notice I do not give out a weapon, if i give a pistol to my default setup, than it will cause a bug with my donators setup, donators will get two pistols overlaying each other... To resolve this you can simply not assign a pistol to the default like I have done, or you can assign a pistol to the default and not assign one to the donator, simply give the donator more ammo. Either way you want to work it.

 

 

Have fun!

Link to comment
Share on other sites

Recommended Posts

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
×
×
  • Create New...