Archived

This topic is now archived and is closed to further replies.

sixb0nes

.md3 weapons in q3

Recommended Posts

sixb0nes    122
Hello - This question is regarding .md3 weapon models in Quake3. Just curious if the weapon model used in the 3rd person (.. how you see other players in say, a LAN match) is the same model used in the 1st person. If so, does anyone know the rotation & transforms that need to be done to get it where it should be on the screen (without a ton of fiddling). I thought of Aftershock, but I don''t know if they render weapons at all in their code. Cheers guys, thanks! sixb0nes http://www.xpression.ca

Share this post


Link to post
Share on other sites
Guest Anonymous Poster   
Guest Anonymous Poster
The same weapon model is used as a pickup, third person view and first person view;

(attached as in the way heads/torso/bodies etc attach by tags in quake 3)

As a pickup, it''s not attached to anything

For the third person it''s attached to the torso''s, uh, ''hand'' tag (can''t remember the actaul name, but that''s hardly the point)

For the first person view, there''s another model file (it''s like, weaponname_hand.md3 or something like that) which has a ''hand'' tag that you attach the weapon to. just render the _hand.md3 at your origin* with the weapon model attached (the _hand.md3 or whatever also has the weapon firing/switching animations)

*like,
glPushMatrix();
glLoadIdentity();
Render the _hand.md3 with the weapon attached
glPopMatrix();


hope that helps

Share this post


Link to post
Share on other sites
sixb0nes    122
Teehee!

They made it extremely easy for us.

Kept wondering why there was a ''seemingly'' blank .md3, and what it''s use was for! Thanks tenfold for your help.

Regards,

sixb0nes
http://www.xpression.ca

Share this post


Link to post
Share on other sites