OFPEC Forum
Addons & Mods Depot => OFP - Addons & Mods General => Topic started by: Serial Killer on 12 Nov 2005, 01:09:14
-
How can I set the wound textures for an unit in config.cpp? Didn't found any tutorials from here...
-
It is not a pretty sight.
You need to look at class Man in the game config.
I don't really want to post it here it is huge.
EDIT: Attached example, that should give you the idea anyway
Planck
-
Do you know where I have to paste that line if the config is like this?
#define TEast 0
#define TWest 1
#define TGuerrila 2
#define TCivilian 3
#define TSideUnknown 4
#define TEnemy 5
#define TFriendly 6
#define TLogic 7
#define true 1
#define false 0
#define private 0
#define protected 1
#define public 2
#define WeaponNoSlot         0
#define WeaponSlotPrimary      1
#define WeaponSlotSecondary      16
#define WeaponSlotItem         256
#define WeaponSlotBinocular      4096
#define WeaponHardMounted      65536
class CfgPatches
{
   class srk_inf
   {
      units[] = {};
      weapons[] = {};
      requiredVersion = 1.75;
   requiredaddons[] = {"BIS_Resistance"};  ÂÂ
   };
  ÂÂ
};
class CfgModels
{
   class Default {};
   class Head: Default {};
   class Man: Default {};
   class srk_wlres1: Man
      {
      sections[]={bla bla bla};
      };
   class srk_wlres2: Man
      {
      sections[]={bla bla bla};
      };
};
class CfgVehicles
{
   class All{};
   class AllVehicles:All{};
   class Land:AllVehicles{};
   class Man:Land{};
   class Soldier:Man{};
   class SoldierWB:Soldier{};
   class SoldierWMedic:Soldier{};
   class SoldierWSniper:SoldierWB{};
   class srk_wlres1: SoldierWB
   {
      model="\srk_inf\wl\srk_wlres1";
      displayName="Soldier";
      hiddenSelections[]={"Hat","sniper"};
      wounds[]=
      {
      "\Srk_inf\wl\body1","\Srk_inf\wl\body1_i",
      "\Srk_inf\wl\legs","\Srk_inf\wl\legs_i",     ÂÂ
      ;
      vehicleClass ="SRK - FIA";
      moves="CfgMovesMC";
      scope=2;
      side=2;
      accuracy=0.700000;
      cost=40000;
      nameSound="man";
      weapons[]={"Throw","Put","JAM_AK74"};
      magazines[]={"bla, bla, bla..."};
      class EventHandlers
      {
      Init = "_this exec {\Srk_facestex\randface.sqs}";
      };
   };
-
Actually I don't think you need to add it because you are inheriting from class Man anyway.
Edit: Ahhh I see you have defined some of your own wounds, in that case you may need to add the rest.....minus the ones you are replacing.
Planck