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_C_Poloshirt_blue") then {
- player setObjectTextureGlobal [0, "textures\civilian_uniform_1.jpg"];
- };
- if (uniform player isEqualTo "U_C_Poloshirt_burgundy") then {
- player setObjectTextureGlobal [0, "textures\civilian_uniform_2.jpg"];
- };
- if (uniform player isEqualTo "U_C_Poloshirt_stripped") then {
- player setObjectTextureGlobal [0, "textures\civilian_uniform_3.jpg"];
- };
- if (uniform player isEqualTo "U_C_Poloshirt_tricolour") then {
- player setObjectTextureGlobal [0, "textures\civilian_uniform_4.jpg"];
- };
- if (uniform player isEqualTo "U_C_Poloshirt_salmon") then {
- player setObjectTextureGlobal [0, "textures\civilian_uniform_5.jpg"];
- };
- if (uniform player isEqualTo "U_C_Poloshirt_redwhite") then {
- player setObjectTextureGlobal [0, "textures\civilian_uniform_6.jpg"];
- };
- if (uniform player isEqualTo "U_C_Commoner1_1") then {
- player setObjectTextureGlobal [0, "textures\civilian_uniform_7.jpg"];
- };
- };
- };
- case west: {
- case ( "U_BG_Guerrilla_6_1" ) {
- if ( call life_coplevel >= 2 ) then {
- _unit setObjectTextureGlobal [ 0, "textures\Cops\hivispatroluniform.paa" ];
- };
- };
- case ( "U_B_CombatUniform_mcam" ) {
- if ( call life_coplevel >= 6 ) then {
- _unit setObjectTextureGlobal [ 0, "textures\Cops\patroluniform.paa" ];
- };
- };
- case ( "B_Carryall_cbr" ) {
- if ( call life_coplevel >= 1 ) then {
- _unit setObjectTextureGlobal [ 0, "" ];
- };
- };
- case ( "U_Rangemaster" ) {
- if ( call life_coplevel == 1 ) then {
- _unit setObjectTextureGlobal [ 0, "textures\Cops\pcsouniform.paa" ];
- };
- };
- case ( "U_Rangemaster" ) {
- ( call life_coplevel >= 2 ) then {
- _unit setObjectTextureGlobal [ 0, "textures\Cops\visuniform.paa" ];
- };
- };
- };
- case independent: {
- if (uniform player isEqualTo "U_B_CombatUniform_mcam") then {
- player setObjectTextureGlobal [0, "textures\Medic\MedicUni.paa"];
- };
- if ((backpack player) == "B_Carryall_cbr") then {
- (unitbackpack player) setObjectTextureGlobal [0,"textures\Medic\medicbackpack.paa"];
- };
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement