> Can anyone go into how these work exactly, and how they work with the
> models. i.e Does gaitsequence control the leg animations only? If so

Not 'exactly', but you have the correct idea, pev->sequence is the
upper torso (shoot/hold weapon, etc), and pev->gaitsequence is the
legs. I found the code in player.cpp (setanimation() function I
believe) to be easy enough to modify for our needs.

how
> does the engine know which are the leg animations and which are the
torso
> animations?

Just a sort of guess, but it probably plays the sequence animation from
the pelvis bone (bip_01 I think is the name) 'up', and the pev-
>gaitsequence from there down, blending the two.

For example, if the player is holding a shotgun (pev->sequence is set
to 'ref_aim_shotgun'), and running (pev->gaitsequence is set to 'run'),
then the upper torso does whatever animation (if any) is in that
sequence, and all bones lower down are acted on by the run sequence.

How it actually works isn't required to successfully use the interface,
so I have yet to trace through any implementation details that we have
available, if any :).

>
> thanks,
>
> Rob.
>
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list
archives, please visit:
> http://list.valvesoftware.com/mailman/listinfo/hlcoders
>
>


_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to