Game Development Community

Animations for melee and dual weapons?

by Kirchgessner · in Torque Game Engine · 12/14/2005 (10:29 am) · 7 replies

Ok, i'm not very good at messing with the torque engine scripts, but i was wondering...

Could someone help me to figure out how to have both melee animations, plus dual weilding animations for both gun type weapons and sword like weapons. Plus have numerous animations for swords.

Basically this is what i want to do... If i have two weapons weilded in my game then i want a melee attack for both weapons, and the same for single weapons. Then also i want the engine to recognize wether or not the player has 1 or 2 pistols, a rifle, or a sword then when the engine determines that...it changes the player.cs (the one thats in the model folder that lines up sequences) to the appropriate look animations, holding animations, etc., etc.

Hopefully i didn't lose anybody.

I know that i want an option variable that says something like weapontype = dual or single or melee (1 or 2 pistols, rifle, sword) this variable will be located in the player datablock.

I know alot of people could use this if it was put up for a resource.
So your help would be greatly appreciated.

#1
12/14/2005 (11:04 am)
There is a code block for duel weilding, I haven't played with it but it does exists.
#2
12/14/2005 (11:09 am)
I know about the code block i haven't tried it either but i was just wanting to put it all together with multiple animations of each of the three sets. Including the engine determing (or a script) what holding anim, look anims, and other animations to use.

if that makes it any more clearer
#3
12/14/2005 (11:19 am)
Thanks for the post by the way
#4
12/14/2005 (12:12 pm)
I have another question that will clear some stuff up for me. Is there some sort of mount animation for weapons, similar to the mount sequences used to sit in a vehicle but for the arms of a player. this includes the look animations as well.
#5
12/14/2005 (12:20 pm)
I got my question answered when i looked at another Thread...

%obj.setActionThread("example")

am i correct?
this is how you could incorporatemultiple look animations holding animations and stuff like that.
Ok...now all i have to do is try and incorporate it.... Ya thats gonna be fun.

Once i get tis working im going to post it on the resources page. Hopefully
#6
12/14/2005 (1:37 pm)
I'm going to write a new plan and put this stuff in there... cause no one seems to be helping with this. Yet anyway



------To the message Below-------
Ya sorry i figured that out ten mnutes after i posted this.
#7
12/14/2005 (2:38 pm)
Tip: There's an edit button on your posts. Rather than make a new post and bumping the thread up in the list a lot, it's generally better to condense your findings into an edited post. Also it takes more than a few hours to get a reply. The entire community usually isn't on the computer 24/7. ;)