<commit_before>//	@file Name: playerSetup.sqf
//	@file Author: [GoT] JoSchaap

_player = _this;
_player setskill 0;
{_player disableAI _x} foreach ["move","anim","target","autotarget"];
_player setVariable ["BIS_noCoreConversations", true];
_player allowDamage false;

removeAllWeapons _player;
removeUniform _player;
removeVest _player;
removeBackpack _player;
removeHeadgear _player;
removeGoggles _player;

switch (playerSide) do
{
	case BLUFOR: 
	{
		switch (true) do
		{
			case (_player isKindOf "B_sniper_F"):
			{ 
				_player addUniform "U_B_Ghilliesuit"; 
				_player addVest "V_PlateCarrierGL_rgr"; 
			};
			case (_player isKindOf "B_diver_F"):
			{ 
				_player addUniform "U_B_Wetsuit"; 
				_player addVest "V_RebreatherB";
				_player addGoggles "G_Diving";
			};
			default
			{ 
				_player addUniform "U_B_CombatUniform_mcam";
				_player addVest "V_PlateCarrierGL_rgr";
				_player addHeadgear "H_HelmetB";
			};
		};
	};
	case OPFOR:
	{
		switch (true) do
		{
			case (_player isKindOf "O_sniper_F"):
			{ 
				_player addUniform "U_O_Ghilliesuit"; 
				_player addVest "V_HarnessO_brn";
			};
			case (_player isKindOf "O_diver_F"):
			{ 
				_player addUniform "U_O_Wetsuit"; 
				_player addVest "V_RebreatherIR";
				_player addGoggles "G_Diving";
			};
			default
			{ 
				_player addUniform "U_O_CombatUniform_ocamo";
				_player addVest "V_HarnessO_brn";
				_player addHeadgear "H_HelmetO_ocamo";
			};
		};
	};
	default
	{
		switch (true) do
		{
			case (_player isKindOf "I_sniper_F"):
			{ 
				_player addUniform "U_I_Ghilliesuit"; 
				_player addVest "V_PlateCarrierIA2_dgtl";
			};
			case (_player isKindOf "I_diver_F"):
			{ 
				_player addUniform "U_I_Wetsuit"; 
				_player addVest "V_RebreatherIA";
				_player addGoggles "G_Diving";
			};
			default
			{ 
				_player addUniform "U_O_CombatUniform_ocamo";
				_player addVest "V_PlateCarrierIA2_dgtl";
				_player addHeadgear "H_HelmetIA";
			};
		};
	};
};

// seems ghillysuit comes with a GPS so moved this here:
// this doesnt work for the sniper class, open for suggestions!
_player removeWeapon "ItemRadio";
_player removeWeapon "ItemGPS";

_hasNVGoggles = false;

{
    if (["NVGoggles", _x] call fn_findString == 0) exitWith
    {
        _hasNVGoggles = true;
    };
} forEach assignedItems _player;

if (!_hasNVGoggles) then
{
	_player addItem "NVGoggles";
	_player assignItem "NVGoggles";
};

//_player addBackpack "B_Kitbag_Base";
_player addMagazine "9Rnd_45ACP_Mag";
_player addWeapon "hgun_ACPC2_F";
_player addMagazine "9Rnd_45ACP_Mag";
_player addMagazine "9Rnd_45ACP_Mag";
_player addMagazine "9Rnd_45ACP_Mag";
_player addItem "FirstAidKit";
_player selectWeapon "hgun_ACPC2_F";

_player addrating 9999999;

thirstLevel = 100;
hungerLevel = 100;

[objNull, _player] call mf_player_actions_refresh;
[] execVM "client\functions\playerActions.sqf";

_player groupChat format["Wasteland - Initialization Complete"];
playerSetupComplete = true;<commit_msg>Revert "no backpack on spawn"<commit_after>//	@file Name: playerSetup.sqf
//	@file Author: [GoT] JoSchaap

_player = _this;
_player setskill 0;
{_player disableAI _x} foreach ["move","anim","target","autotarget"];
_player setVariable ["BIS_noCoreConversations", true];
_player allowDamage false;

removeAllWeapons _player;
removeUniform _player;
removeVest _player;
removeBackpack _player;
removeHeadgear _player;
removeGoggles _player;

switch (playerSide) do
{
	case BLUFOR: 
	{
		switch (true) do
		{
			case (_player isKindOf "B_sniper_F"):
			{ 
				_player addUniform "U_B_Ghilliesuit"; 
				_player addVest "V_PlateCarrierGL_rgr"; 
			};
			case (_player isKindOf "B_diver_F"):
			{ 
				_player addUniform "U_B_Wetsuit"; 
				_player addVest "V_RebreatherB";
				_player addGoggles "G_Diving";
			};
			default
			{ 
				_player addUniform "U_B_CombatUniform_mcam";
				_player addVest "V_PlateCarrierGL_rgr";
				_player addHeadgear "H_HelmetB";
			};
		};
	};
	case OPFOR:
	{
		switch (true) do
		{
			case (_player isKindOf "O_sniper_F"):
			{ 
				_player addUniform "U_O_Ghilliesuit"; 
				_player addVest "V_HarnessO_brn";
			};
			case (_player isKindOf "O_diver_F"):
			{ 
				_player addUniform "U_O_Wetsuit"; 
				_player addVest "V_RebreatherIR";
				_player addGoggles "G_Diving";
			};
			default
			{ 
				_player addUniform "U_O_CombatUniform_ocamo";
				_player addVest "V_HarnessO_brn";
				_player addHeadgear "H_HelmetO_ocamo";
			};
		};
	};
	default
	{
		switch (true) do
		{
			case (_player isKindOf "I_sniper_F"):
			{ 
				_player addUniform "U_I_Ghilliesuit"; 
				_player addVest "V_PlateCarrierIA2_dgtl";
			};
			case (_player isKindOf "I_diver_F"):
			{ 
				_player addUniform "U_I_Wetsuit"; 
				_player addVest "V_RebreatherIA";
				_player addGoggles "G_Diving";
			};
			default
			{ 
				_player addUniform "U_O_CombatUniform_ocamo";
				_player addVest "V_PlateCarrierIA2_dgtl";
				_player addHeadgear "H_HelmetIA";
			};
		};
	};
};

// seems ghillysuit comes with a GPS so moved this here:
_player removeWeapon "ItemRadio";
_player removeWeapon "ItemGPS";

_hasNVGoggles = false;

{
    if (["NVGoggles", _x] call fn_findString == 0) exitWith
    {
        _hasNVGoggles = true;
    };
} forEach assignedItems _player;

if (!_hasNVGoggles) then
{
	_player addItem "NVGoggles";
	_player assignItem "NVGoggles";
};

_player addBackpack "B_Kitbag_Base";
_player addMagazine "9Rnd_45ACP_Mag";
_player addWeapon "hgun_ACPC2_F";
_player addMagazine "9Rnd_45ACP_Mag";
_player addMagazine "9Rnd_45ACP_Mag";
_player addMagazine "9Rnd_45ACP_Mag";
_player addItem "FirstAidKit";
_player selectWeapon "hgun_ACPC2_F";

_player addrating 9999999;

thirstLevel = 100;
hungerLevel = 100;

[objNull, _player] call mf_player_actions_refresh;
[] execVM "client\functions\playerActions.sqf";

_player groupChat format["Wasteland - Initialization Complete"];
playerSetupComplete = true;
{'fraction_non_alphanumeric': 0.10176991150442478, 'fraction_numerical': 0.01055139550714772, 'mean_word_length': 4.2473214285714285, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '905596', 'n_tokens_mistral': 2630, 'n_tokens_neox': 2329, 'n_words': 485}