Home   Help Search Login Register  

Author Topic: How to set wound textures?  (Read 1244 times)

0 Members and 1 Guest are viewing this topic.

Serial Killer

  • Guest
How to set wound textures?
« 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...

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:How to set wound textures?
« Reply #1 on: 12 Nov 2005, 01:22:46 »
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
« Last Edit: 12 Nov 2005, 01:25:11 by Planck »
I know a little about a lot, and a lot about a little.

Serial Killer

  • Guest
Re:How to set wound textures?
« Reply #2 on: 12 Nov 2005, 01:32:43 »
Do you know where I have to paste that line if the config is like this?

Quote
#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}";
      };
   };
« Last Edit: 12 Nov 2005, 01:33:35 by Serial Killer »

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:How to set wound textures?
« Reply #3 on: 12 Nov 2005, 01:37:00 »
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
« Last Edit: 12 Nov 2005, 01:42:25 by Planck »
I know a little about a lot, and a lot about a little.