Weapon Models

Abstract

This article is a guideline for creating weapon model modifications.

Sample Configuration

md3.cfg

md3load tris_high.md3
md3skin weapon skin_weapon.jpg
md3skin hands skin_hands.jpg
md3anim "gun idle" 0 2 2
// "gun shoot" and "gun shoot2" are deprecated!
md3anim "gun reload" 3 17
// do NOT call md3emit on tag_eject or tag_aimpoint; only call on tag_muzzle
md3emit tag_muzzle 10 50 75

Tags

  1. tag_muzzle
    • This is where the muzzle flash goes!
  2. tag_aimpoint
    • The engine translates to this location upon aiming with the sights
  3. tag_eject
    • This is where all the shells come out of

Meshes (surfaces/groups)

md3skin <your part> "skin_<name>.jpg"

Animation

md3anim "*" index length speed
Currently, the following animations are supported for weapons:
  • gun idle
    • one second from non-ads to ADS (make speed equal to length)
    • you can shoot and scope now!
  • gun shoot
    • during the shot, such as a shotgun pump, or idle
    • NO LONGER USED!!!
  • gun shoot2
    • during the shot if sights are used, usually idle in ads
    • NO LONGER USED!!!
  • gun reload
    • self explanatory...

Last edited May 15, 2011 at 9:04 PM by victorz, version 11

Comments

No comments yet.