Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 27

Thread: Danimations

  1. #11
    Master Sergeant Matthijs's Avatar
    Join Date
    Jan 11 2002
    Location
    The Netherlands, Utrecht area
    Posts
    638
    Would it be possible to do this on parts of a gun?

    I want my ammo to rotate through the gun, like in OFP Taiwan's machineguns. Can this be used to do that at about 1,2 revolutions per second?
    Fiery the angels fell, deep thunder rolled around their shores. Burning with the fires of Orc.

  2. #12
    Chief Warrant Officer Soul_Assassin's Avatar
    Join Date
    May 4 2002
    Posts
    3,182
    Author of the Thread
    Yes it is possible, and has been demonstrated on several ocasions. Give me a vouple of hours and i will get back at u with how to do it.

  3. #13
    Master Sergeant Matthijs's Avatar
    Join Date
    Jan 11 2002
    Location
    The Netherlands, Utrecht area
    Posts
    638
    Oh, YESYESYESYES !!!!

    PLEASE!!!





    I want to let the "ammo belt" (actually a circle) to rotate VERY fast when firing. It's currently using the "revolve" animation, which rotates the object once for each magazine emptied.


    Also see [ THIS ] thread.


    I would be very thankful for your help!

  4. #14
    What about sliding doors how can you do that.
    I have seen them on alot of people making helo's these days.




  5. #15
    Master Sergeant Matthijs's Avatar
    Join Date
    Jan 11 2002
    Location
    The Netherlands, Utrecht area
    Posts
    638
    </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (NAA_Us_Marine @ Nov. 04 2002,00:22)</td></tr><tr><td id="QUOTE">What about sliding doors how can you do that.
    I have seen them on alot of people making helo&#39;s these days.[/QUOTE]<span id='postcolor'>
    I didn&#39;t check, but my guess is that it&#39;s a rotation with a very far point as the axis.

  6. #16
    Master Gunnery Sergeant
    Join Date
    Jan 7 2002
    Location
    New Zealand
    Posts
    1,088
    </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (Matthijs @ Nov. 04 2002,09:51)</td></tr><tr><td id="QUOTE"></span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (NAA_Us_Marine @ Nov. 04 2002,00:22)</td></tr><tr><td id="QUOTE">What about sliding doors how can you do that.
    I have seen them on alot of people making helo&#39;s these days.[/QUOTE]<span id='postcolor'>
    I didn&#39;t check, but my guess is that it&#39;s a rotation with a very far point as the axis.[/QUOTE]<span id='postcolor'>
    Yes it is. On the Huey I&#39;m building for the Falklands mod the pivot point for the port door is on the starboard side and the starboard pivot on the port side. You have to experment with distances. the closer the pivot the smaller turning circle etc.
    Heres the animation code I used:
    // Door Animation
    class Animations
    {
    class PrtDoor
    {
    type="rotation";
    animPeriod=3;
    selection="prtdoor";
    axis="osa_prtdoor";
    angle0=0;
    angle1=0.2;
    };
    class StabDoor
    {
    type="rotation";
    animPeriod=3;
    selection="Stabdoor";
    axis="osa_stabdoor";
    angle0=0;
    angle1=-0.2;
    };
    };
    class UserActions
    {
    class OpenPrtdoor
    {
    displayName="Open Port Door";
    position="osa_L";
    radius=3;
    condition="this animationPhase ""prtdoor"" < 0.5";
    statement="this animate [""prtdoor"", 1]";
    };
    class ClosePrtdoor
    {
    displayName="Close Port Door";
    position="osa_L";
    radius=3;
    condition="this animationPhase ""prtdoor"" >= 0.5";
    statement="this animate [""prtdoor"", 0]";
    };
    class Openstabdoor
    {
    displayName="Open Starboard Door";
    position="osa_R";
    radius=3;
    condition="this animationPhase ""Stabdoor"" < 0.5";
    statement="this animate [""Stabdoor"", 1]";
    };
    class CloseStabdoor
    {
    displayName="Close Starboard Door";
    position="osa_R";
    radius=3;
    condition="this animationPhase ""Stabdoor"" >= 0.5";
    statement="this animate [""Stabdoor"", 0]";
    };


    };

    Door activation position points and radius:
    osa_R and osa_L are the position points in the memory lod where you want the doors to be activated from. ie osa_R is by the starboard door and osa_L by the port door. radius=3 is the distance from those points. Note: Make the radius big enough so it includes the pilot or copilot seat area for the respective sides.



    We are now fully operational - that is, we are in a constant flap instead of having isolated confused situations.

    D.I.L.L.I.G.A.F.: Rebel Without a Pause

  7. #17
    Chief Warrant Officer Soul_Assassin's Avatar
    Join Date
    May 4 2002
    Posts
    3,182
    Author of the Thread
    </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (Colonel_Klink @ Nov. 04 2002,12:07)</td></tr><tr><td id="QUOTE"></span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (Matthijs @ Nov. 04 2002,09:51)</td></tr><tr><td id="QUOTE"></span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (NAA_Us_Marine @ Nov. 04 2002,00:22)</td></tr><tr><td id="QUOTE">What about sliding doors how can you do that.
    I have seen them on alot of people making helo&#39;s these days.[/QUOTE]<span id='postcolor'>
    I didn&#39;t check, but my guess is that it&#39;s a rotation with a very far point as the axis.[/QUOTE]<span id='postcolor'>
    Yes it is. On the Huey I&#39;m building for the Falklands mod the pivot point for the port door is on the starboard side and the starboard pivot on the port side. You have to experment with distances. the closer the pivot the smaller turning circle etc.
    Heres the animation code I used:
    // Door Animation
    class Animations
    {
    class PrtDoor
    {
    type="rotation";
    animPeriod=3;
    selection="prtdoor";
    axis="osa_prtdoor";
    angle0=0;
    angle1=0.2;
    };
    class StabDoor
    {
    type="rotation";
    animPeriod=3;
    selection="Stabdoor";
    axis="osa_stabdoor";
    angle0=0;
    angle1=-0.2;
    };
    };
    class UserActions
    {
    class OpenPrtdoor
    {
    displayName="Open Port Door";
    position="osa_L";
    radius=3;
    condition="this animationPhase ""prtdoor"" < 0.5";
    statement="this animate [""prtdoor"", 1]";
    };
    class ClosePrtdoor
    {
    displayName="Close Port Door";
    position="osa_L";
    radius=3;
    condition="this animationPhase ""prtdoor"" >= 0.5";
    statement="this animate [""prtdoor"", 0]";
    };
    class Openstabdoor
    {
    displayName="Open Starboard Door";
    position="osa_R";
    radius=3;
    condition="this animationPhase ""Stabdoor"" < 0.5";
    statement="this animate [""Stabdoor"", 1]";
    };
    class CloseStabdoor
    {
    displayName="Close Starboard Door";
    position="osa_R";
    radius=3;
    condition="this animationPhase ""Stabdoor"" >= 0.5";
    statement="this animate [""Stabdoor"", 0]";
    };


    };

    Door activation position points and radius:
    osa_R and osa_L are the position points in the memory lod where you want the doors to be activated from. ie osa_R is by the starboard door and osa_L by the port door. radius=3 is the distance from those points. Note: Make the radius big enough so it includes the pilot or copilot seat area for the respective sides.[/QUOTE]<span id='postcolor'>
    </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE"> Note: Make the radius big enough so it includes the pilot or copilot seat area for the respective sides.
    [/QUOTE]<span id='postcolor'>

    Hmm animations can&#39;t be triggered in-flight anyway so y really bother?

    @Matthijs

    Can you please post yuo config here?

    PS: R u Dutch? If yes I live in Holland

  8. #18
    Master Sergeant Matthijs's Avatar
    Join Date
    Jan 11 2002
    Location
    The Netherlands, Utrecht area
    Posts
    638
    Eyyyyyy&#33;&#33;&#33;&#33;

    IF IT AIN&#39;T DUTCH, IT AIN&#39;T MUCH &#33;&#33;&#33;

    I live in Gorinchem. And you?


    There&#39;s a lot I remarked out. But I guess you can see what I did.

    </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">
    // THE FN MAG/MAG58/GMPG/M240/C6 was created by W.M. Crielaard
    // url&#58; http&#58;//www.bbemariniers.net
    // email&#58;
    //
    // This addon for Operation Flashpoint is shareware and can be distributed under the
    // following conditions&#58;
    //
    // If you want to use some or all of the content of this addon for your own work,
    // send a request to
    //
    // - Non commercial distribution only
    // - Modified versions may never be packaged with the original versions
    // - Modified versions may never have the same class names the original versions
    // - Original packages may not be modified in any way
    //
    // Model&#92;Skinning&#92;Importing by Willem-Matthijs Crielaard
    // config.cpp by Willem-Matthijs Crielaard
    // Original optics by OFP Taiwan workshop
    // Military consultancy by &#34;Assault&#91;CAN&#93;&#34; Tyler
    // V1.0

    class CfgPatches
    {
    class KM_Mod
    {
    units&#91;&#93; = {};
    weapons&#91;&#93; = {KM_FNMAG};
    requiredVersion = 1.2;
    };
    };

    class CfgModels
    {

    class Default
    {
    sections&#91;&#93; = {};
    sectionsInherit=&#34;&#34;;
    };
    class Weapon&#58; Default{};
    class km_fnmag&#58; Weapon
    {
    sections&#91;&#93; = {&#34;zasleh&#34;};
    };
    class km_fnmagoptics&#58; Weapon
    {
    sections&#91;&#93; = {&#34;zasleh&#34;};
    };
    };

    //class CfgAmmo
    //{
    // class Default {};
    // class BulletSingle&#58; Default {};
    // class Bullet7_6&#58; BulletSingle {};
    // class KM_762NATO&#58; Bullet7_6
    // {
    // airLock=1;
    // hit=10;
    // cost=5;
    // tracerColor&#91;&#93;={1,0.25000,0.12500,0.5};
    // minRange=1;
    // minRangeProbab=0.9;
    // midRange=500;
    // midRangeProbab=0.75;
    // maxRange=1000;
    // maxRangeProbab=0.25;
    // };
    //};

    ////////////////////////////////////////////////////////
    // FNMAG + AMMO DEFINITION
    ////////////////////////////////////////////////////////

    class CfgWeapons
    {
    class Default {};
    class MGun &#58; Default {};
    class MachineGun7_6&#58; MGun {};
    class MachineGun7_6Manual&#58; MachineGun7_6 {};
    class KM_FNMAG&#58; MachineGun7_6Manual
    {
    displayName=&#34;FN MAG&#34;;
    weaponType=1;
    model=&#34;&#92;km_fnmag&#92;km_fnmag.p3d&#34;;
    picture=&#34;&#92;km_fnmag&#92;fnmaginv.paa&#34;;
    scopeWeapon = 2;
    scopeMagazine = 2;
    modelOptics=&#34;&#92;km_fnmag&#92;km_fnmagoptics. p3d&#34;;
    optics = true;
    opticsFlare=0;
    opticsZoomMin=0.35;
    opticsZoomMax=0.35;
    displayNameMagazine=&#34;FN MAG ammo box&#34;;
    shortNameMagazine=&#34;FN MAG ammo&#34;;
    reloadSound&#91;&#93;={&#34;&#34;,1,1};
    reloadMagazineSound&#91;&#93;={&#34;&#92;km_fnmag& #92;fnmagreload.wav&#34;,db-70,1};
    count=100;
    magazines&#91;&#93; = {&#34;KM_FNMAGMag&#34;};

    revolving=&#34;ammobelt&#34;;
    revolvingAxis=&#34;ammobelt_ax&#34;;
    revolvingspeed=0.1;

    modes&#91;&#93; = {&#34;gas1&#34;, &#34;gas2&#34;, &#34;gas3&#34;};
    class gas1
    {
    ammo=Bullet7_6W;
    // ammo=KM_762NATO;
    multiplier=1;
    burst=1;
    displayName=&#34;FN MAG, gas&#58;1&#34;;
    sound&#91;&#93;={&#34;&#92;km_fnmag&#92;fnmag.wav& #34;,db10,1};
    soundContinuous=0;
    reloadTime=0.085000;

    ffCount=6;
    ffMagnitude=0.500000;
    ffFrequency=11;

    dispersion=0.002500;
    aiDispersionCoefX=5.000000; // dispersion used to simulate horizontal burst
    // aiDispersionCoefY=2.000000;
    maxLeadSpeed=300;

    recoil=&#34;mgunBurst3&#34;;
    // recoil=&#34;riffleSingle&#34;;
    autoFire = true;
    useAction= false;
    useActionTitle=&#34;&#34;;
    aiRateOfFire=0;
    aiRateOfFireDistance=0;
    };
    class gas2
    {

    ammo=Bullet7_6W;
    // ammo=KM_762NATO;
    multiplier=1;
    burst=1;
    displayName=&#34;FN MAG, gas&#58;2&#34;;
    sound&#91;&#93;={&#34;&#92;km_fnmag&#92;fnmag.wav& #34;,db10,1};
    soundContinuous=0;
    reloadTime=0.070000;

    ffCount=6;
    ffMagnitude=0.500000;
    ffFrequency=11;

    dispersion=0.002500;
    aiDispersionCoefX=5.000000; // dispersion used to simulate horizontal burst
    // aiDispersionCoefY=2.000000;
    maxLeadSpeed=300;

    recoil=&#34;mgunBurst3&#34;;
    // recoil=&#34;riffleSingle&#34;;
    autoFire = true;
    useAction= false;
    useActionTitle=&#34;&#34;;
    aiRateOfFire=0;
    aiRateOfFireDistance=0;
    };
    class gas3
    {

    ammo=Bullet7_6W;
    // ammo=KM_762NATO;
    multiplier=1;
    burst=1;
    displayName=&#34;FN MAG, gas&#58;3&#34;;
    sound&#91;&#93;={&#34;&#92;km_fnmag&#92;fnmag.wav& #34;,db10,1};
    soundContinuous=0;
    reloadTime=0.060000;

    ffCount=6;
    ffMagnitude=0.500000;
    ffFrequency=11;

    dispersion=0.002500;
    aiDispersionCoefX=5.000000; // dispersion used to simulate horizontal burst
    // aiDispersionCoefY=2.000000;
    maxLeadSpeed=300;

    recoil=&#34;mgunBurst3&#34;;
    // recoil=&#34;riffleSingle&#34;;
    autoFire = true;
    useAction= false;
    useActionTitle=&#34;&#34;;
    aiRateOfFire=0;
    aiRateOfFireDistance=0;
    };
    };
    class KM_FNMAGMag &#58; KM_FNMAG
    {
    picture=&#34;&#92;km_fnmag&#92;fnmagmaginv.paa&#34 ;;
    };
    };

    class CfgVehicles
    {
    class All{};
    class AllVehicles &#58; All{};
    class Land &#58; AllVehicles{};
    class Man &#58; Land{};
    class Soldier &#58; Man{};
    class SoldierWB &#58; Soldier{};
    class SoldierWMG&#58; SoldierWB {}

    class KM_Soldier_FNMAG &#58; SoldierWMG
    {
    displayName=&#34;Machinegunner &#40;FN MAG&#41;&#34;;
    weapons&#91;&#93;={&#34;KM_FNMAG&#34;,&#34;Binocul ar&#34;,&#34;Throw&#34;,&#34;Put&#34;};
    magazines&#91;&#93;={ &#34;KM_FNMAGMag&#34;, &#34;KM_FNMAGMag&#34;, &#34;KM_FNMAGMag&#34;, &#34;KM_FNMAGMag&#34;, &#34;KM_FNMAGMag&#34; };
    };
    };
    class CfgGroups
    {
    class KM_Mod
    {
    name=&#34;Korps Mariniers mod&#34;;
    class KMequipment
    {
    name=&#34;NL KMARNS equipment&#34;;
    class KM_FNMAG_Soldier
    {
    name=&#34;Machinegunner &#40;FN MAG&#41;&#34;;
    class Unit0
    {
    side=1;
    vehicle=&#34;KM_Soldier_FNMAG&#34;;
    rank=&#34;Private&#34;;
    position&#91;&#93;={0,2,0};
    };
    };
    };
    };
    };
    [/QUOTE]<span id='postcolor'>

  9. #19
    Chief Warrant Officer Soul_Assassin's Avatar
    Join Date
    May 4 2002
    Posts
    3,182
    Author of the Thread
    I live in Den Haag and the queen is my neighbour on Noordeinde but im not dutch though but lived here for 7 years.

    now about the rotation no matter what I try the speed satys the same hmm im gonna try some more but i promise nothing

  10. #20
    I see that there is an animations called "revolve":

    </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">
    // From Matthijs&#39;s Config.cpp

    revolving=&#34;ammobelt&#34;; // selection to ratate
    revolvingAxis=&#34;ammobelt_ax&#34;; //axis for rotation
    revolvingspeed=0.1; // the speed of the rotation &#40;rotation/x time in secs.&#41;

    [/QUOTE]<span id='postcolor'>

    Correct me if I&#39;m wrong.
    "The quickest way to end a war is to lose it."
    *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***-George Orwell

Page 2 of 3 FirstFirst 123 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •