1st person melee animation problem
by Infinitum3D · in Torque Game Engine · 11/10/2008 (11:24 am) · 4 replies
I've successfully incorporated Josh Moore's Server Side Melee System into TGE1.5.2
however, when I try to use the sword in 1st person view, the animation does not move the sword. The camera moves (the image sways a little like Kork is swinging a sword) and damage occurs, but the displayed sword does not move.
Realm Wars compensated for this by automatically switching to 3rd person perspective when using a sword or an axe, but that's a "hack".
I thought that the only difference between 1st person and 3rd person was camera position, but apparently that is not correct.
Any thoughts?
Tony
however, when I try to use the sword in 1st person view, the animation does not move the sword. The camera moves (the image sways a little like Kork is swinging a sword) and damage occurs, but the displayed sword does not move.
Realm Wars compensated for this by automatically switching to 3rd person perspective when using a sword or an axe, but that's a "hack".
I thought that the only difference between 1st person and 3rd person was camera position, but apparently that is not correct.
Any thoughts?
Tony
#2
Then, in your player.cs, set renderfirstperson to true, so you see Korks body.
This is from memory, but you get the idea.
11/10/2008 (11:30 am)
Hmm.. set the weapon coords of the sword to 0 0 0. This will put the sword in the orcs hand, and move it with the animation, as opposed to offsetting in in your first person view. Then, in your player.cs, set renderfirstperson to true, so you see Korks body.
This is from memory, but you get the idea.
#3
This works in first person mode just fine, you only need to change a couple of script variables.
in sword.cs, delete or comment out this line:
in player.cs, find
and make it
11/10/2008 (11:35 am)
From the original resource:This works in first person mode just fine, you only need to change a couple of script variables.
in sword.cs, delete or comment out this line:
eyeOffset = "0.1 0.4 -0.6";** you can also use 0 0 0 like I said above"
in player.cs, find
renderFirstPerson = false;
and make it
renderFirstPerson = true;
Torque Owner Timothy Castagna
TK Games LLC