Advertisement
Guest User

Untitled

a guest
Sep 25th, 2014
583
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class CfgMovesAnimal_Base_F
  2. {
  3.     access = 0;
  4.     collisionVertexPattern[] = {};
  5.     collisionGeomCompPattern[] = {1};
  6.     class Default
  7.     {
  8.         access = 0;
  9.         file = "";
  10.         looped = 1;
  11.         speed = 0.5;
  12.         disableWeapons = 1;
  13.         enableOptics = 1;
  14.         disableWeaponsLong = 0;
  15.         canreload = 1;
  16.         showWeaponAim = 1;
  17.         enableMissile = 0;
  18.         enableBinocular = 0;
  19.         showItemInHand = 0;
  20.         showItemInRightHand = 0;
  21.         showHandGun = 0;
  22.         onLandBeg = 0;
  23.         onLandEnd = 0;
  24.         onLadder = 0;
  25.         canPullTrigger = 1;
  26.         duty = -0.51;
  27.         predictSpeedCoef = 1;
  28.         visibleSize = 1;
  29.         aimPrecision = 1;
  30.         relSpeedMin = 1.0;
  31.         relSpeedMax = 1.0;
  32.         soundEnabled = 1;
  33.         soundOverride = "";
  34.         soundEdge[] = {0.5,1};
  35.         soundEdge1 = 0.5;
  36.         soundEdge2 = 1;
  37.         terminal = 0;
  38.         limitGunMovement = 1;
  39.         variantsPlayer[] = {};
  40.         variantsAI[] = {};
  41.         equivalentTo = "";
  42.         connectAs = "";
  43.         variantAfter[] = {5,10,20};
  44.         connectFrom[] = {};
  45.         connectTo[] = {};
  46.         interpolateWith[] = {};
  47.         interpolateTo[] = {};
  48.         interpolateFrom[] = {};
  49.         aiming = "aimingNo";
  50.         leaning = "aimingNo";
  51.         untiltWeapon = "aimingNo";
  52.         aimingBody = "aimingUpDefault";
  53.         legs = "legsNo";
  54.         head = "headDefault";
  55.         leaningFactorBeg = 0;
  56.         leaningFactorEnd = 0;
  57.         leaningFactorZeroPoint = -1;
  58.         leaningCorrectionAngleBeg = 0;
  59.         leaningCorrectionAngleEnd = 0;
  60.         interpolationSpeed = 6;
  61.         interpolationRestart = 0;
  62.         hasCollShapeSafe = 0;
  63.         collisionShapeSafe = "";
  64.         boundingSphere = 1;
  65.         enableDirectControl = 1;
  66.         enableAutoActions = 0;
  67.         leftHandIKBeg = 0;
  68.         leftHandIKEnd = 0;
  69.         leftHandIKCurve = 0;
  70.         rightHandIKCurve = 0;
  71.         rightHandIKBeg = 0;
  72.         rightHandIKEnd = 0;
  73.         weaponIK = 0;
  74.         preload = 0;
  75.         walkcycles = 1;
  76.         forceAim = 0;
  77.         showDisposableGun = 0;
  78.         headBobStrength = 0.5;
  79.         headBobMode = 1;
  80.     };
  81.     class StandBase: Default
  82.     {
  83.         duty = -1;
  84.         head = "headDefault";
  85.         speed = 1e+010;
  86.         relSpeedMin = 0.7;
  87.         relSpeedMax = 1.1;
  88.         looped = 1;
  89.         soundEnabled = 1;
  90.         enableDirectControl = 0;
  91.         disableWeapons = 1;
  92.         disableWeaponsLong = 1;
  93.     };
  94.     class DefaultDie: Default
  95.     {
  96.         aiming = "aimingNo";
  97.         legs = "legsNo";
  98.         head = "headNo";
  99.     };
  100.     class ManActions
  101.     {
  102.         Stop = "";
  103.         StopRelaxed = "";
  104.         TurnL = "";
  105.         TurnR = "";
  106.         TurnLRelaxed = "";
  107.         TurnRRelaxed = "";
  108.         Default = "";
  109.         JumpOff = "";
  110.         ReloadMagazine = "";
  111.         ReloadMGun = "";
  112.         ReloadAT = "";
  113.         ReloadMortar = "";
  114.         ThrowGrenade = "";
  115.         WalkF = "";
  116.         WalkLF = "";
  117.         WalkRF = "";
  118.         WalkL = "";
  119.         WalkR = "";
  120.         WalkLB = "";
  121.         WalkRB = "";
  122.         WalkB = "";
  123.         SlowF = "";
  124.         SlowLF = "";
  125.         SlowRF = "";
  126.         SlowL = "";
  127.         SlowR = "";
  128.         SlowLB = "";
  129.         SlowRB = "";
  130.         SlowB = "";
  131.         FastF = "";
  132.         FastLF = "";
  133.         FastRF = "";
  134.         FastL = "";
  135.         FastR = "";
  136.         FastLB = "";
  137.         FastRB = "";
  138.         FastB = "";
  139.         EvasiveForward = "";
  140.         EvasiveLeft = "";
  141.         EvasiveRight = "";
  142.         EvasiveBack = "";
  143.         StartSwim = "";
  144.         StopSwim = "";
  145.         Down = "";
  146.         Up = "";
  147.         PlayerStand = "";
  148.         PlayerCrouch = "";
  149.         PlayerProne = "";
  150.         Lying = "";
  151.         Stand = "";
  152.         Combat = "";
  153.         Crouch = "";
  154.         CanNotMove = "";
  155.         Civil = "";
  156.         CivilLying = "";
  157.         FireNotPossible = "";
  158.         Die = "";
  159.         WeaponOn = "";
  160.         WeaponOff = "";
  161.         StrokeFist = "";
  162.         StrokeGun = "";
  163.         SitDown = "";
  164.         Salute = "";
  165.         BinocOn = "";
  166.         BinocOff = "";
  167.         PutDown = "";
  168.         PutDownEnd = "";
  169.         Medic = "";
  170.         Treated = "";
  171.         LadderOnDown = "";
  172.         LadderOnUp = "";
  173.         LadderOff = "";
  174.         LadderOffTop = "";
  175.         LadderOffBottom = "";
  176.         GetInLow = "";
  177.         GetInMedium = "";
  178.         GetInHigh = "";
  179.         GetOutLow = "";
  180.         GetOutMedium = "";
  181.         GetOutHigh = "";
  182.         TakeFlag = "";
  183.         HandGunOn = "";
  184.         LookAround = "";
  185.         Eat = "";
  186.         StopEat = "";
  187.         Rest = "";
  188.         StopRest = "";
  189.     };
  190.     class Actions
  191.     {
  192.         class NoActions: ManActions
  193.         {
  194.             turnSpeed = 8;
  195.             limitFast = 5.5;
  196.             useFastMove = 0;
  197.             stance = "ManStanceUndefined";
  198.             upDegree = 0;
  199.         };
  200.     };
  201.     class Interpolations{};
  202.     transitionsInterpolated[] = {};
  203.     transitionsSimple[] = {};
  204.     transitionsDisabled[] = {};
  205.     class BlendAnims
  206.     {
  207.         aimingDefault[] = {"head",1};
  208.         untiltWeaponDefault[] = {};
  209.         legsDefault[] = {};
  210.         headDefault[] = {"Head",1};
  211.         aimingNo[] = {};
  212.         legsNo[] = {};
  213.         headNo[] = {};
  214.         aimingUpDefault[] = {};
  215.     };
  216. };
  217. class CfgMovesWhales_F: CfgMovesAnimal_Base_F
  218. {
  219.     skeletonName = "Whale_F";
  220.     class Default: Default
  221.     {
  222.         actions = "WhalesActions";
  223.         collisionShape = "A3\Animals_F\empty_CollShape.p3d";
  224.     };
  225.     class DefaultDie: Default{};
  226.     class StandBase: Default
  227.     {
  228.         file = "\mm_marine\Whale\Anim\Whale_swimcycle.rtm";
  229.     };
  230.     class States
  231.     {
  232.         class Whales_Swim: StandBase
  233.         {  
  234.             file = "\mm_marine\Whale\Anim\Whale_swimcycle.rtm";
  235.             looped = 1;
  236.             speed = -4;
  237.             // Was Speed = -1 which did slow it down yet to try -4
  238.             connectTo[] = {"Whales_Stop",1,"Whales_Swim",1,"Whales_Swim_S1",1};
  239.             equivalentTo = "Whales_Swim";
  240.             variantsAI[] = {"Whales_Swim",0.01};
  241.             variantAfter[] = {0.33,0.33,0.33};
  242.         };
  243.         class Whales_Stop: StandBase
  244.         {
  245.             file = "\mm_marine\Whale\Anim\Whale_stop.rtm";
  246.             looped = 1;
  247.             speed = -4;
  248.             connectFrom[] = {"Whales_Swim",1};
  249.             connectTo[] = {"Whales_Swim",1};
  250.         };
  251.         class Whales_Die: DefaultDie
  252.         {
  253.             file = "\mm_marine\Whale\Anim\Whale_death.rtm";
  254.             speed = -4;
  255.             actions = "NoActions";
  256.             looped = "False";
  257.             terminal = 1;
  258.         };
  259.     };
  260.         class Actions: Actions
  261.     {
  262.             class NoActions: NoActions
  263.         {
  264.             Stop = "Whales_Stop";
  265.             StopRelaxed = "Whales_Stop";
  266.             TurnL = "Whales_Stop";
  267.             TurnR = "Whales_Stop";
  268.             TurnLRelaxed = "Whales_Stop";
  269.             TurnRRelaxed = "Whales_Stop";
  270.             Default = "Whales_Swim";
  271.             JumpOff = "Whales_Swim";
  272.             StartSwim = "Whales_swim";
  273.             StopSwim = "Whales_Swim";
  274.             WalkF = "Whales_swim";
  275.             SlowF = "Whales_swim";
  276.             FastF = "Whales_swim";
  277.             EvasiveForward = "Whales_swim";
  278.             Down = "Whales_Swim";
  279.             Up = "Whales_Swim";
  280.             PlayerStand = "Whales_Swim";
  281.             PlayerCrouch = "Whales_Swim";
  282.             PlayerProne = "Whales_Swim";
  283.             Lying = "Whales_Swim";
  284.             Stand = "Whales_Swim";
  285.             Combat = "Whales_Swim";
  286.             Crouch = "Whales_Swim";
  287.             CanNotMove = "Whales_Stop";
  288.             Civil = "Whales_Swim";
  289.             CivilLying = "Whales_Swim";
  290.             FireNotPossible = "Whales_Swim";
  291.             Die = "Whales_Die";
  292.             Eat = "Whales_Swim";
  293.             Rest = "Whales_Swim";
  294.         };
  295.         class WhalesActions: NoActions
  296.         {
  297.             Stop = "Whales_Stop";
  298.             StopRelaxed = "Whales_Stop";
  299.             TurnL = "Whales_Stop";
  300.             TurnR = "Whales_Stop";
  301.             TurnLRelaxed = "Whales_Stop";
  302.             TurnRRelaxed = "Whales_Stop";
  303.             Default = "Whales_Swim";
  304.             JumpOff = "Whales_Swim";
  305.             StartSwim = "Whales_swim";
  306.             StopSwim = "Whales_Swim";
  307.             WalkF = "Whales_swim";
  308.             SlowF = "Whales_swim";
  309.             FastF = "Whales_swim";
  310.             EvasiveForward = "Whales_swim";
  311.             Down = "Whales_Swim";
  312.             Up = "Whales_Swim";
  313.             PlayerStand = "Whales_Swim";
  314.             PlayerCrouch = "Whales_Swim";
  315.             PlayerProne = "Whales_Swim";
  316.             Lying = "Whales_Swim";
  317.             Stand = "Whales_Swim";
  318.             Combat = "Whales_Swim";
  319.             Crouch = "Whales_Swim";
  320.             CanNotMove = "Whales_Stop";
  321.             Civil = "Whales_Swim";
  322.             CivilLying = "Whales_Swim";
  323.             FireNotPossible = "Whales_Swim";
  324.             Die = "Whales_Die";
  325.             Eat = "Whales_Swim";
  326.             Rest = "Whales_Swim";
  327.             turnSpeed = 1;
  328.             limitFast = 5.5;
  329.             useFastMove = 0;
  330.             upDegree = "ManPosNoWeapon";
  331.         };
  332.     };
  333.     class BlendAnims: BlendAnims
  334.     {
  335.         aimingDefault[] = {"Whale_head",1};
  336.         headDefault[] = {"Whale_head",1};
  337.     };
  338. };
  339.  
  340. class CfgPatches
  341. {
  342.     class A3_Animals_F_Whales
  343.     {
  344.         units[] = {"Whale_F"};
  345.         weapons[] = {};
  346.         requiredVersion = 0.1;
  347.         requiredAddons[] = {"A3_Animals_F"};
  348.     };
  349. };
  350. class CfgVehicles
  351. {
  352.     class Animal_Base_F;
  353.     class Fish_Base_F: Animal_Base_F
  354.     {
  355.         moves = "CfgMovesWhales_F";
  356.         memoryPointAim = "pilot";
  357.         memoryPointCameraTarget = "camera";
  358.         minHeight = "(-1 * waterDepth)";
  359.         avgHeight = "(-1 * waterDepth)/4";
  360.         maxHeight = -1.5;
  361.         straightDistance = 100;
  362.         turning = 5;
  363.         class VariablesScalar
  364.         {
  365.             _threatMaxRadius = 5;
  366.             _runDistanceMax = 25;
  367.             _movePrefer = 1;
  368.             _formationPrefer = 0.7;
  369.             _scareLimit = 0.2;
  370.             _dangerLimit = 1.0;
  371.             _walkSpeed = -1;
  372.         };
  373.         class VariablesString
  374.         {
  375.             _expSafe = "waterDepth interpolate [2,3,0,1]";
  376.             _expDanger = "waterDepth interpolate [2,3,0,1]";
  377.         };
  378.     };
  379.         class Whale_F: Fish_Base_F
  380.     {
  381.         scope = 2;
  382.         displayName = "Whale";
  383.         model = "\mm_marine\Whale\Whale_F.p3d";
  384.     };
  385.  
  386. };
Advertisement
RAW Paste Data Copied
Advertisement