In game, the "velka vrtule", and "mala vrtule" do not spin; however, the "velka vrtule blur", and "mala vrtule blur" work just fine.
I believe it has something to do with my cfgskeletons because I can get the velka and mala to work if I copy and paste the skeletonbones from another chopper addon...But, then most of the other animations dont work.
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">
class CfgPatches {
class den_blackhawk {
units[] = {"den_blackhawk1"};
weapons[] = {};
requiredVersion = 1.0;
requiredAddons[] = {};
};
};
class CfgSkeletons {
class blackhawk_Skeleton {
isDiscrete = 1;
skeletonInherit = "";
skeletonBones[] = {
"velka vrtule", "", "mala vrtule", "",
"otocvez","",
"otochlaven","otocvez",
"alt","",
"alt2","",
"nm_alt","",
"nm_alt2","",
"mph","",
"mph2","",
"vert_speed","",
"vert_speed2","",
"rpm","",
"rpm2","",
"horizont","",
"horizont2","",
"kompas","",
"kompas2","",
"hodinova","",
"hodinova2","",
"minutova","",
"minutova2","",
"rotorShaft","",
"damageHide","",
"dampers","",
"damper_rear","",
"elevator","",
"trup","",
"gatling_1",
"otochlaven",
"otocvez_1","",
"otochlaven_1","otocvez_1",
"gatling_2",
"otochlaven_1"};
};
};
class Rotation {
type = "rotation";
memory = 1;
minValue = 0;
maxValue = 1;
angle0 = 0;
angle1 = 1;
};
class cfgModels {
class Default {
sectionsInherit = "";
sections[] = {};
skeletonName = "";
};
class myblackhawk {
sectionsInherit = "";
sections[] = {
"velka vrtule","velka vrtule staticka","velka vrtule Blur",
"mala vrtule","mala vrtule staticka","mala vrtule blur","otocvez","otochlaven",
"damageHide", "trup", "OtocHlaven_1", "OtocVez_1", "Gatling_1", "Gatling_2", "sklo predni p", "sklo predni l", "RotorShaft", "vert_speed", "vert_speed2","horizont","hori zont2", "mph", "alt", "alt2", "nm_alt", "nm_alt2", "rpm", "rpm2", "kompas", "kompas2", "hodinova", "hodinova2", "minutova", "minutova2"
};
skeletonName = "blackhawk_Skeleton";
class Animations {
class HRotor {
type = "rotation";
source = "rotorH";
selection = "velka vrtule";
axis = "velka osa";
memory = 1;
sourceAddress = "loop";
minValue = 0;
maxValue = 1;
angle0 = 0;
angle1 = "rad +360";
};
class VRotor {
type = "rotation";
source="rotorV";
selection="mala vrtule";
axis="mala osa";
angle0 = 0;
angle1="rad +360";
};
class mainTurret
{
type = "rotationY";
source = "mainTurret";
selection = "otocvez";
axis = "osaveze";
animPeriod = 0;
minValue = "rad -360";
maxValue = "rad +360";
angle0 = "rad -360";
angle1 = "rad +360";
};
class mainGun
{
type = "rotationX";
source = "mainGun";
selection = "otochlaven";
axis = "osahlavne";
animPeriod = 0;
minValue = "rad -360";
maxValue = "rad +360";
angle0 = "rad -360";
angle1 = "rad +360";
};
class rightTurret : mainTurret
{
source="Turret_2";
selection="OtocVez_1";
axis="OsaVeze_1";
};
class rightTurretGun : mainGun
{
source="Gun_2";
selection="OtocHlaven_1";
axis="OsaHlavne_1";
};
class MachineGun_1: Rotation
{
selection="gatling_1";
axis="gatling_1_axis";
source="gatling_1";
angle1="-1000 * 3.141592654";
};
class MachineGun_2: MachineGun_1
{
selection="gatling_2";
axis="gatling_2_axis";
source="Gatling_2";
};
class dampers: Rotation
{
source="altRadar";
selection="dampers";
axis="dampers_axis";
maxValue=0.400000;
angle0=-0.087266;
angle1=-0.296706;
};
class dampers_rear: dampers
{
selection="damper_rear";
axis="damper_rear_axis";
angle0=0.000000;
};
class elevator: Rotation
{
source="speed";
selection="elevator";
axis="elevator_axis";
minValue=25.000000;
maxValue=27.799999;
angle0=-0.523599;
angle1=0.000000;
};
class IndicatorAltRadar : Rotation {
source = "altRadar";
sourceAddress = "loop";
selection = "alt";
axis = "osa_alt";
memory = 0;
maxValue = 304;
angle0 = 0;
angle1 = "rad -360";
};
class IndicatorAltRadar2 : IndicatorAltRadar {
selection = "alt2";
axis = "osa_alt2";
maxValue = 304;
angle0 = 0;
angle1 = "rad -360";
};
class IndicatorCompass : Rotation {
source = "direction";
selection = "kompas";
axis = "osa_kompas";
memory = "false";
angle0 = -3.14159;
angle1 = 3.14159;
minValue = -3.14159;
maxValue = 3.14159;
};
class IndicatorCompass2 : Rotation {
source = "direction";
selection = "kompas2";
axis = "osa_kompas2";
memory = "false";
angle0 = -3.14159;
angle1 = 3.14159;
minValue = -3.14159;
maxValue = 3.14159;
};
class IndicatorVertSpeed : Rotation {
source = "vertSpeed";
selection = "vert_speed";
axis = "osa_vert_speed";
memory = 0;
minValue = -30;
maxValue = 30;
angle1 = -5.23599;
};
class IndicatorVertSpeed2 : Rotation {
source = "vertSpeed";
selection = "vert_speed2";
axis = "osa_vert_speed2";
memory = 0;
minValue = -30;
maxValue = 30;
angle1 = -5.23599;
};
class IndicatorAltBaro : Rotation {
source = "altBaro";
selection = "nm_alt";
axis = "osa_nm_alt";
memory = 0;
sourceAddress = "loop";
maxValue = 61;
angle1 = "rad -180";
};
class IndicatorAltBaro2 : Rotation {
source = "altBaro";
selection = "nm_alt2";
axis = "osa_nm_alt2";
memory = 0;
sourceAddress = "loop";
maxValue = 61;
angle1 = "rad -180";
};
class WatchHour : Rotation {
source = "clockHour";
selection = "hodinova";
axis = "osa_time";
memory = "false";
angle1 = "rad -360";
};
class WatchMinute : Rotation {
source = "clockMinute";
selection = "minutova";
axis = "osa_time";
memory = "false";
angle1 = "rad -360";
};
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 Horizon2Bank {
type = "rotationZ";
source = "horizonBank";
selection = "horizont2";
axis = "osa_horizont2";
memory = "false";
minValue = "rad -360";
maxValue = "rad +360";
angle0 = "rad -360";
angle1 = "rad +360";
};
class HorizonDive {
type = "rotationX";
source = "horizonDive";
selection = "horizont";
axis = "osa_horizont";
memory = 0;
minValue = "rad -360";
maxValue = "rad +360";
angle0 = "rad -360";
angle1 = "rad +360";
};
class Horizon2Dive {
type = "rotationX";
source = "horizonDive";
selection = "horizont2";
axis = "osa_horizont2";
memory = 0;
minValue = "rad -360";
maxValue = "rad +360";
angle0 = "rad -360";
angle1 = "rad +360";
};
class IndicatorRPM_1 : Rotation {
source = "rpm";
selection = "rpm";
axis = "osa_rpm";
memory = "false";
minValue = 0.0;
maxValue = 1.0;
angle0 = 0.0;
angle1 = -4.71239;
};
class IndicatorRPM_2 : IndicatorRPM_1 {
selection = "rpm2";
axis = "osa_rpm2";
};
class IndicatorSpeed : Rotation {
source = "speed";
selection = "mph";
axis = "osa_mph";
memory = "false";
maxValue = 90;
angle1 = "rad -320";
};
class IndicatorSpeed2 : IndicatorSpeed {
selection = "mph2";
axis = "osa_mph2";
maxValue = 90;
angle1 = "rad -320";
};
};
};
};
class CfgVehicleClasses {
class army_air {
displayName = "AIR (ARMY)";
};
};
class CfgVehicles
{
class Helicopter;
class duh60 : Helicopter
{
scope = 0;
type = 2;
vehicleClass = "my_uh60";
class NewTurret;
irScanRangeMin = 500;
class ViewPilot;
class AnimationSources;
};
class den_blackhawk1 : duh60
{
scope = 2;
vehicleClass = "army_air";
displayName = U60;
model = "\UH_60\myblackhawk";
mapSize = 14;
picture = "\ca\air\data\ico\uh_60mg_ CA.paa";
Icon = "\ca\air\data\map_ico\icom ap_uh60mg_CA.paa";
nameSound = "blackhawk";
side = 1;
crew = "SoldierWPilot";
maxSpeed = 270;
accuracy = 0.3;
armor = 30;
damageResistance = 0.00242;
cost = 10000000;
mainRotorSpeed = -1;
soundEngine[] = {"\ca\air\Data\Sound\UH1_e ngine_v1", 35.4813, 1};
soundGetIn[] = {"\ca\air\Data\Sound\heli_ door3", 0.1, 1};
soundGetOut[] = {"\ca\air\Data\Sound\heli_ door3", 0.1, 1};
driverInAction = "UH60_Pilot";
driverAction = "UH60_Pilot";
cargoAction[] = {"UH60_Cargo02"};
transportSoldier = 12;
enableSweep = 0;
transportAmmo = 0;
supplyRadius = 2.5;
initCargoAngleY = 10;
minCargoAngleY = -60;
maxCargoAngleY = 120;
type = 2;
threat[] = {0.3, 1, 0.4};
typicalCargo[] = {"SoldierWPilot", "SoldierWPilot", "SoldierWAT", "SoldierWAT"};
weapons[] = {};
magazines[] = {};
transportMaxMagazines = 150;
transportMaxWeapons = 30;
forceHideDriver = 1;
castDriverShadow = 1;
castCargoShadow = 1;
class Library {
libTextDesc = $STR_LIB_UH60;
};
dammageHalf[] = {"\ca\air\data\UH60_skla_CA.pa a", "\ca\air\data\UH60_sklabr1_CA. paa", "\ca\air\data\UH60_skla_CA.paa ", "\ca\air\data\UH60_sklabr1_CA. paa"};
dammageFull[] = {"\ca\air\data\UH60_skla_CA.pa a", "\ca\air\data\UH60_sklabr2_CA. paa", "\ca\air\data\UH60_skla_CA.paa ", "\ca\air\data\UH60_sklabr2_CA. paa"};
class Damage {
tex[] = {};
mat[] = {"ca\air\data\materialy\uh60_0 1.rvmat", "ca\air\data\materialy\uh60_01 .rvmat", "ca\air\data\materialy\uh60_01 _destruct.rvmat", "ca\air\data\materialy\uh60_02 .rvmat", "ca\air\data\materialy\uh60_02 .rvmat", "ca\air\data\materialy\uh60_02 _destruct.rvmat", "ca\air\data\materialy\uh60_03 .rvmat", "ca\air\data\materialy\uh60_03 .rvmat", "ca\air\data\materialy\uh60_03 _destruct.rvmat", "ca\air\data\materialy\uh60_04 .rvmat", "ca\air\data\materialy\uh60_04 .rvmat", "ca\air\data\materialy\uh60_04 _destruct.rvmat"};
};
class Turrets
{
class MainTurret: NewTurret
{
startEngine = 0;
outGunnerMayFire = 1;
commanding = -1;
memoryPointsGetInGunner = "pos gunner";
memoryPointsGetInGunnerDir = "pos_gunner_dir";
memoryPointGun = "maschinegun";
memoryPointGunnerOptics = "gunnerview";
selectionFireAnim = "zasleh";
body = "mainTurret";
gun = "mainGun";
minElev = -80;
maxElev = 25;
initElev = -80;
minTurn = 30;
maxTurn = 150;
initTurn = 90;
soundServo[] = {"", 0.01, 1.0};
gunBeg = "muzzle_1";
gunEnd = "chamber_1";
weapons[] = {M134};
magazines[] = {"2000Rnd_762x51_M134"};
gunnerName = $STR_POSITION_CREWCHIEF;
gunnerOpticsModel = "\ca\weapons\optika_empty";
gunnerOutOpticsShowCursor = 1;
gunnerOpticsShowCursor = 1;
gunnerAction = "UH60_Gunner";
gunnerInAction = "UH60_Gunner";
primaryGunner = 1;
class ViewOptics {
initAngleX = 0;
minAngleX = -30;
maxAngleX = 30;
initAngleY = 0;
minAngleY = -100;
maxAngleY = 100;
initFov = 0.42;
minFov = 0.22;
maxFov = 0.64;
};
};
class RightDoorGun : MainTurret {
body = "Turret_2";
gun = "Gun_2";
animationSourceBody = "Turret_2";
animationSourceGun = "Gun_2";
animationSourceHatch = "";
selectionFireAnim = "zasleh_1";
proxyIndex = 2;
gunnerName = $STR_POSITION_DOORGUNNER;
commanding = -2;
minTurn = -150;
maxTurn = -30;
initTurn = -90;
weapons[] = {M134_2};
gunBeg = "muzzle_2";
gunEnd = "chamber_2";
primaryGunner = 0;
memoryPointGun = "machinegun_2";
memoryPointGunnerOptics = "gunnerview_2";
};
class copilot : MainTurret
{
body = "";
gun = "";
gunnerName = "CoPilot";
commanding = -3;
memoryPointsGetInGunner = "pos gunner";
memoryPointsGetInGunnerDir = "pos_gunner_dir";
weapons[] = {};
magazines[] = {};
castGunnerShadow = true;
viewGunnerShadow = true;
gunnerAction = "UH60_Cargo01";
gunnerInAction = "UH60_Cargo01";
proxyIndex = 3;
};
};
class AnimationSources : AnimationSources {
class Gatling_1 {
source = "reload";
weapon = M134;
};
class Gatling_2 {
source = "reload";
weapon = M134_2;
};
};
class Reflectors {
class Left {
color[] = {0.8, 0.8, 1.0, 1.0};
ambient[] = {0.07, 0.07, 0.07, 1.0};
position = "L svetlo";
direction = "konec L svetla";
hitpoint = "L svetlo";
selection = "L svetlo";
size = 1;
brightness = 1.0;
};
class Right {
color[] = {0.8, 0.8, 1.0, 1.0};
ambient[] = {0.07, 0.07, 0.07, 1.0};
position = "P svetlo";
direction = "konec P svetla";
hitpoint = "P svetlo";
selection = "P svetlo";
size = 1;
brightness = 1.0;
};
};
};
};
[/QUOTE]
HOME
Reply With Quote
