ich wollte eine neue Polizeiklamotte einfügen... klappt auch ... allerdings sieht man sie nur bei sich selbst und andere Spieler sehen sie nicht.
Ich benutze die Version5.0.0
Eingefügt habe ich sie so:
Config_Clothing.hpp
Code
class Clothing {
class cop {
title = "STR_Shops_C_Police";
conditions = "";
side = "cop";
uniforms[] = {
{ "NONE", $STR_C_Remove_uniforms, 0, "" },
{ "U_Rangemaster", $STR_C_Cop_uniforms, 25, "" },
{ "U_B_CombatUniform_mcam", $STR_C_Cop_uniforms, 25, "" } <----------- Das hier
};
headgear[] = {
{ "NONE", $STR_C_Remove_headgear, 0, "" },
{ "H_Cap_police", "", 25, "" },
{ "H_Booniehat_mcamo", "", 120, "call life_coplevel >= 1" },
{ "H_HelmetB_plain_mcamo", "", 75, "call life_coplevel >= 1" },
{ "H_HelmetB_Enh_tna_F", "", 80, "call life_coplevel >= 1" }, //Apex DLC
{ "H_Beret_blk_POLICE", "", 50, "call life_coplevel >= 2" },
{ "H_MilCap_mcamo", "", 100, "call life_coplevel >= 2" },
{ "H_MilCap_gen_F", "", 1200, "call life_coplevel >= 2" }, //Apex DLC
{ "H_MilCap_tna_F", "", 1200, "call life_coplevel >= 2" }, //Apex DLC
{ "H_MilCap_oucamo", "", 1200, "call life_coplevel >= 2" }
};
goggles[] = {
{ "NONE", $STR_C_Remove_goggles, 0, "" },
{ "G_Squares", "", 10, "" },
{ "G_Shades_Blue", "", 20, "" },
{ "G_Sport_Blackred", "", 20, "" },
{ "G_Sport_Checkered", "", 20, "" },
{ "G_Sport_Blackyellow", "", 20, "" },
{ "G_Sport_BlackWhite", "", 20, "" },
{ "G_Shades_Black", "", 25, "" },
{ "G_Lowprofile", "", 30, "" },
{ "G_Combat", "", 55, "" },
{ "G_Aviator", "", 100, "" },
{ "G_Lady_Mirror", "", 150, "" },
{ "G_Lady_Dark", "", 150, "" },
{ "G_Lady_Blue", "", 150, "" }
};
vests[] = {
{ "NONE", $STR_C_Remove_vests, 0, "" },
{ "V_Rangemaster_belt", "", 800, "" },
{ "V_TacVest_blk_POLICE", "", 1000, "call life_coplevel >= 1" },
{ "V_TacVest_gen_F", "", 1000, "call life_coplevel >= 1" }, //Apex DLC
{ "V_PlateCarrier2_rgr", "", 1500, "call life_coplevel >= 2" }
};
backpacks[] = {
{ "NONE", $STR_C_Remove_backpacks, 0, "" },
{ "B_FieldPack_cbr", "", 500, "" },
{ "B_AssaultPack_cbr", "", 700, "" },
{ "B_Kitbag_cbr", "", 800, "" },
{ "B_Bergen_sgg", "", 2500, "" },
{ "B_Carryall_cbr", "", 3500, "" }
};
};
Alles anzeigen
fn_PlayerSkins.sqf
Code
#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: {
if (uniform player isEqualTo "U_Rangemaster") then {
_skinName = "textures\cop_uniform.paa";
if (LIFE_SETTINGS(getNumber,"cop_extendedSkins") isEqualTo 1) then {
if (FETCH_CONST(life_coplevel) >= 1) then {
_skinName = ["textures\cop_uniform_",(FETCH_CONST(life_coplevel)),".paa"] joinString "";
};
};
player setObjectTextureGlobal [0, _skinName];
};
if (uniform player isEqualTo "U_B_CombatUniform_mcam") then { <----- Das hier
_skinName = "textures\kleidung\cop\uniform1.jpg";
if (LIFE_SETTINGS(getNumber,"cop_extendedSkins") isEqualTo 1) then {
if (FETCH_CONST(life_coplevel) >= 1) then {
_skinName = ["textures\kleidung\cop\uniform1_",(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"];
};
};
};
Alles anzeigen
Über Hilfe währe ich echt Dankbar!
MfG. Steve