Search the Community
Showing results for tags 'reloadmagazine'.
Found 1 result
-
Yesterday I finally sat down and tried to import a weapon into A3 (I'm still fairly new at VBS). Today I've got the majority of it working fine, however I'm stuck on one part — getting the magazine removal/inserting working correctly. On A3's pistols the animation is smooth and precise; which I am unable to replicate (and the variables in use confuse me). More generally: I'm importing this model (image, webGL view) into arma. This (gfycat) is where I am at currently. Note that the magazine extracts partially, but no new magazine appears to be inserted. This is the relevant code from the model.cfg: class magazine_reload_move_1 { type = "translation"; source = "reloadMagazine"; selection = "magazine"; axis = "magazine_axis"; minValue = 0.01; maxValue = 0.1;//0.1 works offset0 = 0.0; offset1 = 0.55;//0.5 works }; class magazine_reload_move_2: magazine_reload_move_1 { minValue = 0.57; maxValue = 0.62; offset0 = 0.0; offset1 = -0.5; }; (which was appropriated from the arma 3 weapon sample). So the first section (move_1) is causing difficulties. The minValue, maxValue and offset1 lines are hard to understand. Currently I've been playing with their values one by one to try and get to where I am now. Ideally the animation would extract the magazine further before it despawns, but if I increase the offset1 value, (which does that), when the magazine is inserted at the end of the anim, it "jumps" downwards out of the gun / through your hand. I've yet to get the magazine to appear when inserting either; which I assume has to do with the move_2 section. So.. how do you get the correct values for this? How do minValue, maxValue and offset work together to change the location of the magazine during the anim? Am I meant to keep "guessing" until it looks right? Or is there some tool to do this? (Or would it relate to the magazine's height or something?) Any insight would be appreciated. If I can config this properly I might release it as a sample asset for the community (one of the frustrations I've had with vbs so far is the lack of documentation, samples and quality tutorials). It's also a shame that there's no "safe" mode in arma by default as I would've liked to have had the safety work, but oh well.
- 6 replies
-
- model.cfg
- reloadmagazine
-
(and 3 more)
Tagged with: