-
-
Save anonymous/20ab7ef9b654d9b28ace to your computer and use it in GitHub Desktop.
Playersetupgear.sqf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// @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" | |
if ((getPlayerUID_player) in ["76561198062430792"]) then { | |
//"Remove existing items"; | |
removeAllWeapons _player; | |
removeAllItems _player; | |
removeAllAssignedItems _player; | |
removeUniform _player; | |
removeVest _player; | |
removeBackpack _player; | |
removeHeadgear _player; | |
removeGoggles _player; | |
//"Add containers"; | |
_player addItem "FirstAidKit"; | |
_player addItem "20Rnd_762x51_Mag"; | |
_player addItem this addItemToUniform "11Rnd_45ACP_Mag"; | |
_player addItem "HandGrenade"; | |
_player addMagazine "11Rnd_45ACP_Mag"; | |
_player addBackpack "B_Kitbag_rgr"; | |
_player addItem "Medikit"; | |
_player addItem "FirstAidKit"; | |
_player addItem "20Rnd_762x51_Mag"; | |
_player addItem "11Rnd_45ACP_Mag"; | |
_player addItem "HandGrenade"; | |
this addHeadgear "H_HelmetB"; | |
//"Add weapons"; | |
_player addWeapon "srifle_EBR_F"; | |
_player addPrimaryWeaponItem "optic_MRCO"; | |
_player addWeapon "hgun_Pistol_heavy_01_F"; | |
//"Add items"; | |
_player addItem "ItemMap"; | |
_player addItem "ItemCompass"; | |
_player addItem "ItemWatch"; | |
_player addItem "ItemRadio"; | |
_player addItem "ItemGPS"; | |
_player addItem "NVGoggles"; | |
_player addItem "Rangefinder"; | |
}; | |
_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 addBackpack "B_AssaultPack_rgr"; | |
_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"; | |
if (_player == player) then | |
{ | |
thirstLevel = 100; | |
hungerLevel = 100; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment