kotketa › Четверг
› 06.11.2014
› 11:53
› Сообщение #
1
Подполковник
В увольнительной
Группа:
Пользователи
Сообщений:
118
Здравствуйте. Делал аддон с зомби, сделал 2 файла: Faces.hppКод
class CfgFaces { class Default; // External class reference class Man : Default { class Default; // External class reference class Zombie1 : Default { name = "Zombie 1"; texture = "\dayz\textures\faces\zombie_01_co.paa"; identityTypes[] = {"Zombie1"}; disabled = 0; }; class Zombie2 : Default { name = "Zombie 2"; texture = "\dayz\textures\faces\zombie_02_co.paa"; identityTypes[] = {"Zombie2"}; disabled = 0; }; class Zombie3 : Default { name = "Zombie 3"; texture = "\dayz\textures\faces\zombie_03_co.paa"; identityTypes[] = {"Zombie3"}; disabled = 0; }; class Zombie4 : Default { name = "Zombie 4"; texture = "\dayz\textures\faces\zombie_04_co.paa"; identityTypes[] = {"Zombie4"}; disabled = 0; }; class Zombie5 : Default { name = "Zombie 5"; texture = "\dayz\textures\faces\zombie_05_co.paa"; identityTypes[] = {"Zombie5"}; disabled = 0; }; class Zombie6 : Default { name = "Zombie 6"; texture = "\dayz\textures\faces\zombie_06_co.paa"; identityTypes[] = {"Zombie6"}; disabled = 0; }; class Zombie7 : Default { name = "Zombie 7"; texture = "\dayz\textures\faces\zombie_07_co.paa"; identityTypes[] = {"Zombie7"}; disabled = 0; }; class Zombie8 : Default { name = "Zombie 8"; texture = "\dayz\textures\faces\zombie_08_co.paa"; identityTypes[] = {"Zombie8"}; disabled = 0; }; class Zombie9 : Default { name = "Zombie 9"; texture = "\dayz\textures\faces\zombie_09_co.paa"; identityTypes[] = {"Zombie9"}; disabled = 0; }; class Zombie10 : Default { name = "Zombie 10"; texture = "\dayz\textures\faces\zombie_10_co.paa"; identityTypes[] = {"Zombie10"}; disabled = 0; }; }; };
Vehicles.hpp
Код
class CfgVehicles { class Citizen1; // External class reference class zZombie_Base : Citizen1 { scope = public; side = EAST; glassesEnabled = 0; vehicleClass = "Zombie"; displayName = "Zombie"; fsmDanger = ""; fsmFormation = ""; zombieLoot = "civilian"; moves = "CfgMovesZombie"; isMan = false; weapons[] = {}; magazines[] = {}; sensitivity = 2; // sensor sensitivity sensitivityEar = 4; identityTypes[] = {"zombie1","zombie2","zombie3","zombie4","zombie5","zombie6","zombie7","zombie8","zombie9","zombie10"}; class TalkTopics {}; languages[] = {}; class Eventhandlers { init = "_this call zombie_initialize;"; local = "diag_log ('Locality Event');if(_this select 1) then {[(position (_this select 0)),(_this select 0),true] execFSM '\z\AddOns\dayz_code\system\zombie_agent.fsm'};"; }; class HitPoints { class HitHead { armor = 0.3; material = -1; name = "head_hit"; passThrough = true; memoryPoint = "pilot"; }; class HitBody : HitHead { armor = 2; name = "body"; memoryPoint = "aimPoint"; }; class HitSpine : HitHead { armor = 2; name = "Spine2"; memoryPoint = "aimPoint"; }; class HitHands : HitHead { armor = 0.5; material = -1; name = "hands"; passThrough = true; }; class HitLArm : HitHands { name = "LeftArm"; memoryPoint = "lelbow"; }; class HitRArm : HitHands { name = "RightArm"; memoryPoint = "relbow"; }; class HitLForeArm : HitHands { name = "LeftForeArm"; memoryPoint = "lwrist"; }; class HitRForeArm : HitHands { name = "RightForeArm"; memoryPoint = "rwrist"; }; class HitLHand : HitHands { name = "LeftHand"; memoryPoint = "LeftHandMiddle1"; }; class HitRHand : HitHands { name = "RightHand"; memoryPoint = "RightHandMiddle1"; }; class HitLegs : HitHands { name = "legs"; memoryPoint = "pelvis"; }; class HitLLeg : HitHands { name = "LeftLeg"; memoryPoint = "lknee"; }; class HitLLegUp : HitHands { name = "LeftUpLeg"; memoryPoint = "lfemur"; }; class HitRLeg : HitHands { name = "RightLeg"; memoryPoint = "rknee"; }; class HitRLegUp : HitHands { name = "RightUpLeg"; memoryPoint = "rfemur"; }; }; }; class z_policeman : zZombie_Base { model = "\ca\characters2\civil\Policeman\Policeman"; zombieLoot = "policeman"; hiddenSelectionsTextures[] = {"\dayz\textures\clothes\policeman_co.paa"}; class Wounds { tex[] = {}; mat[] = {"ca\characters2\civil\policeman\data\policeman.rvmat", "ca\characters2\civil\policeman\data\w1_policeman.rvmat", "ca\characters2\civil\policeman\data\w2_policeman.rvmat", "ca\characters\heads\male\defaulthead\data\hhl.rvmat", "ca\characters\heads\male\defaulthead\data\hhl_wounds.rvmat", "ca\characters\heads\male\defaulthead\data\hhl_wounds.rvmat"}; }; }; class zZombie_Boss : zZombie_Base { displayName = "Zombie Boss"; zombieLoot = "ZombieBoss"; armor = 300; moves = "CfgMovesZombieX1"; model = "\ca\characters2\civil\Doctor\Doctor"; hiddenSelections[] = {"Camo"}; hiddenSelectionsTextures[] = {"\dayz\textures\clothes\doctorIVAN.paa"}; class Wounds { tex[] = {}; mat[] = {"ca\characters2\civil\doctor\data\doctor.rvmat", "ca\characters2\civil\doctor\data\W1_doctor.rvmat", "ca\characters2\civil\doctor\data\W2_doctor.rvmat", "ca\characters\heads\male\defaulthead\data\hhl.rvmat", "ca\characters\heads\male\defaulthead\data\hhl_Wounds.rvmat", "ca\characters\heads\male\defaulthead\data\hhl_Wounds.rvmat"}; }; }; }; }; class z_suit1 : zZombie_Base { model = "\ca\characters2\civil\Functionary\Functionary"; hiddenSelections[] = {"Camo"}; hiddenSelectionsTextures[] = {"\dayz\textures\clothes\functionary_01.paa"}; zombieLoot = "generic"; class Wounds { tex[] = {}; mat[] = {"ca\characters2\civil\Functionary\data\Functionary.rvmat", "ca\characters2\civil\Functionary\data\W1_Functionary.rvmat", "ca\characters2\civil\Functionary\data\W2_Functionary.rvmat", "ca\characters\heads\male\defaulthead\data\hhl.rvmat", "ca\characters\heads\male\defaulthead\data\hhl_Wounds.rvmat", "ca\characters\heads\male\defaulthead\data\hhl_Wounds.rvmat"}; }; }; class z_suit2 : z_suit1 { zombieLoot = "civilian"; hiddenSelectionsTextures[] = {"\dayz\textures\clothes\functionary_02.paa"}; }; class z_overall1 : zZombie_Base { zombieLoot = "civilian"; model = "\Ca\characters_E\Overall\Overall"; hiddenSelections[] = {"Camo"}; hiddenSelectionsTextures[] = {"\dayz\textures\clothes\overall_3_co.paa"}; class Wounds { tex[] = {}; mat[] = {"Ca\characters_E\Overall\Data\Overall.rvmat", "Ca\characters_E\Overall\Data\W1_Overall.rvmat", "Ca\characters_E\Overall\Data\W2_Overall.rvmat"}; }; }; class z_overall2 : z_overall1 { hiddenSelectionsTextures[] = {"z\addons\dayz_communityassets\zeds\overall\overall_2_co.paa"}; }; class z_overall3 : z_overall1 { hiddenSelectionsTextures[] = {"z\addons\dayz_communityassets\zeds\overall\Overall_3_co.paa"}; }; class z_overall4 : z_overall1 { hiddenSelectionsTextures[] = {"z\addons\dayz_communityassets\zeds\overall\Overall_4_co.paa"}; }; class z_overall5 : z_overall1 { hiddenSelectionsTextures[] = {"\dayz\textures\clothes\overall_4_co.paa"}; }; class z_doctor : zZombie_Base { model = "\ca\characters2\civil\Doctor\Doctor"; zombieLoot = "medical"; hiddenSelections[] = {"Camo"}; hiddenSelectionsTextures[] = {"\dayz\textures\clothes\doctor_01.paa"}; class Wounds { tex[] = {}; mat[] = {"ca\characters2\civil\doctor\data\doctor.rvmat", "ca\characters2\civil\doctor\data\W1_doctor.rvmat", "ca\characters2\civil\doctor\data\W2_doctor.rvmat", "ca\characters\heads\male\defaulthead\data\hhl.rvmat", "ca\characters\heads\male\defaulthead\data\hhl_Wounds.rvmat", "ca\characters\heads\male\defaulthead\data\hhl_Wounds.rvmat"}; }; }; class z_doctor2 : z_doctor { hiddenSelectionsTextures[] = {"\dayz\textures\clothes\doctor_02.paa"}; }; class z_doctor3 : z_doctor { hiddenSelectionsTextures[] = {"\dayz\textures\clothes\doctor_03.paa"}; }; class z_teacher : z_doctor { zombieLoot = ""; hiddenSelectionsTextures[] = {"\dayz\textures\clothes\teacher_01.paa"}; }; class z_teacher2 : z_doctor { zombieLoot = ""; hiddenSelectionsTextures[] = {"\dayz\textures\clothes\teacher_02.paa"}; }; class z_villager1 : zZombie_Base { zombieLoot = "civilian"; model = "\ca\characters2\civil\Villager\Villager"; hiddenSelections[] = {"Camo"}; hiddenSelectionsTextures[] = {"\dayz\textures\clothes\villager_co.paa"}; class Wounds { tex[] = {}; mat[] = {"ca\characters\heads\male\defaulthead\data\hhl.rvmat", "ca\characters\heads\male\defaulthead\data\hhl_Wounds.rvmat", "ca\characters\heads\male\defaulthead\data\hhl_Wounds.rvmat", "ca\characters2\Civil\Villager\Data\villager.RVmat", "ca\characters2\Civil\Villager\Data\villager_w1.RVmat", "ca\characters2\Civil\Villager\Data\villager_w2.RVmat"}; }; }; class z_villager2 : z_villager1 { hiddenSelectionsTextures[] = {"\dayz\textures\clothes\z_villager_v2_co.paa"}; }; class z_villager3 : z_villager1 { hiddenSelectionsTextures[] = {"\dayz\textures\clothes\z_villager_v3_co.paa"}; }; class z_villager4 : z_villager1 { hiddenSelectionsTextures[] = {"\dayz\textures\clothes\z_villager_v4_co.paa"}; }; class z_villager5 : z_villager1 { hiddenSelectionsTextures[] = {"\dayz\textures\clothes\z_villager_co.paa"}; }; class z_villager6 : z_villager1 { hiddenSelectionsTextures[] = {"\dayz\textures\clothes\villager_v3_co.paa"}; }; class z_villager7 : z_villager1 { hiddenSelectionsTextures[] = {"\dayz\textures\clothes\villager_v4_co.paa"}; }; class z_villager8 : z_villager1 { hiddenSelectionsTextures[] = {"z\addons\dayz_communityassets\zeds\villager\villager_v2_co.paa"}; }; class z_villager9 : z_villager1 { hiddenSelectionsTextures[] = {"z\addons\dayz_communityassets\zeds\villager\villager_v3_co.paa"}; }; class z_villager10 : z_villager1 { hiddenSelectionsTextures[] = {"z\addons\dayz_communityassets\zeds\villager\villager_v4_co.paa"}; }; };
в итоге все зомби получаются без лица, т.е. лица белые. В чем беда?Добавлено (06.11.2014, 11:53) --------------------------------------------- Решил проблему добавлением к названию текстуры _co. Не знаю, как это связано, но лица сразу же появились