Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "..\..\script_macros.hpp"
- /*
- File: fn_playerSkins.sqf
- Author: Daniel Stuart
- Description:
- Sets skins for players by their side and uniform.
- */
- private["_skinName"];
- switch (playerSide) do {
- case civilian: {
- if (LIFE_SETTINGS(getNumber,"civ_skins") isEqualTo 1) then {
- if (uniform player isEqualTo "U_IG_Guerilla1_1") then {
- player setObjectTextureGlobal [0, "textures\Banditen\Kleidung\Banditen_Uniform_1.paa"];
- };
- if (uniform player isEqualTo "U_B_CTRG_1") then {
- player setObjectTextureGlobal [0, "textures\Banditen\Kleidung\Banditen_Uniform_2.paa"];
- };
- if (uniform player isEqualTo "U_O_SpecopsUniform_ocamo") then {
- player setObjectTextureGlobal [0, "textures\Banditen\Kleidung\Banditen_Uniform_3.paa"];
- };
- if (uniform player isEqualTo "U_O_PilotCoveralls") then {
- player setObjectTextureGlobal [0, "textures\Banditen\Kleidung\Banditen_Uniform_4.paa"];
- };
- if (uniform player isEqualTo "U_I_PilotCoveralls") then {
- player setObjectTextureGlobal [0, "textures\Banditen\Kleidung\Banditen_Uniform_5.paa"];
- };
- if (uniform player isEqualTo "U_O_CombatUniform_oucamo") then {
- player setObjectTextureGlobal [0, "textures\Banditen\Kleidung\Banditen_Uniform_6.paa"];
- };
- if (uniform player isEqualTo "U_O_OfficerUniform_ocamo") then {
- player setObjectTextureGlobal [0, "textures\Banditen\Kleidung\Banditen_Uniform_7.paa"];
- };
- if (backpack player isEqualTo "B_FieldPack_ocamo") then {
- unitBackpack player setObjectTextureGlobal [0, "textures\Banditen\Kleidung\Banditen_Rucksack_1.paa"];
- };
- if (backpack player isEqualTo "B_Carryall_ocamo_Exp") then {
- unitBackpack player setObjectTextureGlobal [0, "textures\Banditen\Kleidung\Banditen_Rucksack_2.paa"];
- };
- };
- };
- case west: {
- if (uniform player isEqualTo "U_Rangemaster") then {
- player setObjectTextureGlobal [0, "textures\Polizei\Kleidung\Polizeiuniform_OA.jpg"];
- };
- if (uniform player isEqualTo "U_B_CombatUniform") then {
- _skinName = "textures\Polizei\Kleidung\Polizeiuniform_OA.jpg";
- if (LIFE_SETTINGS(getNumber,"cop_extendedSkins") isEqualTo 1) then {
- if (FETCH_CONST(life_coplevel) >= 2) then {
- _skinName = ["textures\Polizei\Kleidung\Polizeiuniform_",(FETCH_CONST(life_coplevel)),".jpg"] joinString "";
- //Polizeiuniform.jpg; Polizeiuniform_1.jpg;...;Polizeiuniform_10.jpg;Polizeiuniform_11.jpg
- };
- };
- player setObjectTextureGlobal [0, _skinName];
- };
- };
- case independent: {
- if (uniform player isEqualTo "U_OG_Guerilla2_3") then {
- player setObjectTextureGlobal [0, "textures\Feuerwehr\Kleidung\fw_kleidung.paa"];
- };
- if (backpack player isEqualTo "B_Kitbag_cbr") then {
- unitBackpack player setObjectTextureGlobal [0, "textures\Feuerwehr\Kleidung\fw_rucksack.paa"];
- };
- };
- case east: {
- if (uniform player isEqualTo "U_Rangemaster") then {
- player setObjectTextureGlobal [0, "textures\Security\Kleidung\gladius_rangemaster.paa"];
- };
- if (uniform player isEqualTo "U_B_CTRG_1") then {
- player setObjectTextureGlobal [0, "textures\Security\Kleidung\gladius_uniform.paa"];
- };
- if (uniform player isEqualTo "U_B_CTRG_3") then {
- player setObjectTextureGlobal [0, "textures\Security\Kleidung\gladius_uniform.paa"];
- };
- if (backpack player isEqualTo "B_Carryall_oucamo") then {
- unitBackpack player setObjectTextureGlobal [0, "textures\Security\Kleidung\gladius_backpack.paa"];
- };
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement