Game Development Community

FPS Trouble

by Tyler Boland · in General Discussion · 07/13/2006 (7:31 pm) · 10 replies

I making FPS and just finished a new gun but how do i get my player to hold it it always apears in front of the player but the gun is facing upward( and for some resone its texture won't show.)

I wanted to get a book to learn more using torque but the reviews on the beginners book was bad.(buggy code). and i don'twant to pay $50 for a book.

#1
07/13/2006 (7:54 pm)
All i can tell you is the reason the texture doesnt show is that either the image is not .bmp, .png, or .jpeg, or (IMPORTANT) is 256x256 or a power of two. I had the same problem and the reason that it didnt work was the size. You dont have to remap or anything, the .dts conforms to the new size on its own. good luck.
#2
07/14/2006 (5:23 am)
The reason the gun is upward is you probably rotated the mountPoint in the gun, or mount0 or whatever mount you are using is rotated accidently when you modeled the player. Have you tried to see if every weapon youve made faces up with other weapons?
#3
07/14/2006 (8:46 am)
How do add mount points? I'm using Milkshape for my modeler
#4
07/14/2006 (8:50 am)
Just use a joint and name it accordingly.

The most important ones you'll need to worry about are;

mountpoint - where the gun is mounted to the corresponding mountpoint on the player's hand

ejectpoint - where shells are ejected

muzzlepoint - where projectiles are fired from
#5
07/14/2006 (9:55 am)
Important: When you make the joints they shouldnt be connected by bones. they should all be freestanding.
#6
07/14/2006 (10:04 am)
Do i need joints on the gun too?
#7
07/14/2006 (10:13 am)
That's the only place you need the joints listed above. Don't use those joints on the player, player setup is diffferent than weapon setup.
#8
07/14/2006 (10:14 am)
Yes, Look at what Tim said you will need them three.
#9
07/14/2006 (10:26 am)
For the player name a joint mount0 attached to the player's hand and your gun's mountPoint will mount there. that should have you covered.
#10
07/14/2006 (2:58 pm)
Thanks