Dual Weapon Problem
by Jacob Wood · in Torque Game Engine · 01/13/2007 (8:19 pm) · 5 replies
I'm starting to understand how the C++ code in the engine works (emphasis on "starting").
The game a team of developers and I are making requires a melee system. We already have the one that was posted here on garagegames implemented and it works great. However, we've run into a bit of confusion.
How would one make it so that a character can hold two of the same type of weapon (one in each hand)? For example, two swords.
The way torque handles the melee system with even one weapon is still beyond me so I can't even find a starting point for figuring out how to make two weapons work.
Any help whatsoever is welcome.
The game a team of developers and I are making requires a melee system. We already have the one that was posted here on garagegames implemented and it works great. However, we've run into a bit of confusion.
How would one make it so that a character can hold two of the same type of weapon (one in each hand)? For example, two swords.
The way torque handles the melee system with even one weapon is still beyond me so I can't even find a starting point for figuring out how to make two weapons work.
Any help whatsoever is welcome.
#2
http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=8821
http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=7581
01/14/2007 (8:47 am)
Actually yes there is a resource for dual weapons but its for guns. But i think it could easily be modified:http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=8821
http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=7581
#3
Thanks for the replies!
01/15/2007 (7:34 am)
Excellent resources, but all of which I've already read. Perhaps I'm overlooking some details though. I'll go ahead and review them and see if I can't get something to work.Thanks for the replies!
#4
Of course I know nothing about any of this so its just my guess. ;)
01/16/2007 (5:49 am)
I would hate to overload the forums with simplicity, but if your using the Server Side Melee System, I think it would be as easy as mounting a weapon in the other hand and attacking.Of course I know nothing about any of this so its just my guess. ;)
#5
For Melee, it should be as easy as creating a mount in the other hand, and then mounting the second sword in game.
Of course for the melee to work (using server side melee) you would need to create some new animations with both weapons swinging. You might also have to modify the timing in the scripts for server side melee.
01/16/2007 (6:12 am)
I would agree with you Caleb. For Melee, it should be as easy as creating a mount in the other hand, and then mounting the second sword in game.
Of course for the melee to work (using server side melee) you would need to create some new animations with both weapons swinging. You might also have to modify the timing in the scripts for server side melee.
Torque Owner Brian Hill
http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=5377
or
http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=7583
Neither of them handle dual weapons, however, so at the least you'd have to modify these to handle them, and add the appropriate 'off hand' animations.