DTS Sequence Help
by Steve Tungate · in Artist Corner · 02/03/2007 (7:56 am) · 2 replies
Ok, I want to animate objects in 3d max with differnet sequences and have the sequences called from torque by either a series of keybinds or some other way if possible. I have been using the darkstar for years (grand father of torque) and this is how i am used to doing it. I do believe that Torque has some sequences imbedded in the main executable because you can put down a "jump" sequences and then with the curve editor add keys and the herc will jump. But I do not know the names to add the other movments. Basically what i'm saying is I need to know what the sequence names are for torque. Like in Starsiege there are sequences for each function like seq01_walk, seq02_run, and so forth. What are the ones that will work with toruqe. I already know a jump sequence will work. Thank you...
Steve T
Steve T
About the author
#2
02/04/2007 (9:14 am)
Thanks alot Logan. I'm going to copy your post over to our site. www.ssmods.com. So the other guys can find it. Thanks again.
Associate Logan Foster
perPixel Studios
To make a sequence work in the engine on your shape you need to edit the following files:
- player.cs in the shapes directory. Add all of the sequence names, file names and keep everything in a linear order without any gaps in the numbering. Look at the sample one used for the orc as example (ie. sequence8 = "./player_jump.dsq jump";).
- player.cs in the server/scripts directory (aka server side). This provides all of the datablocks and script code needed by the C++ player data to make the character work in the game. You will see an exec call to the player.cs in the shapes diretory, and some functions near the bottom (ie. function player::playDeathAnimation). These functions are what tells the engine to use a particular animation and as you will see some of these require player input.
- default.binds.cs for the actual controls for what button will call what function.
You can do a lot more to control animations throughout the engine, but thats the basics of it. Hope it helps.