Search the Community
Showing results for tags 'bolt'.
Found 1 result
-
Muzzleflash and animated parts aren't working
penguin1018 posted a topic in ARMA 3 - ADDONS - CONFIGS & SCRIPTING
The other day I threw together a very simple gun just to try and learn how to get it into Arma 3. The model appears correctly and it functions but the muzzle flash is simply frozen (http://i.imgur.com/ZNjJVSY.jpg) and the bolt doesn't move. I followed Zachs tutorial on making weapons, and I based my model.cfg on the one he included. In Object Builder, I added a proxy with \A3\Data_f\proxies\muzzle_flash\muzzle_flash_rifle_Mk20 and a selection of the proxy called zasleh (http://i.imgur.com/0hzTG8n.png). For the muzzleflash (Zachs guide didn't include one) I copied the relevant lines from the Arma Tools example weapon. In the config.cpp, there is selectionFireAnim = "zasleh"; I'm sure I did something wrong, but I just can't see what. I've included the entire model.cfg hoping someone can spot the issue. class CfgSkeletons { class Default { isDiscrete=0; skeletonInherit=""; skeletonBones[]={}; }; class tb_arifle_m16a4_base: Default { skeletonBones[]= { "magazine", "", "bolt", "", "zasleh", "" }; }; }; class CfgModels { class Default { sectionsInherit=""; sections[]={}; skeletonName=""; }; class tb_arifle_m16a4_base: Default { sections[]= { "magazine", "zasleh", "bolt" }; skeletonName="tb_arifle_m16a4_base"; class Animations { }; }; class Test_weapon_01_F: tb_arifle_m16a4_base { class Animations { class zaslehROT { type="rotation"; source="clockMinute"; sourceAddress="loop"; selection="zasleh"; begin="usti hlavne"; end="konec hlavne"; memory=1; minValue=0.0166665; maxValue=0.016666666666666666666666666666667; angle0="rad 0"; angle1="rad 360"; }; //ALSO TRY THIS class muzzleFlashROT //{ // type="rotationX"; // source="ammoRandom"; //use ammo count as phase for animation // sourceAddress="loop"; //loop when phase out of bounds // selection="muzzleFlash"; //selection we want to rotate // axis=""; //no own axis - center of rotation is computed from selection // centerFirstVertex=true; //use first vertex of selection as center of rotation // minValue=0; // maxValue=4; //rotation angle will be 360/4 = 90 degrees // angle0="rad 0"; // angle1="rad 360"; //}; class magazine_reload_move_1 { type="translation"; source="reloadMagazine"; selection="magazine"; axis="magazine_axis"; minValue=0.145; maxValue=0.2; offset0=0; offset1=0.40000001; }; class magazine_hide { type="hide"; source="reloadMagazine"; selection="magazine"; minValue= 0; maxValue=1; minPhase= 0; maxPhase=1; hideValue=1; sourceAddress="mirror"; }; class bolt_empty { type="translation"; source="isempty"; selection="bolt"; memory=1; sourceAddress="clamp"; minValue=0; maxValue=1; begin="bolt_start"; end="bolt_end"; offset0=0; offset1=1; }; class bolt_empty_1 { type="translation"; source="reloadMagazine"; selection="bolt"; memory=1; sourceAddress="clamp"; minValue=0; maxValue=1; begin="bolt_start"; end="bolt_end"; offset0=0; offset1=1; }; { type="translation"; source="reload"; selection="bolt"; axis="bolt_axis"; memory=1; minValue=0.000000; maxValue=0.300000; offset0=0; offset1=0.5; }; class bolt_fire_end:bolt_fire_begin { minValue=0.500000; maxValue=1.000000; offset0=0; offset1=-0.5; }; class bolt_reload_begin { type="translation"; source="reloadMagazine"; selection="bolt"; axis="bolt_axis"; memory=1; minValue=0.1; maxValue=0.15; offset0=0; offset1=0.5; }; class bolt_reload_end:bolt_reload_begin { minValue=0.980000; maxValue=1.000000; offset0=0; offset1=-0.5; }; }; }; };- 6 replies
-
- muzzle flash
- muzzlefash
-
(and 2 more)
Tagged with: