Santa

Custom Loadouts anyone?

15 posts in this topic

Advertisement

is it not possible to setup a custom loadout like so?

create a file called:

on PlayerRespawn.sqf

//=====================================================================================================================
//Respawn Handling
//=====================================================================================================================
if(isDedicated || !hasInterface) exitWith{};
newPlayer = true;

waitUntil {alive vehicle player};
waitUntil {typeOF player != "Exile_Unit_GhostPlayer"};

	//surrenderCheck = false;
	suicideCheck = false;
	playDeadCheck = false;
	
	waitUntil{!isNil "fnc_ext_initSelfActions"};
	[] spawn fnc_ext_initSelfActions;
	
uiSleep 5;

 // Supply Starting Loadout  
     [] execVM "custom\loadoutspawn.sqf"; 
    systemchat("Loadout Supplied...");

then a loadoutspawn.sqf

_don_list = ["xxxxxxxxxxxxxxxxx"]; //NAME

if (isNil "loot_spawned") then {
	loot_spawned = false;
};

if (!loot_spawned) then {
	
	if (getPlayerUID player in _don_list) then {
		systemChat "Donator Loadout Supplied.....";
		removeAllWeapons player;
		clearWeaponCargo player;
		clearMagazineCargo player;
		removeBackpack player;
		_uniform = ["U_C_Journalist","U_OG_Guerilla3_1","U_OG_Guerilla2_2","U_OG_Guerilla3_2"] call BIS_fnc_selectRandom;
		player addVest "V_TacVest_camo";
		player addBackpack "B_Carryall_oli";
		player addWeapon "ItemRadio";
		player addWeapon "ItemMap";
		player addWeapon "hgun_P07_snds_F";
		player addMagazine "30Rnd_9x21_Mag";
		player addItemToBackpack "Exile_Item_InstaDoc";
		player addItemToVest "30Rnd_9x21_Mag";
		player addItemToVest "Exile_Item_BBQSandwich";
		player addItemToVest "Exile_Item_ChristmasTinner";
		player addItemToVest "Exile_Item_Energydrink";
		player addItemToBackpack "30Rnd_9x21_Mag";
		player forceAddUniform _uniform;
	} else {
		systemChat "Standard Loadout Supplied.....";
		removeAllWeapons player;
		clearWeaponCargo player;
		clearMagazineCargo player;
		removeBackpack player;
		
		_uniform = ["U_C_Poloshirt_redwhite","U_C_Poloshirt_salmon","U_C_Poloshirt_tricolour","U_C_Poloshirt_stripped","U_C_Poloshirt_burgundy","U_C_Poloshirt_blue"] call BIS_fnc_selectRandom;
		player addWeapon "ItemMap";
		player addItemToVest "Exile_Item_InstaDoc";
		player addItemToVest "Exile_Item_BBQSandwich";
		player addItemToVest "Exile_Item_Energydrink";
		player addWeapon "hgun_P07_F";
		player addMagazine "30Rnd_9x21_Mag";
		player addMagazine "30Rnd_9x21_Mag";
		
		_modelMale = (typeOF player == "Exile_Unit_GhostPlayer");
		
		if (_modelMale) then 
		{
			player forceAddUniform _uniform;	
		};
	};
	loot_spawned = true;
};
	
player addEventHandler [
	"Respawn",
	{
		getcallcab = true;
		loot_spawned = true;
	}
];

or is there something on server side that would not allow this to work?

Share this post


Link to post
Share on other sites

is it not possible to setup a custom loadout like so?

create a file called:

on PlayerRespawn.sqf

//=====================================================================================================================
//Respawn Handling
//=====================================================================================================================
if(isDedicated || !hasInterface) exitWith{};
newPlayer = true;

waitUntil {alive vehicle player};
waitUntil {typeOF player != "Exile_Unit_GhostPlayer"};

	//surrenderCheck = false;
	suicideCheck = false;
	playDeadCheck = false;
	
	waitUntil{!isNil "fnc_ext_initSelfActions"};
	[] spawn fnc_ext_initSelfActions;
	
uiSleep 5;

 // Supply Starting Loadout  
     [] execVM "custom\loadoutspawn.sqf"; 
    systemchat("Loadout Supplied...");

then a loadoutspawn.sqf

_don_list = ["xxxxxxxxxxxxxxxxx"]; //NAME

if (isNil "loot_spawned") then {
	loot_spawned = false;
};

if (!loot_spawned) then {
	
	if (getPlayerUID player in _don_list) then {
		systemChat "Donator Loadout Supplied.....";
		removeAllWeapons player;
		clearWeaponCargo player;
		clearMagazineCargo player;
		removeBackpack player;
		_uniform = ["U_C_Journalist","U_OG_Guerilla3_1","U_OG_Guerilla2_2","U_OG_Guerilla3_2"] call BIS_fnc_selectRandom;
		player addVest "V_TacVest_camo";
		player addBackpack "B_Carryall_oli";
		player addWeapon "ItemRadio";
		player addWeapon "ItemMap";
		player addWeapon "hgun_P07_snds_F";
		player addMagazine "30Rnd_9x21_Mag";
		player addItemToBackpack "Exile_Item_InstaDoc";
		player addItemToVest "30Rnd_9x21_Mag";
		player addItemToVest "Exile_Item_BBQSandwich";
		player addItemToVest "Exile_Item_ChristmasTinner";
		player addItemToVest "Exile_Item_Energydrink";
		player addItemToBackpack "30Rnd_9x21_Mag";
		player forceAddUniform _uniform;
	} else {
		systemChat "Standard Loadout Supplied.....";
		removeAllWeapons player;
		clearWeaponCargo player;
		clearMagazineCargo player;
		removeBackpack player;
		
		_uniform = ["U_C_Poloshirt_redwhite","U_C_Poloshirt_salmon","U_C_Poloshirt_tricolour","U_C_Poloshirt_stripped","U_C_Poloshirt_burgundy","U_C_Poloshirt_blue"] call BIS_fnc_selectRandom;
		player addWeapon "ItemMap";
		player addItemToVest "Exile_Item_InstaDoc";
		player addItemToVest "Exile_Item_BBQSandwich";
		player addItemToVest "Exile_Item_Energydrink";
		player addWeapon "hgun_P07_F";
		player addMagazine "30Rnd_9x21_Mag";
		player addMagazine "30Rnd_9x21_Mag";
		
		_modelMale = (typeOF player == "Exile_Unit_GhostPlayer");
		
		if (_modelMale) then 
		{
			player forceAddUniform _uniform;	
		};
	};
	loot_spawned = true;
};
	
player addEventHandler [
	"Respawn",
	{
		getcallcab = true;
		loot_spawned = true;
	}
];

or is there something on server side that would not allow this to work?

It could probably work however you need to disable parachute spawn halo & para, and do ground spawn instead, otherwise the loadout will be overwritten by Exile. 

  • Like 1

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.