Jump to content

Animation state machine in default T3D game code?


Recommended Posts

What are the main scripts that handle character animation in the default T3D game code? I'm planning to replace the default soldier with custom rig and animations made by me, but i find it hard to locate exactly where the game controls which, when and how the animations are played. The same applied for the first-person weapon models.

Link to comment
Share on other sites

It's definitely going to perform better when doing the vector math to figure out the most correct animation to play if it's in the engine. But the list itself could and probably should be in script so-as to not be hardcoded.

buckmaster actually had an old TGE resource that did that, here:


Which you can try to port up to T3D if you want for the short-term.

Going forward though, I think that one way or another, the animation list itself will be decoupled and un-hardcoded.

Link to comment
Share on other sites

I could have sworn I ported it to T3D at some point, but that part of the engine hasn't changed a ton so the changes shouldn't be that difficult. The reason for it being in C++ is simply that Torque was the engine for Tribes, and this was all they needed. This is why Torque has a reputation for being FPS-focused.

I'm finding it hard to muster the can-be-bothered to do a sensible rewrite/breakdown/refactor of the Player class given that Jeff's ECS is on the horizon, and set to sweep away these kinds of issues.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...