Code:
class CfgSkeletons
{
class Default;
class Vehicle;
class Plane: Vehicle
{
skeletonInherit="Vehicle";
skeletonBones[]=
{
"alt",
"",
"alt2",
"",
"mph",
"",
"mph2",
"",
"vert_speed",
"",
"vert_speed2",
"",
"nm_alt",
"",
"hud_alt",
"",
"hud_speed",
"",
"rpm",
"",
"kompas",
"",
"kompas2",
"",
"hodinova",
"",
"hodinova2",
"",
"minutova",
"",
"minutova2",
"",
"horizont_dive",
"",
"horizont",
"horizont_dive",
"horizont_dive2",
"",
"horizont2",
"horizont_dive2",
"lkh klapka",
"",
"pkh klapka",
"",
"lkd klapka",
"",
"pkd klapka",
"",
"leva smerovka",
"",
"leva vejskovka",
"",
"prava smerovka",
"",
"prava vejskovka",
"",
"ls klapka",
"",
"ps klapka",
"",
"predni kolo",
"",
"levy kolo",
"",
"pravy kolo",
"",
"vrtule",
"",
"damageHide",
""
};
};
class Helicopter: Vehicle
{
skeletonInherit="Vehicle";
skeletonBones[]=
{
"velka vrtule",
"",
"mala vrtule",
"",
"otocvez",
"",
"otochlaven",
"otocvez",
"alt",
"",
"alt2",
"",
"nm_alt",
"",
"nm_alt2",
"",
"mph",
"",
"mph2",
"",
"vert_speed",
"",
"vert_speed2",
"",
"rpm",
"",
"rpm2",
"",
"horizont_dive",
"",
"horizont",
"horizont_dive",
"horizont2_dive",
"",
"horizont2",
"horizont2_dive",
"kompas",
"",
"kompas2",
"",
"hodinova",
"",
"hodinova2",
"",
"minutova",
"",
"minutova2",
"",
"damageHide",
"",
"rotorShaft",
""
};
};
class pt101_dstny1: Helicopter
{
isDiscrete=1;
skeletonInherit="";
skeletonName="pt101_dstny1";
skeletonBones[]=
{
"prop1","",
"prop2","",
"prop3","",
"prop4","",
"prop5","",
"prop6","",
"prop7","",
"prop8","",
"prop9","",
"hatch","",
};
};
};
class Rotation;
class CfgModels
{
class Default;
class Vehicle;
class Helicopter: Vehicle
{
sectionsInherit="Vehicle";
sections[]=
{
"sklo predni p",
"sklo predni l",
"velka vrtule staticka",
"velka vrtule blur",
"mala vrtule staticka",
"mala vrtule blur",
"trup",
"motor",
"elektronika",
"mala vrtule",
"velka vrtule",
"munice",
"zbran",
"vez",
"clan",
"clan_sign",
"podsvit pristroju"
};
skeletonName="Helicopter";
class Animations
{
class damageHide
{
type="hide";
source="damage";
selection="damageHide";
};
class IndicatorAltRadar: Rotation
{
source="altRadar";
sourceAddress="loop";
selection="alt";
axis="osa_alt";
memory=0;
maxValue=304;
angle1="rad -360";
};
class IndicatorAltRadar2: IndicatorAltRadar
{
selection="alt2";
axis="osa_alt2";
};
class IndicatorAltBaro: Rotation
{
source="altBaro";
selection="nm_alt";
axis="osa_nm_alt";
memory="false";
maxValue=61;
angle1="rad -180";
};
class IndicatorAltBaro2: IndicatorAltBaro
{
selection="nm_alt2";
axis="osa_nm_alt2";
};
class IndicatorSpeed: Rotation
{
source="speed";
selection="mph";
axis="osa_mph";
memory="false";
maxValue=125;
angle1="rad -320";
};
class IndicatorSpeed2: IndicatorSpeed
{
selection="mph2";
axis="osa_mph2";
};
class IndicatorVertSpeed: Rotation
{
source="vertSpeed";
selection="vert_speed";
axis="osa_vert_speed";
memory=0;
minValue=-30.000000;
maxValue=30.000000;
angle1=-5.235988;
};
class IndicatorVertSpeed2: IndicatorVertSpeed
{
selection="vert_speed2";
axis="osa_vert_speed2";
memory=0;
};
class IndicatorRPM: Rotation
{
source="rpm";
selection="rpm";
axis="osa_rpm";
memory="false";
maxValue=12;
angle1="rad -320";
};
class IndicatorRPM2: IndicatorRPM
{
selection="rpm2";
axis="osa_rpm2";
};
class IndicatorCompass: Rotation
{
source="direction";
selection="kompas";
axis="osa_kompas";
memory=0;
minValue=-3.141590;
maxValue=3.141590;
angle0=3.141593;
angle1=-3.141593;
};
class IndicatorCompass2: IndicatorCompass
{
selection="kompas2";
axis="osa_kompas2";
};
class WatchHour: Rotation
{
source="clockHour";
selection="hodinova";
axis="osa_time";
memory="false";
angle1="rad -360";
};
class WatchHour2: WatchHour
{
selection="hodinova2";
axis="osa_time2";
};
class WatchMinute: Rotation
{
source="clockMinute";
selection="minutova";
axis="osa_time";
memory="false";
angle1="rad -360";
};
class WatchMinute2: WatchMinute
{
selection="minutova2";
axis="osa_time2";
};
class HRotor: Rotation
{
source="rotorH";
selection="velka vrtule";
axis="velka osa";
angle1="2 * 3.1415926536";
};
class RotorShaft: HRotor
{
selection="RotorShaft";
};
class VRotor: Rotation
{
source="rotorV";
selection="mala vrtule";
axis="mala osa";
angle1="2 * 3.1415926536";
};
class HorizonBank
{
type="rotationZ";
source="horizonBank";
selection="horizont";
axis="osa_horizont";
memory="false";
minValue="rad -360";
maxValue="rad +360";
angle0="rad -360";
angle1="rad +360";
};
class HorizonDive
{
type="rotationX";
source="horizonDive";
selection="horizont_dive";
axis="osa_horizont";
memory=0;
minValue="rad -360";
maxValue="rad +360";
angle0="rad -360";
angle1="rad +360";
};
class Horizon2Bank: HorizonBank
{
selection="horizont2";
axis="osa_horizont2";
};
class Horizon2Dive: HorizonDive
{
selection="horizont2_dive";
axis="osa_horizont2";
};
class RotorHDive
{
selection="velka vrtule";
axis="predni osa naklonu";
type="rotationX";
source="rotorHDive";
minValue="rad -90";
maxValue="rad +90";
angle0="rad -90";
angle1="rad +90";
animPeriod=0;
};
class mala_vrtule_damage: damageHide
{
selection="mala vrtule";
};
class velka_vrtule_damage: damageHide
{
selection="velka vrtule";
};
class rotorShaft_damage: damageHide
{
selection="rotorShaft";
};
};
};
class pt101_dstny1 : Helicopter
{
skeletonName="pt101_dstny1";
sectionsInherit="";
sections[]=
{ "Hull"
};
class Animations
{
class VRotor4 : Rotation
{
type="rotationX";
source="rotorV";
selection="prop4";
axis="prop4_axis";
memory="1";
sourceAddress="loop";
minValue=0;
maxValue=1;
angle0="0";
angle1="rad 360";
};
class VRotor5:VRotor4
{
source="rotorV";
selection="prop5";
axis="prop5_axis";
};
class VRotor6 :VRotor4
{
source="rotorV";
selection="prop6";
axis="prop6_axis";
};
class VRotor7 :VRotor4
{
source="rotorV";
selection="prop7";
axis="prop7_axis";
};
class VRotor8:VRotor4
{
source="rotorV";
selection="prop8";
axis="prop8_axis";
};
class VRotor9:VRotor4
{
source="rotorV";
selection="prop9";
axis="prop9_axis";
};
class HRotor1
{
type="rotationY";
source="rotorH";
selection="prop1";
axis="prop1_axis";
memory="1";
sourceAddress="loop";
minValue=0;
maxValue=1;
angle0="0";
angle1="rad -360";
};
class HRotor2 :HRotor1
{
source="rotorH";
selection="prop2";
axis="prop2_axis";
};
class HRotor3
{
source="rotorH";
selection="prop3";
axis="prop3_axis";
};
class UserRamp
{
type="rotation";
source="UserRamp";
selection="hatch";
axis="hatch_axis";
memory="1";
sourceAddress="clamp";
minValue=0;
maxValue=1;
angle0="45";
angle1="rad 90";
};
};
};
};