HX3 Foren

HX3 Foren (https://hx3.de/)
-   Mods & Addons (https://hx3.de/mods-addons-165/)
-   -   Boltanimation an der Waffe (https://hx3.de/mods-addons-165/boltanimation-waffe-18869/)

Atropin 08.04.2010 14:54

Boltanimation an der Waffe
 
Grüß euch!

Hoffe bin im richtigen Abteil gelandet.

Ich bastle an einer Waffe herum und probiere verschiedene Sachen aus. Ich hab es zusammengebracht dass Magazin beim wechsel verschwindet und dass der Abzug beim feuern animiert ist.

Ich schaffe es aber nicht den Bolzen zu animieren :rolleyes:

Ich hab in O2 4 LODS (1.0, Pilot View, GEometry und Memory)

Hab in 1.0 und PV einen Teil erstellt und "bolt" benannt.
Hab in Memory LOD 2 Punkte erstellt und "bolt_axis" benannt


Hier die config:

Code:

class CfgSkeletons
{
        class Default;
        class Weapon: Default
        {
                skeletonInherit="Default";
                skeletonBones[]=
                {
                        "magazine","",
                        "trigger","",
                        "bolt",""
                };
        };
};
class CfgModels
{
        class Default
        {
                sectionsInherit="";
                sections[]={};
                skeletonName="";
        };
        class Weapon: Default
        {
                sections[]=
                {
                        "zasleh"
                };
                skeletonName="Weapon";
                class Animations
                {
                        class magazine_hide
                        {
                                type="hide";
                                source="reloadMagazine";
                                selection="magazine";
                                minValue=0.2;
                                maxValue=0.25;
                                hideValue=0.1;
                        };
                        class trigger
                        {
                                type="rotationZ";
                                source="reload";
                                selection="trigger";
                                axis="trigger_axis";
                                minValue=0;
                                maxValue=0.0099999998;
                                angle0=0;
                                angle1=0.0099999998;
                        };
                        class bolt
                        {
                                type="translation";
                                source="reload";
                                selection="bolt";
                                axis="bolt_axis";
                                minValue=0;
                                maxValue=1;
                                offset0=0;
                                offset1=1;
                        };
                };
        };
        class ISG_38basic: Weapon
        {
        };
};

Es tat sich nichts :(

Dann hab ich es so versucht:

In Memory LOD "axis_bolt" gelöscht
Dann jedem Punkt einen Namen gegeben: "axis_bolt_begin" "axis_bolt_end"
Dann cfg verändert:

Code:

class bolt
 {
              type="translation";
              source="reload";
              selection="bolt";
              begin="bolt_axis_begin";
              end="bolt_axis_end";
              minValue=0;
              maxValue=1;
              offset0=0;
              offset1=1;
};

Wieder nichts.

Ich weiß nicht was ich falsch mache :( Ob das an der cfg liegt oder am Modell.

Hab mit Suche nix gefunden was mir geholfen hat.

Hoffe auf ein wenig Hilfe.

lg

Christian.1987 08.04.2010 17:11

Ich glaube der Fehler hängt in deiner Model.cfg

Probier es mall so: (Mein "C1987_M16a4" musste halt ersetzen)

Code:

class Animations
  {
  class C1987_M16a4_bolt_action
  {
    type="translationX";
    source="reload";
    selection="bolt";
    axis="";
    memory="false";
    animPeriod=0;
    minValue=0;
    maxValue=0.10;
  };
  class C1987_M16a4_bolt_empty
  {
    type="translationx";
    source="isEmpty";
    selection="bolt";
    axis="";
    memory="false";
    animPeriod=0;
    minValue=0;
    maxValue=0.10;
  };

maxValue=0.10 = das ist max. Bewegungsrichtungsweite. Den wert musste dann halt noch für deine Waffe anpassen.

Atropin 08.04.2010 22:20

Endlich läufts wie ich wollte :D

Danke für dein Tip, hab alles auf translation umgestellt :daumen: , waren aber auch ein paar andere Fehler drin ;)

Hier die funktionierende Version:

Code:

class CfgSkeletons
{
        class Default
        {
                isDiscrete = 1;
                skeletonInherit = "";
                skeletonBones[] = {};
        };
        class ISG_38_skeleton: Default
        {
                skeletonInherit="";
                skeletonBones[]=
                {
                        "magazine","",
                        "trigger","",
                        "bolt",""
                };
        };
};
class CfgModels
{
        class Default
        {
                sectionsInherit="";
                sections[]={};
                skeletonName="";
        };
        class ISG_38basic: Default
        {
                sections[]=
                {
                        "zasleh"
                };
                skeletonName="ISG_38_skeleton";
                class Animations
                {
                        class magazine_hide
                        {
                                type="hide";
                                source="reloadMagazine";
                                selection="magazine";
                                minValue=0.2;
                                maxValue=0.25;
                                hideValue=0.1;
                        };
                        class trigger
                        {
                                type="translationX";
                                source="reload";
                                selection="trigger";
                                axis="";
                                animPeriod=0;
                                memory="false";
                                minValue=0;
                                maxValue=0.016;
                        };
                        class bolt_action
                        {
                                type="translationX";
                                source="reload";
                                selection="bolt";
                                axis="";
                                  memory="false";
                                animPeriod=0;
                                    minValue=0;
                                    maxValue=0.08;

                        };
                        class bolt_empty
                        {
                                type="translationX";
                                source="isempty";
                                selection="bolt";
                                axis="";
                                  memory="false";
                                animPeriod=0;
                                    minValue=0;
                                    maxValue=0.08;
                        };
                };
        };
};



Alle Zeitangaben in WEZ +1. Es ist jetzt 12:51 Uhr.

Angetrieben durch vBulletin, Entwicklung von Philipp Dörner & Tobias


SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119