eddyd 0 Posted November 11, 2010 Hey all I have a little problem with the doors animation . The lights are work fine on shelter but doors are not working anymore . I think is a config problem . Hope some can help me with this . here is the config: #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 class CfgPatches { class russian_Shelter { units[] = {soviet_has}; weapons[] = {}; requiredVersion = 1.0; }; }; class cfgvehicleClasses { class russian_Shelter { displayName = "russian_Shelter"; }; }; class CfgSounds { class dooropen { name= "dooropen"; sound[]={"\russian_Shelter\sounds\dooropen.ogg",1,1}; titles[]={}; }; class doorclose { name= "doorclose"; sound[]={"\russian_Shelter\sounds\doorclose.ogg",1,1}; titles[]={}; }; }; class Rotation { type = "translation"; memory = 1; minValue = 0; maxValue = 1; angle0 = 0; angle1 = 1; }; class CfgVehicles { class All; class Static : all {}; class Building : Static {}; class Strategic : Building {}; class Shelter: Strategic{}; class soviet_has: Shelter { scope=2; armor=90000; attendant=1; animated=1; vehicleClass="russian_Shelter"; displayName="soviet_has"; model="\russian_Shelter\soviet_has.p3d"; icon = "\russian_Shelter\ICONS\ICON_SOVIET.paa"; transportAmmo = 300000; transportFuel=50000; transportRepair=20000000; accuracy = 0.300000; mapSize=80; class MarkerLights { class WhiteBlinking { name="svet1"; color[]={1.000000, 1.000000, 1.000000, 1}; ambient[]={1.000000, 1.000000, 1.000000, 1}; brightness=0.005000; blinking=0; }; class WihteBlinking2 { name="svet2"; color[]={1.000000, 1.000000, 1.000000, 1}; ambient[]={1.000000, 1.000000, 1.000000, 1}; brightness=0.005000; blinking=0; }; class WihteBlinking3 { name="svet3"; color[]={1.000000, 1.000000, 1.000000, 1}; ambient[]={1.000000, 1.000000, 1.000000, 1}; brightness=0.005000; blinking=0; }; class WihteBlinking4 { name="svet4"; color[]={1.000000, 1.000000, 1.000000, 1}; ambient[]={1.000000, 1.000000, 1.000000, 1}; brightness=0.005000; blinking=0; }; }; class Reflectors { class mainlight { color[] = {1.0, 1.0, 1.0, 1.0}; ambient[] = {1.0, 1.0, 1.0, 1.0}; position = "source_mainlight"; direction = "Direction_mainlight"; hitpoint = "mainlight"; selection = "lightflare"; size = 50; brightness = 0.3; }; }; class AnimationSources { class front_right { source = "user"; animPeriod = .5; initPhase = 0; }; class front_left { source = "user"; animPeriod = .5; initPhase = 0; }; class doorsideL { source = "user"; animPeriod = 2; initPhase = 0; }; class doorsideR { source = "user"; animPeriod = 2; initPhase = 0; }; }; class UserActions { class CDoor1 { displayName="Close Front Right"; onlyforplayer = false; position="doorraxis"; radius=25; condition="this animationPhase ""front_right"" < 0.5"; statement="this animate [""front_right"",8.1]; this say ""doorclose"""; }; class ODoor1 { displayName="Open Front Right"; onlyforplayer = false; position="doorraxis"; radius=25; condition="this animationPhase ""front_right"" >= 0.5"; statement="this animate [""front_right"", 0]; this say ""dooropen"""; }; class CDoor2 { displayName="Close Front Left"; onlyforplayer = false; position="doorlaxis"; radius=25; condition="this animationPhase ""front_left"" == 0"; statement="this animate [""front_left"",-8.1]; this say ""doorclose"""; }; class ODoor2 { displayName="Open Front Left"; onlyforplayer = false; position="doorlaxis"; radius=25; condition="this animationPhase ""front_left"" < 0"; statement="this animate [""front_left"", 0]; this say ""dooropen"""; }; class rDoorr { displayName="Close Rear Doors"; onlyforplayer = false; position="doorsideL"; radius=25; condition="this animationPhase ""doorsideL"" <= 0.5 "; statement="this animate [""doorsideL"",1];this animate [""doorsideR"",1]"; }; class rDoorl { displayName="Open Rear Doors"; onlyforplayer = false; position="doorsideL"; radius=25; condition="this animationPhase ""doorsideL"" > 0.2"; statement="this animate [""doorsideL"", 0];this animate [""doorsideR"", 0]"; }; }; }; }; cya eddyD Share this post Link to post Share on other sites
[aps]gnat 28 Posted November 12, 2010 Wheres you Model.cfg? Post code here using the [ PHP ] tags Share this post Link to post Share on other sites
rksl-rock 1300 Posted November 12, 2010 (edited) Hey all I have a little problem with the doors animation ... Try inheriting from class house. It should work. Edited November 12, 2010 by RKSL-Rock wrong quote Share this post Link to post Share on other sites
eddyd 0 Posted November 13, 2010 Here is the model.cfg class CfgSkeletons { class hangBONES { isDiscrete=1; skeletonInherit = ""; skeletonBones[]={"doorf","","doorL","","doorb",""}; }; class soviet_has_Skeleton { isDiscrete=1; skeletonInherit = ""; skeletonBones[]={"doorr","","doorl","","doorsideL","","doorsideR",""}; }; }; class CfgModels { class Shelter; class soviet_has : shelter { sectionsInherit=""; sections[]={"doorr","doorl"}; skeletonName = "soviet_has_Skeleton"; class Animations { class front_right { type = "translationX"; animPeriod = .5; source = "user"; selection = "doorr"; minValue = 0.000; maxValue = 8.1; }; class front_left { type = "translationX"; animPeriod = .5; source = "user"; selection = "doorl"; minValue = -8.1; maxValue = 0.000; }; class doorsideL { type="rotationY"; animPeriod= 2; source="user"; selection="doorsideL"; minvalue=0; maxvalue=1; axis="osa_doorsideL"; angle0=0; angle1=-2.224; }; class doorsideR { type="rotationY"; animPeriod= 2; source="user"; selection="doorsider"; minvalue=0; maxvalue=1; axis="osa_doorsideR"; angle0=0; angle1=2.324; }; }; }; }; }; Share this post Link to post Share on other sites
[aps]gnat 28 Posted November 14, 2010 In model.cfg; source = "user"; All are "user". I think thats wrong. Shouldn't each be changed to be like; source = "front_right"; and source = "doorsideL"; etc As defined in your config.cpp under AnimationSources Share this post Link to post Share on other sites
eddyd 0 Posted November 14, 2010 Thx guys It was source = "user" that block the doors animation Share this post Link to post Share on other sites