PDA

View Full Version : Bolt not moving



MehMan
Sep 4 2007, 20:18
I've got this little problem that is fairly crucial for this weapon, seeing how the sights pass right through this.

I can't get the bolt to move on my weapon. I've tried a method or two and I can't seem to get it to work. I've tried looking into RHS weapons to see how they did it and still it doesn't work, heck I even copied it all directly from their config and models, still it doesn't work. What am I doing wrong?

I give the credit to Skaven and RHS for this and I hope they don't see this as ripping them off and not being good at it.

Here's a screenshot from O2:
http://img235.imageshack.us/img235/3488/bolt1jl1.jpg

The first memory point is the axis end and the second one is
the axis begin, the whole thing is the axis.

Then there's just the bolt.

Here's the config(the part that matters):

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class CfgSkeletons
{
class bsa_thom {isDiscrete=0;skeletonInherit=&#34;&#34;;skeletonBones&#91;&#93;={&#34;magazine&#34;, &#34;bolt&#34;, &#34;trigger&#34;};};
};

class CfgModels
{
class Default { sections&#91;&#93; = {}; sectionsInherit=&#34;&#34;; };
class Weapon&#58; Default {};

class bsa_thom&#58;Weapon
{
sections&#91;&#93;=
{
};
skeletonName=&#34;bsa_thom&#34;;
class Animations
{

class bolt
{
type=&#34;translation&#34;;
source=&#34;reload&#34;;
selection=&#34;bolt&#34;;
axis=&#34;bolt_axis&#34;;
begin=&#34;bolt_axis_begin&#34;;
end=&#34;bolt_axis_end&#34;;
minValue=&#34;0&#34;;
maxValue=&#34;1&#34;;
offset0=&#34;0&#34;;
offset1=&#34;1&#34;;
};
};
};

};
[/QUOTE]

Panda[PL]
Sep 4 2007, 20:25
Your skeleton is built wrong.
Each skeleton bone needs a pair of names: first is the selection that is the bone itself, the other one is the "parent", the bone to which this one is attached.
If the bone is attached to model itself (like in this case) second selection name is "", but it still needs to be there.
here&#39;s a rather complicated example from Skaven&#39;s RACS weapons.

http://pastebin.com/f1920568

MehMan
Sep 4 2007, 20:30
Thanks Panda&#33;

Damn it....and I knew this once&#33;

I think I&#39;m getting stupider by the minute.