Hallo wir haben das Problem das bei uns die Uniformen nicht Laden bzw der server garnicht erst startet.
Die logs sagen nur Cannot load texture textures\cop_uniform
Pfad der Texturen ist einfach normal textures\cop_uniform.jpg
fn_playerskins
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_.jpg";
if (LIFE_SETTINGS(getNumber,"cop_extendedSkins") isEqualTo 1) then {
if (FETCH_CONST(life_coplevel) >= 1) then {
_skinName = ["textures\cop_uniform_",(FETCH_CONST(life_coplevel)),".jpg"] joinString "";
};
};
player setObjectTextureGlobal [0, _skinName];
};
if ((backpack player) == "B_Carryall_cbr") then {
(unitbackpack player) setObjectTextureGlobal [0,""];
};
};
case independent: {
if (uniform player isEqualTo "U_Rangemaster") then {
player setObjectTextureGlobal [0, "textures\medic_uniform.jpg"];
};
};
};
Alles anzeigen
Equip Gear
Code
/*
fn_equipGear.sqf
Author: Keine Ahnung.. Bohemia Wiki+SQF? o.O
Edit: Nox, www.ragecore.de / www.native-gamer.net
*/
private["_path","_unit","_type"];
_unit = [_this,0] call BIS_fnc_param;
_type = [_this,1,"",[""]] call BIS_fnc_param;
//COP KLEIDUNG
if(playerSide == west) then {
switch(_type) do {
case "U_Rangemaster" : {
_path = "textures\cop_uniform_.jpg";
_unit setObjectTextureGlobal [0,_path];
};
case "U_B_CombatUniform_mcam" : {
_path = "textures\bfe_grau.png";
_unit setObjectTextureGlobal [0,_path];
};
case "U_B_CombatUniform_mcam_vest" : {
_path = "textures\detective.paa";
_unit setObjectTextureGlobal [0,_path];
};
case "U_B_CombatUniform_mcam_worn" : {
_path = "textures\cop_uniform2.jpg";
_unit setObjectTextureGlobal [0,_path];
};
case "V_PlateCarrier1_blk" : {
_path = "textures\bfe_weste.png";
_unit setObjectTextureGlobal [0,_path];
};
};
if((backpack player) == "B_Carryall_cbr") then {
//(unitBackpack _unit) setObjectTextureGlobal [0, "textures\cop_backpack.paa"];
(unitBackpack player) setObjectTextureGlobal [0, ""]; //Macht Rucksäcke unsichtbar :)
};
};
//MEDIC KLEIDUNG
if(playerSide == independent) then {
switch(_type) do {
case "U_BG_Guerilla2_1" : {
_path = "textures\medic_uniform.jpg";
_unit setObjectTextureGlobal [0,_path];
};
case "B_TacticalPack_blk" : {
_path = "textures\medic\medic_backpack.jpg";
_unit setObjectTextureGlobal [0,_path];
};
};
if((backpack player) == "B_Bergen_mcamo") then {
(unitBackpack _unit) setObjectTextureGlobal [0, "textures\medic\medic_backpack.paa"];
};
};
//ZIVILISTEN KLEIDUNG
if(playerSide == civilian) then {
switch(_type) do {
case "U_C_WorkerCoveralls" : {
_path = "textures\civ\adac_cloth.jpg";
_unit setObjectTextureGlobal [0,_path];
};
case "U_C_Poloshirt_blue" : {
_path = "textures\civ\rccloth.jpg";
_unit setObjectTextureGlobal [0,_path];
};
};
};
Alles anzeigen