Author Topic: What are _hand.md3 files for?  (Read 11611 times)

commander scrooge

  • Posts: 187
  • Turrets: +1/-9
What are _hand.md3 files for?
« on: May 31, 2012, 05:37:09 pm »
I have decided to work with a friend to try and put what knowledge we have of coding and modeling to use.  I have begun working on exporting models to md3, then putting them into the game.  While looking at other weapons in attempt to learn what is necessary, I have noticed that there are "_hand.md3" files (E.G. rifle_hand.md3).  What do these do?  How do I create one for my model?
Pathbot every thing you need here

ULTRA Random ViruS

  • Posts: 924
  • Turrets: +4/-101
    • ZdrytchX's reference website
Re: What are _hand.md3 files for?
« Reply #1 on: June 04, 2012, 01:51:29 pm »
My guess is it probably tells the client which human animation/pose to use, the 'pistol' or the 'rifle' pose.
My guess also says that is wrong because they are md3 files and they are models. If your program has the ability to revert exports to md3, try so.

commander scrooge

  • Posts: 187
  • Turrets: +1/-9
Re: What are _hand.md3 files for?
« Reply #2 on: June 04, 2012, 07:55:11 pm »
I can only export.
Pathbot every thing you need here

/dev/humancontroller

  • Posts: 1033
  • Turrets: +1002/-383
Re: What are _hand.md3 files for?
« Reply #3 on: June 05, 2012, 04:39:31 am »
it probably tells the client which human animation/pose to use, the 'pistol' or the 'rifle' pose.
WRONG.
I have noticed that there are "_hand.md3" files (E.G. rifle_hand.md3).  What do these do?
*weapon*_hand.md3 files contain the tag_weapon, tag_flash, and tag_barrel MD3 tags, which tell the game how to position the *weapon*.md3 models in the player's view, when the player is holding some weapon. for example, swap the rifle_hand.md3 and shotgun_hand.md3 files, and notice that the rifle/shotgun view models are drawn at different places.

ULTRA Random ViruS

  • Posts: 924
  • Turrets: +4/-101
    • ZdrytchX's reference website
Re: What are _hand.md3 files for?
« Reply #4 on: June 05, 2012, 02:28:22 pm »
WRONG.
Bahaha i did that to lure your common 'Wrong' answer. You can be predictable.

commander scrooge

  • Posts: 187
  • Turrets: +1/-9
Re: What are _hand.md3 files for?
« Reply #5 on: June 05, 2012, 02:49:06 pm »
it probably tells the client which human animation/pose to use, the 'pistol' or the 'rifle' pose.
WRONG.
I have noticed that there are "_hand.md3" files (E.G. rifle_hand.md3).  What do these do?
*weapon*_hand.md3 files contain the tag_weapon, tag_flash, and tag_barrel MD3 tags, which tell the game how to position the *weapon*.md3 models in the player's view, when the player is holding some weapon. for example, swap the rifle_hand.md3 and shotgun_hand.md3 files, and notice that the rifle/shotgun view models are drawn at different places.

Ah thanks!  Do you have a visible example of these?  As I'm not sure what tag_wapon, tag_flash, and tag_barrel are.
Pathbot every thing you need here

/dev/humancontroller

  • Posts: 1033
  • Turrets: +1002/-383
Re: What are _hand.md3 files for?
« Reply #6 on: June 05, 2012, 06:07:06 pm »
*weapon*_hand.md3 files contain the tag_weapon, tag_flash, and tag_barrel MD3 tags, which tell the game how to position the *weapon*.md3 models in the player's view, when the player is holding some weapon. for example, swap the rifle_hand.md3 and shotgun_hand.md3 files, and notice that the rifle/shotgun view models are drawn at different places.

Ah thanks!  Do you have a visible example of these?  As I'm not sure what tag_wapon, tag_flash, and tag_barrel are.
an MD3 tag associates a name with a position (relative to a model's origin), or even an animation of positions. find some information on how to place MD3 tags in MD3 models (i have never used a modeling program before). in a *weapon*_hand.md3 file, a tag with the name of tag_weapon should exist, and the game will place the view model at the position specified by the tag (relative to your camera). similarly, the game uses tag_flash to position the firing flash effect, and uses tag_barrel to position the weapon's spinning barrel (currently, the chaingun has one).

commander scrooge

  • Posts: 187
  • Turrets: +1/-9
Re: What are _hand.md3 files for?
« Reply #7 on: June 05, 2012, 07:30:21 pm »
Thanks for the information, it has been very helpful.   :D
Pathbot every thing you need here