Non-projectile type weapon
by Charlie Higdon · in Technical Issues · 03/22/2008 (7:26 pm) · 3 replies
I gathered enough information to modify the crossbow enough to add other weapons like shotguns and such.
I'm stumped as to go about adding something like a dagger, fists, or some humiliation type of biting attack.
I figure for the dagger, build a model dagger, put it in the hand of the player or ai, make sure the model has a stabbing or whatever animation, same with a bite or a punch/kick, just no weapon model needed.
The model and animation I can take care of, but I don't know how to go about the coding of a non projectile type weapon. I know nothing about C++, and the only Torque script I'm familiar with is what I've went through in the 3-d All in one books.
I'm stumped as to go about adding something like a dagger, fists, or some humiliation type of biting attack.
I figure for the dagger, build a model dagger, put it in the hand of the player or ai, make sure the model has a stabbing or whatever animation, same with a bite or a punch/kick, just no weapon model needed.
The model and animation I can take care of, but I don't know how to go about the coding of a non projectile type weapon. I know nothing about C++, and the only Torque script I'm familiar with is what I've went through in the 3-d All in one books.
About the author
#2
Ah well, reckon I'll just try and do a melee animation with a close range invisible projectile type weapon or something. Maybe that'll work.
Thanks for the reply, much appreciated.
03/22/2008 (10:33 pm)
=(Ah well, reckon I'll just try and do a melee animation with a close range invisible projectile type weapon or something. Maybe that'll work.
Thanks for the reply, much appreciated.
#3
03/22/2008 (10:59 pm)
You could always make a ray cast when you attack. Then whatever the ray cast hits will take damage. Its not extremely hard to do, but it's not easy. If you're still confused, do what Jacobin said, search for resources because there are many out there. Type in melee attack, you should get a bunch of resources.
Torque Owner Jacobin
It's going to be rather difficult then. Melee has been discussed often on the forums, including a few resources available. Most of the implementations require engine changes. Search is your friend.