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\skins\civil\clothing\polo1.jpg"];
- };
- if (uniform player isEqualTo "U_C_Poloshirt_burgundy") then {
- player setObjectTextureGlobal [0, "textures\skins\civil\clothing\polo2.jpg"];
- };
- if (uniform player isEqualTo "U_C_Poloshirt_stripped") then {
- player setObjectTextureGlobal [0, "textures\skins\civil\clothing\polo3.jpg"];
- };
- if (uniform player isEqualTo "U_C_Poloshirt_redwhite") then {
- player setObjectTextureGlobal [0, "textures\skins\civil\clothing\polo4.jpg"];
- };
- if (uniform player isEqualTo "U_C_Poloshirt_salmon") then {
- player setObjectTextureGlobal [0, "textures\skins\civil\clothing\polo5.jpg"];
- };
- if (uniform player isEqualTo "U_C_Poloshirt_tricolour") then {
- player setObjectTextureGlobal [0, "textures\skins\civil\clothing\polo6.jpg"];
- };
- };
- };
- case west: {
- if (uniform player isEqualTo "U_Rangemaster") then {
- _skinName = "textures\skins\police\clothing\coplvl1.jpg";
- if (LIFE_SETTINGS(getNumber,"cop_extendedSkins") isEqualTo 1) then {
- if (FETCH_CONST(life_coplevel) >= 1) then {
- _skinName = ["textures\skins\police\clothing\coplevel",(FETCH_CONST(life_coplevel)),".jpg"] joinString "";
- };
- };
- player setObjectTextureGlobal [0, _skinName];
- };
- };
- case independent: {
- /*if (uniform player isEqualTo "U_Rangemaster") then {
- player setObjectTextureGlobal [0, "textures\medic_uniform.jpg"];
- };*/
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement