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.
- */
- switch(playerSide) do {
- case civilian: {
- if(EQUAL(LIFE_SETTINGS(getNumber,"civ_skins"),1)) then {
- if(uniform player == "U_C_Poloshirt_blue") then {
- player setObjectTextureGlobal [0, "textures\civilian_uniform_1.jpg"];
- };
- if(uniform player == "U_C_Poloshirt_burgundy") then {
- player setObjectTextureGlobal [0, "textures\civilian_uniform_2.jpg"];
- };
- if(uniform player == "U_C_Poloshirt_stripped") then {
- player setObjectTextureGlobal [0, "textures\civilian_uniform_3.jpg"];
- };
- if(uniform player == "U_C_Poloshirt_tricolour") then {
- player setObjectTextureGlobal [0, "textures\civilian_uniform_4.jpg"];
- };
- if(uniform player == "U_C_Poloshirt_salmon") then {
- player setObjectTextureGlobal [0, "textures\civilian_uniform_5.jpg"];
- };
- if(uniform player == "U_C_Poloshirt_redwhite") then {
- player setObjectTextureGlobal [0, "textures\civilian_uniform_6.jpg"];
- };
- if(uniform player == "U_C_Commoner1_1") then {
- player setObjectTextureGlobal [0, "textures\civilian_uniform_7.jpg"];
- };
- };
- };
- case west: {
- if(uniform player == "U_B_CombatUniform_mcam") then {
- player setObjectTextureGlobal [0, "textures\Uniforms\Police\Uniform_Police.paa"];
- };
- if(backpack player != "") then
- {
- [[unitBackpack player,0,""],"life_fnc_setTexture",true,false] spawn life_fnc_MP;
- };
- };
- case independent: {
- if(uniform player == "U_B_CombatUniform_mcam") then {
- player setObjectTextureGlobal [0, "textures\Uniforms\Medic\Uniform_Medic.paa"];
- };
- if(backpack player != "") then
- {
- [[unitBackpack player,0,""],"life_fnc_setTexture",true,false] spawn life_fnc_MP;
- };
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement