Game Development Community

Melee: No Engine Editing

by Musashi · in Torque Game Engine · 07/11/2009 (5:42 am) · 3 replies

Hello all, I've not been on here in a long while, but I've decided to give Torque another go. I've got TGE 1.4.2 (I see no upgrade options to 1.5 anymore, has that gone now?) and the one thing I could never figure out was getting a Melee system to work. The Server Side and Simple Melee system have never worked for me and for some reason I've never worked out why. I am not hot on C++ and don't possess the knowledge to make any successful changes to the engine in C++.

So I am wondering if anybody know how I would have Melee scripted player, without engine change. It does need to be too accurate, but something that'll play an animation with a sword mounted and do damage to the enemy. Because I've not used TGE for a long time, I am perhaps a newb again.


Thank you.

#1
07/14/2009 (5:48 am)
What if you were to make your sword or whatever like a gun, but the projectile that shoots out is invisible and only travels about 5 feet or so before disappearing by playing with the projectile lifetime and velocity? And you could still play your swinging animation.

I don't know if that will work or not, it sounds like it should, but perhaps someone that knows more will come along and offer their suggestion.
#2
07/16/2009 (12:58 am)
I'll give it a shot and see if it works, cheers.
#3
07/21/2009 (8:38 pm)
Another simple method is to use the player's eye vector to perform a RayCast. And if the raycast makes contact with another player object then perform damage upon that player's handle that was gathered in the initial raycast pass.