giorox 1 Posted December 27, 2017 So I'm pretty new to modding and decided to endeavour a bit. I got 3 models and the respective materials and textures for 3 pistols. Now while I got them ingame with textures and shooting and stuff, there are 2 pressing matters: 1. There is no animation when shooting, or when the gun goes dry. 2. The muzzleflash on all pistols is constatly on, instead of flashing when I shoot. Could anyone help me out with this? EDIT: Figured out I was missing the model.cfg, now the muzzle flash works properly although, I keep getting that the hammer rotates on the wrong axis and the slides neither rock back neither do they lock back when the gun is empty and I cant figure it out for the life of me. Model.cfg #define BULLET_HIDE(x,from,count) class Bullet##x\ {\ type="hide";\ source="revolving";\ sourceAddress="mirror";\ selection=bullet##x;\ minValue=-1.000000;\ maxValue= 0.000000;\ hideValue=((count+x-from-2)/count)+0.00001;\ }; class CfgSkeletons { class Default; class Weapon: Default { isDiscrete=1; skeletonInherit="Default"; skeletonBones[]= { "magazine","", "trigger","", }; }; class Pistol: Weapon { skeletonInherit="Weapon"; skeletonBones[]= { "slide","", "hammer","" }; }; }; class CfgModels { class Default; class Optic: Default { sections[]= { "zasleh" }; }; class Weapon: Default { sections[]= { "zasleh" }; skeletonName="Weapon"; class Animations { class zaslehROT { type="rotation"; source="clockMinute"; sourceAddress="loop"; selection="test"; begin="usti hlavne"; end="konec hlavne"; memory=1; minValue=0.0166665; maxValue=0.016666666666666666666666666666667; angle0="rad 0"; angle1="rad 360"; }; class magazine_hide { type="hide"; source="reloadMagazine"; sourceAddress="mirror"; selection="magazine"; minValue=0.0; maxValue=0.4; hideValue=0.5; }; class reload_ammobelt_hide: magazine_hide { selection="ammo_belt"; }; class reload_ammobelt_bottom_hide: magazine_hide { selection="ammo_belt_bottom"; }; class ammobelt_hide: magazine_hide { source="isEmpty"; selection="ammo_belt"; minValue=0.000000; maxValue=1.000000; hideValue=1.000000; }; class ammobelt_bottom_hide: ammobelt_hide { selection="ammo_belt_bottom"; }; }; }; class Pistol: Weapon { skeletonName="Pistol"; class Animations: Animations { class magazine_hide:magazine_hide { sourceAddress="mirror"; minValue=0.0; maxValue=0.56; hideValue=0.36; }; class slide_fire_begin { type="translation"; source="reload"; selection="slide"; axis="slide_axis"; minValue=0.000000; maxValue=0.500000; offset0=0; offset1=-0.200000; }; class slide_fire_end:slide_fire_begin { minValue=0.600000; maxValue=1.000000; offset0=0; offset1=0.200000; }; class hammer_fire_begin { type="rotationX"; source="reload"; selection="hammer"; axis=""; memory=1; minValue=0.000000; maxValue=0.500000; angle0=0.000000; angle1=1.221730; }; class hammer_fire_end:hammer_fire_begin { minValue=0.600000; maxValue=1.000000; angle0=0.000000; angle1=-1.221730; }; class slide_empty { type="translation"; source="isEmpty"; selection="slide"; axis="slide_axis"; minValue=0.990000; maxValue=1.000000; offset0=0; offset1=-0.200000; }; class hammer_empty { type="rotation"; source="isEmpty"; selection="hammer"; axis="hammer_axis"; memory=1; minValue=0.990000; maxValue=1.000000; angle0=0.000000; angle1=1.221730; }; }; }; // PISTOLS START class GIX_M973: Pistol {}; class GIX_M9: Pistol {}; class GIX_G17: Pistol {}; // PISTOLS END }; EDIT2: I also keep getting this error Share this post Link to post Share on other sites
giorox 1 Posted December 27, 2017 Could a mod close this topic? I solved it by using the model.cfg from this topic: Share this post Link to post Share on other sites