<commit_before>// ******************************************************************************************
// * This project is licensed under the GNU Affero GPL v3. Copyright © 2014 A3Wasteland.com *
// ******************************************************************************************
//	@file Name: playerSetupGear.sqf
//	@file Author: [GoT] JoSchaap, AgentRev

private ["_player", "_uniform", "_vest", "_headgear", "_goggles"];
_player = _this;

// Clothing is now defined in "client\functions\getDefaultClothing.sqf"

_uniform = [_player, "uniform"] call getDefaultClothing;
_vest = [_player, "vest"] call getDefaultClothing;
_headgear = [_player, "headgear"] call getDefaultClothing;
_goggles = [_player, "goggles"] call getDefaultClothing;

if (_uniform != "") then { _player addUniform _uniform };
if (_vest != "") then { _player addVest _vest };
if (_headgear != "") then { _player addHeadgear _headgear };
if (_goggles != "") then { _player addGoggles _goggles };

sleep 0.1;

// Remove GPS
_player unlinkItem "ItemGPS";

// Remove radio
//_player unlinkItem "ItemRadio";

// Remove NVG
if (hmd _player != "") then { _player unlinkItem hmd _player };

// Add NVG
_player linkItem "NVGoggles";


_player addMagazine "9Rnd_45ACP_Mag";
_player addWeapon "hgun_ACPC2_F";
_player addMagazine "9Rnd_45ACP_Mag";
_player addItem "FirstAidKit";
_player addItem "FirstAidKit";
_player addItem "FirstAidKit";
_player selectWeapon "hgun_ACPC2_F";
_player addMagazine "HandGrenade";

switch (true) do
{
	case (["_medic_", typeOf _player] call fn_findString != -1):
	{
		_player addBackpack "B_FieldPack_oli";
		_player addMagazine "30Rnd_65x39_caseless_green";
		_player addMagazine "30Rnd_65x39_caseless_green";
		_player addWeapon "arifle_Katiba_F";
		_player addPrimaryWeaponItem "acc_flashlight";
		_player addPrimaryWeaponItem "optic_Holosight";
		_player removeItem "FirstAidKit";
		_player removeItem "FirstAidKit";
		_player removeItem "FirstAidKit";
		_player addItem "Medikit";
		_player selectWeapon "arifle_Katiba_F";
		_player addMagazine "HandGrenade";
		_player addMagazine "SmokeShell";
		_player addMagazine "SmokeShell";
	};
	case (["_engineer_", typeOf _player] call fn_findString != -1):
	{
		_player addBackpack "B_Kitbag_sgg";
		_player addMagazine "30Rnd_556x45_Stanag";
		_player addMagazine "30Rnd_556x45_Stanag";
		_player addWeapon "arifle_Mk20_F";
		_player addPrimaryWeaponItem "acc_flashlight";
		_player addPrimaryWeaponItem "optic_Holosight";
		_player addMagazine "RPG32_F";
		_player addMagazine "RPG32_F";
		_player addWeapon "launch_RPG32_F";
		_player addItem "MineDetector";
		_player addItem "Toolkit";
		_player selectWeapon "arifle_Mk20_F";
	};
	case (["_sniper_", typeOf _player] call fn_findString != -1):
	{
		_player addBackpack "B_AssaultPack_rgr";
		_player addMagazine "30Rnd_65x39_caseless_mag";
		_player addMagazine "30Rnd_65x39_caseless_mag";
		_player addWeapon "arifle_MXM_F";
		_player addPrimaryWeaponItem "acc_flashlight";
		_player addPrimaryWeaponItem "optic_MRCO";
		_player addWeapon "Rangefinder";
		_player addItem "ClaymoreDirectionalMine_Remote_Mag";
		_player addItem "ClaymoreDirectionalMine_Remote_Mag";
		_player selectWeapon "arifle_MXM_F";
	};
	case (["_diver_", typeOf _player] call fn_findString != -1):
	{
		_player addBackpack "B_FieldPack_oli";
		_player addMagazine "20Rnd_556x45_UW_mag";
		_player addMagazine "20Rnd_556x45_UW_mag";
		_player addMagazine "20Rnd_556x45_UW_mag";
		_player addWeapon "arifle_SDAR_F";
		_player addItem "DemoCharge_Remote_Mag";
		_player addItem "DemoCharge_Remote_Mag";
		_player selectWeapon "arifle_SDAR_F";
		_player addMagazine "HandGrenade";
	};
	case (["_soldier_GL_", typeOf _player] call fn_findString != -1):
	{
		_player addBackpack "B_FieldPack_oli";
		_player addMagazine "1Rnd_HE_Grenade_shell";
		_player addMagazine "1Rnd_HE_Grenade_shell";
		_player addMagazine "30Rnd_556x45_Stanag";
		_player addMagazine "30Rnd_556x45_Stanag";
		_player addWeapon "arifle_TRG21_GL_F";
		_player addPrimaryWeaponItem "optic_Arco";
		_player selectWeapon "arifle_TRG21_GL_F";
		_player addMagazine "HandGrenade";
		_player addMagazine "HandGrenade";
		_player addMagazine "SmokeShellYellow";
		_player addMagazine "SmokeShellYellow";
	};
	case (["_soldier_exp_", typeOf _player] call fn_findString != -1):
	{
		removeVest _player;
		_player addVest "V_PlateCarrierGL_rgr";
		_player addBackpack "B_FieldPack_oli";
		_player addMagazine "30Rnd_556x45_Stanag";
		_player addMagazine "30Rnd_556x45_Stanag";
		_player addWeapon "arifle_Mk20_plain_F";
		_player addPrimaryWeaponItem "optic_Arco";
		_player selectWeapon "arifle_Mk20_plain_F";
		_player addMagazine "HandGrenade";
		_player addMagazine "HandGrenade";
		_player addItem "MineDetector";
		_player addItem "DemoCharge_Remote_Mag";
		_player addItem "DemoCharge_Remote_Mag";
		_player addItem "SatchelCharge_Remote_Mag";
		_player addItem "ClaymoreDirectionalMine_Remote_Mag";
		_player addItem "ClaymoreDirectionalMine_Remote_Mag";
		_player addItem "APERSMine_Range_Mag";
		_player addItem "APERSMine_Range_Mag";
	};
};

if (_player == player) then
{
	thirstLevel = 100;
	hungerLevel = 100;<commit_msg>Small loadout changes<commit_after>// ******************************************************************************************
// * This project is licensed under the GNU Affero GPL v3. Copyright © 2014 A3Wasteland.com *
// ******************************************************************************************
//	@file Name: playerSetupGear.sqf
//	@file Author: [GoT] JoSchaap, AgentRev

private ["_player", "_uniform", "_vest", "_headgear", "_goggles"];
_player = _this;

// Clothing is now defined in "client\functions\getDefaultClothing.sqf"

_uniform = [_player, "uniform"] call getDefaultClothing;
_vest = [_player, "vest"] call getDefaultClothing;
_headgear = [_player, "headgear"] call getDefaultClothing;
_goggles = [_player, "goggles"] call getDefaultClothing;

if (_uniform != "") then { _player addUniform _uniform };
if (_vest != "") then { _player addVest _vest };
if (_headgear != "") then { _player addHeadgear _headgear };
if (_goggles != "") then { _player addGoggles _goggles };

sleep 0.1;

// Remove GPS
_player unlinkItem "ItemGPS";

// Remove radio
//_player unlinkItem "ItemRadio";

// Remove NVG
if (hmd _player != "") then { _player unlinkItem hmd _player };

// Add NVG
_player linkItem "NVGoggles";


_player addMagazine "9Rnd_45ACP_Mag";
_player addWeapon "hgun_ACPC2_F";
_player addMagazine "9Rnd_45ACP_Mag";
_player addItem "FirstAidKit";
_player addItem "FirstAidKit";
_player addItem "FirstAidKit";
_player selectWeapon "hgun_ACPC2_F";
_player addMagazine "HandGrenade";

switch (true) do
{
	case (["_medic_", typeOf _player] call fn_findString != -1):
	{
		_player addBackpack "B_FieldPack_oli";
		_player addMagazine "30Rnd_65x39_caseless_green";
		_player addMagazine "30Rnd_65x39_caseless_green";
		_player addWeapon "arifle_Katiba_F";
		_player addPrimaryWeaponItem "acc_flashlight";
		_player addPrimaryWeaponItem "optic_Arco";
		_player removeItem "FirstAidKit";
		_player removeItem "FirstAidKit";
		_player removeItem "FirstAidKit";
		_player addItem "Medikit";
		_player selectWeapon "arifle_Katiba_F";
		_player addMagazine "HandGrenade";
		_player addMagazine "SmokeShell";
		_player addMagazine "SmokeShell";
	};
	case (["_engineer_", typeOf _player] call fn_findString != -1):
	{
		_player addBackpack "B_Kitbag_sgg";
		_player addMagazine "30Rnd_556x45_Stanag";
		_player addMagazine "30Rnd_556x45_Stanag";
		_player addWeapon "arifle_Mk20_F";
		_player addPrimaryWeaponItem "acc_flashlight";
		_player addPrimaryWeaponItem "optic_Hamr";
		_player addMagazine "RPG32_F";
		_player addMagazine "RPG32_F";
		_player addWeapon "launch_RPG32_F";
		_player addItem "MineDetector";
		_player addItem "Toolkit";
		_player selectWeapon "arifle_Mk20_F";
	};
	case (["_sniper_", typeOf _player] call fn_findString != -1):
	{
		_player addBackpack "B_AssaultPack_rgr";
		_player addMagazine "30Rnd_65x39_caseless_mag";
		_player addMagazine "30Rnd_65x39_caseless_mag";
		_player addWeapon "arifle_MXM_F";
		_player addPrimaryWeaponItem "acc_flashlight";
		_player addPrimaryWeaponItem "optic_MRCO";
		_player addWeapon "Rangefinder";
		_player addItem "ClaymoreDirectionalMine_Remote_Mag";
		_player addItem "ClaymoreDirectionalMine_Remote_Mag";
		_player selectWeapon "arifle_MXM_F";
	};
	case (["_diver_", typeOf _player] call fn_findString != -1):
	{
		_player addBackpack "B_FieldPack_oli";
		_player addMagazine "20Rnd_556x45_UW_mag";
		_player addMagazine "20Rnd_556x45_UW_mag";
		_player addMagazine "20Rnd_556x45_UW_mag";
		_player addWeapon "arifle_SDAR_F";
		_player addItem "DemoCharge_Remote_Mag";
		_player addItem "DemoCharge_Remote_Mag";
		_player selectWeapon "arifle_SDAR_F";
		_player addMagazine "HandGrenade";
	};
	case (["_soldier_GL_", typeOf _player] call fn_findString != -1):
	{
		_player addBackpack "B_FieldPack_oli";
		_player addMagazine "1Rnd_HE_Grenade_shell";
		_player addMagazine "1Rnd_HE_Grenade_shell";
		_player addMagazine "30Rnd_556x45_Stanag";
		_player addMagazine "30Rnd_556x45_Stanag";
		_player addWeapon "arifle_TRG21_GL_F";
		_player addPrimaryWeaponItem "optic_Arco";
		_player selectWeapon "arifle_TRG21_GL_F";
		_player addMagazine "HandGrenade";
		_player addMagazine "HandGrenade";
		_player addMagazine "SmokeShellYellow";
		_player addMagazine "SmokeShellYellow";
	};
	case (["_soldier_exp_", typeOf _player] call fn_findString != -1):
	{
		removeVest _player;
		_player addVest "V_PlateCarrierGL_rgr";
		_player addBackpack "B_FieldPack_oli";
		_player addMagazine "30Rnd_556x45_Stanag";
		_player addMagazine "30Rnd_556x45_Stanag";
		_player addWeapon "arifle_Mk20_plain_F";
		_player addPrimaryWeaponItem "optic_Arco";
		_player selectWeapon "arifle_Mk20_plain_F";
		_player addMagazine "HandGrenade";
		_player addItem "MineDetector";
		_player addItem "DemoCharge_Remote_Mag";
		_player addItem "DemoCharge_Remote_Mag";
		_player addItem "SatchelCharge_Remote_Mag";
		_player addItem "APERSMine_Range_Mag";
		_player addItem "APERSMine_Range_Mag";
		_player addItem "ATMine_Range_Mag";
	};
};

if (_player == player) then
{
	thirstLevel = 100;
	hungerLevel = 100;
{'fraction_non_alphanumeric': 0.13045601015525826, 'fraction_numerical': 0.026364612830778244, 'mean_word_length': 6.481373265157049, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, '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': '1541078', 'n_tokens_mistral': 4135, 'n_tokens_neox': 3730, 'n_words': 813}