Ich versuche gerade auf meinem Tanoa Life Server, den Rängen entsprechend, verschiedene Cop Skins einzufügen. Hierfür habe ich das fn_playerSkins.sqf Skript bearbeitet und es sieht jetzt wie folgt aus:
#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 {
if(FETCH_CONST(life_coplevel) isEqualTo 1) then {
_skinName = "textures\police\uniform\recruit.jpg";
};
if(FETCH_CONST(life_coplevel) isEqualTo 2) then {
_skinName = "textures\police\uniform\officer.jpg";
};
if(FETCH_CONST(life_coplevel) isEqualTo 3) then {
_skinName = "textures\police\uniform\detective.jpg";
};
if(FETCH_CONST(life_coplevel) isEqualTo 4) then {
_skinName = "textures\police\uniform\sergeant.jpg";
};
if(FETCH_CONST(life_coplevel) isEqualTo 5) then {
_skinName = "textures\police\uniform\captain.jpg";
};
if(FETCH_CONST(life_coplevel) isEqualTo 6) then {
_skinName = "textures\police\uniform\commander.jpg";
};
if(FETCH_CONST(life_coplevel) isEqualTo 7) then {
_skinName = "textures\police\uniform\deputychief.jpg";
};
};
player setObjectTextureGlobal [0, _skinName];
};
case independent: {
if (uniform player isEqualTo "U_Rangemaster") then {
player setObjectTextureGlobal [0, "textures\medic_uniform.jpg"];
};
};
};
Alles anzeigen
Ingame lädt aber bei jedem Cop/Medic nur der default Rangemaster Skin, was mich darauf schließen lässt, dass dieser Code falsch ist.
Alle Pfade sind richting (habe ich 10 mal überprüft ).
Kann mir jemand sagen woran es liegt das es nicht funktioniert?
Edit: Der Client Log:
ZitatAlles anzeigen2:39:18 "----------------------------------------------------------------------------------------------------"
2:39:18 "<infiSTAR.de> config data loaded...!"
2:46:17 Warning Message: Picture textures\armalife.jpg not found
2:46:56 EPE manager release (0|12|0)
2:48:10 Starting mission:
2:48:10 Mission file: __cur_mp (__CUR_MP)
2:48:10 Mission world: Tanoa
2:48:10 Mission directory: mpmissions\__CUR_MP.Tanoa\
2:48:12 Setting invalid pitch -0.0000 for L Alpha 1-1:1 REMOTE
2:48:14 Speaker Male08_F not found in CfgVoiceTypes
2:48:14 Attempt to override final function - bis_fnc_endmission
2:48:14 "----------------------------------------------------------------------------------------------------"
2:48:14 "--------------------------------- Starting Altis Life Client Init ----------------------------------"
2:48:14 "------------------------------------------ Version 5.0.0 -------------------------------------------"
2:48:14 "----------------------------------------------------------------------------------------------------"
2:48:14 "::Life Client:: Initialization Variables"
2:48:14 "::Life Client:: Variables initialized"
2:48:14 "::Life Client:: Setting up Eventhandlers"
2:48:14 "::Life Client:: Eventhandlers completed"
2:48:14 "::Life Client:: Setting up user actions"
2:48:14 "::Life Client:: User actions completed"
2:48:14 "::Life Client:: Waiting for server functions to transfer.."
2:48:14 "::Life Client:: Received server functions."
2:48:14 "::Life Client:: Waiting for the server to be ready.."
2:48:14 Mission id: 8c09c56459a3a1797bef4162c68733a486170cd1
2:48:16 "<infiSTAR.de> VERSION: infiSTAR.de 28-12-2018 15-33-09 (v259) - server running: 0:2:25114x2"
2:48:18 "Past Settings Init"
2:48:18 "Executing client.fsm"
2:48:18 "Display 46 Found"
2:48:18 "----------------------------------------------------------------------------------------------------"
2:48:18 " End of Altis Life Client Init :: Total Execution Time 4.28992 seconds "
2:48:18 "----------------------------------------------------------------------------------------------------"
2:48:18 "<infiSTAR.de> OPEN_ADMIN_MENU_KEY: 59"
2:48:19 "<infiSTAR.de> config data loaded...!"