Swords?
by Travis Vroman · in General Discussion · 04/01/2003 (5:19 pm) · 9 replies
what would it take to bring swords into TGE? By this, I mean, is it possible to have a weapon such as a sword where it can be swung around and do damage only to enemies it comes in contact with?
-Barzahd
Fireslinger Studios 1998-2003
-Barzahd
Fireslinger Studios 1998-2003
#2
When constructing them, do they require a collision box or anything extra in the shape, or can they just be set up like any other object (shape, start, detail, bounds, etc). This would be under 3DS Max of course.
Thanks :)
04/01/2003 (6:14 pm)
Ah, a question about sword weapons and the type.When constructing them, do they require a collision box or anything extra in the shape, or can they just be set up like any other object (shape, start, detail, bounds, etc). This would be under 3DS Max of course.
Thanks :)
#3
Also, please note that we are updating the code and the animation (DSQs) that are used in RW H2H at this time.
Logan
04/02/2003 (7:02 am)
If you are using the code from Realm Wars to add hand to hand weapons to your game you will need to add two nodes... damageStart and damageEnd. What the code does here is it does a single raycast (line) between these two nodes and anything that intersects is told be damaged.Also, please note that we are updating the code and the animation (DSQs) that are used in RW H2H at this time.
Logan
#4
I'll have that in sometime over the weekend. It should look pretty nice.
Phil.
04/02/2003 (8:57 am)
One advantage to using the start/end nodes (and one of my original considerations) was that it can then emit a motion trail.I'll have that in sometime over the weekend. It should look pretty nice.
Phil.
#5
-Barzahd
04/05/2003 (6:54 pm)
whaere is that code for the swords so I know how to build support for it in? Or is there maybe a documentation file or tutorial on this? Plus, I only have a 56k connection so it will be a while before I can download the new build.-Barzahd
#6
04/07/2003 (3:29 pm)
Travis, if have access to TGE you should have access to the RW CVS as well. The main files that have changed are weapon.cs, player.cc and .h, and shapebase.cc and .h .
#8
I have created a new animation for the swinging of the sword, but I don't know how to get the engine to play the animation when I press a key (LCTRL for instance) Also... I know I'm overdoing it on the questions here, but how can I use the mousewheel to switch weapons? (rolling the mousewheel up or down to switch weapons) And after that, how would I add weapon categories? Meaning for example, look at the weapon structure in Half-Life. it has boxes at the top, representing weapons, and when you scroll with the wheel, it goes through the weapons of one category, then weapons of the next, etc.
Thanks a lot for all your help guys... I couldn't have even gotten this far without the support of this site and it's members.
-Barzahd
04/12/2003 (6:23 pm)
I've TGE... how do I go about getting the CVS for RW... and is there possibly an example weapon/animation that comes with the game that I could use? BTW I can't figure out how to bind a key to a new animation I have. Allow me to explain:I have created a new animation for the swinging of the sword, but I don't know how to get the engine to play the animation when I press a key (LCTRL for instance) Also... I know I'm overdoing it on the questions here, but how can I use the mousewheel to switch weapons? (rolling the mousewheel up or down to switch weapons) And after that, how would I add weapon categories? Meaning for example, look at the weapon structure in Half-Life. it has boxes at the top, representing weapons, and when you scroll with the wheel, it goes through the weapons of one category, then weapons of the next, etc.
Thanks a lot for all your help guys... I couldn't have even gotten this far without the support of this site and it's members.
-Barzahd
Associate Matt Fairfax
PopCap