Dr. Madlove 10 Posted October 8, 2010 Hi I'm having some trouble with a user animation and the rotor dive anims. The user animation is a screen that the pilot can flip up and down inside the cockpit. The ActionMenu pop-up doesn't appear while seated inside the vehicle, though it does work when I'm standing outside of the vehicle next to my userAction memoryPoint. As for my "rotors", they tilt fine inside O2 but do nothing in-game. Am I using the wrong 'source' or something? Here are my configs: // Config written by 'konyo'// 15:52 22/09/ #define true 1 #define false 0 #define private 0 #define protected 1 #define public 2 class CfgPatches { class SLG_Vociferator { units[] = {"SLG_Vociferator"}; weapons[] = {}; requiredAddons[] = {}; }; }; class CfgFactionClasses { class US { displayName = "US"; priority = 0; side = 1; }; }; class cfgVehicles { class Helicopter; class SLG_Vociferator : Helicopter { scope = public; model = "\SLG_Vociferator\SLG_Vociferator.p3d"; displayName = "Vociferator"; faction = "US"; vehicleClass = "Air"; side = 1; crew = "US_Pilot_EP1"; DriverAction = "AH1Z_Gunner"; maxSpeed = 500; // max speed on level road, km/h nameSound = "gunship"; armor = 1000; maxMainRotorDive ="rad 60"; minMainRotorDive ="rad -60"; transportSoldier = 0; gearRetracting = false; cost = 500000; class AnimationSources { class user_pilot_screen { source = "user"; animPeriod = 4; initPhase=0; }; }; class UserActions { class Retract_Screen { displayName="Retract Screen"; position="pilot_screen_action"; onlyforplayer=0; radius=4; condition="(this animationPhase ""screen_pilot_retract"" == 0)"; statement="this animate [""screen_pilot_retract"",1];"; }; class Enable_Screen { displayName="Enable Screen"; position="pilot_screen_action"; onlyforplayer=0; radius=4; condition="(this animationPhase ""screen_pilot_retract"" == 1)"; statement="this animate [""screen_pilot_retract"",0];"; }; }; class ViewPilot { initFov = 1; minFov = 0.3; maxFov = 1.2; initAngleX = 25; minAngleX = -65; maxAngleX = 80; initAngleY = 0; minAngleY = -155; maxAngleY = 155; }; class Library { libTextDesc = "A large gunship with transport capabilities"; }; }; }; And the Model.cfg: class CfgSkeletons{ class Vehicle; class Helicopter: Vehicle { skeletonInherit="Vehicle"; skeletonBones[]={}; }; class SLG_VociferatorSkeleton: Helicopter { isDiscrete=0; skeletonInherit="Helicopter"; skeletonBones[]= { "engine_left_back","", "engine_left_front","", "engine_right_front","", "engine_right_back","", "wheel_left_1","", "wheel_left_2","", "wheel_right_3","", "wheel_right_4","", "wheel_front","", "Cannon_Base_y","", "Cannon_x","Cannon_Base_y", "screen_pilot","" }; }; }; class Rotation; class CfgModels { class Vehicle; class Helicopter: Vehicle { sectionsInherit="Vehicle"; sections[]={}; skeletonName="Helicopter"; class Animations { }; }; class SLG_Vociferator: Helicopter { sections[]= { }; skeletonName="SLG_VociferatorSkeleton"; class Animations { class screen_pilot_retract : Rotation { type="rotation"; source="user_pilot_screen"; sourceAddress = "clamp"; selection="screen_pilot"; axis="screen_pilot_axis"; memory=1; angle0="rad 0"; angle1="rad 75"; minValue="0.000"; maxValue="1.000"; }; class engine_left_back_pitch : Rotation { type="rotationX"; source="rotorHdive"; selection="engine_left_back"; axis="engine_left_back_axis"; memory = 1; minValue="rad -60"; maxValue="rad 60"; angle0="rad -60"; angle1="rad 60"; }; class engine_right_back_pitch : Rotation { type="rotationX"; source="rotorHdive"; selection="engine_right_back"; axis="engine_right_back_axis"; memory = 1; minValue="rad -60"; maxValue="rad 60"; angle0="rad -60"; angle1="rad 60"; }; class engine_right_front_pitch : Rotation { type="rotationX"; source="rotorHdive"; selection="engine_right_front"; axis="engine_right_front_axis"; memory = 1; minValue="rad -60"; maxValue="rad 60"; angle0="rad -60"; angle1="rad 60"; }; class engine_left_front_pitch : Rotation { type="rotationX"; source="rotorHdive"; selection="engine_left_front"; axis="engine_left_front_axis"; memory = 1; minValue="rad -60"; maxValue="rad 60"; angle0="rad -60"; angle1="rad 60"; }; class wheel_left_1_turn : Rotation { type="rotationX"; source="wheel"; selection="wheel_left_1"; axis=""; memory = 1; sourceAddress="loop"; angle0=0; angle1="rad -360"; }; class wheel_left_2_turn : Rotation { type="rotationX"; source="wheel"; selection="wheel_left_2"; axis=""; memory = 1; sourceAddress="loop"; angle0=0; angle1="rad -360"; }; class wheel_right_3_turn : Rotation { type="rotationX"; source="wheel"; selection="wheel_right_3"; axis=""; memory = 1; sourceAddress="loop"; angle0=0; angle1="rad -360"; }; class wheel_right_4_turn : Rotation { type="rotationX"; source="wheel"; selection="wheel_right_4"; axis=""; memory = 1; sourceAddress="loop"; angle0=0; angle1="rad -360"; }; class wheel_front : Rotation { type="rotationX"; source="wheel"; selection="wheel_front"; axis=""; memory = 1; sourceAddress="loop"; angle0=0; angle1="rad -360"; }; class mainGun { type="rotationX"; source="mainTurret"; selection="Cannon"; animPeriod = 0; axis="Cannon_axis"; memory=1; minValue="rad -15"; maxValue="rad +90"; angle0="rad -15"; angle1="rad +90"; }; class mainTurret { type="rotationY"; source="mainGun"; selection="Cannon_Base"; axis="Cannon_Base_axis"; memory=1; animPeriod = 0; minValue="rad -150"; maxValue="rad +150"; angle0="rad -150"; angle1="rad +150"; }; class Cannon_base_y : mainTurret { selection = "Cannon_base_y"; axis = "cannon_base_axis"; }; class Cannon_x : Maingun { selection = "Cannon_x"; axis = "cannon_axis"; }; }; }; }; Any help will be most appreciated Thank you Share this post Link to post Share on other sites
konyo 14 Posted October 31, 2010 HiI'm having some trouble with a user animation and the rotor dive anims. The user animation is a screen that the pilot can flip up and down inside the cockpit. The ActionMenu pop-up doesn't appear while seated inside the vehicle, though it does work when I'm standing outside of the vehicle next to my userAction memoryPoint. As for my "rotors", they tilt fine inside O2 but do nothing in-game. Am I using the wrong 'source' or something? Here are my configs: Any help will be most appreciated Thank you Dont know your problem there mate sorry, but just spotted this at the top of your config :p // Config written by 'konyo' // 15:52 22/09/ Lol, caught you out on that one ;) Share this post Link to post Share on other sites