
$modelname "weapons\v_hammer.mdl"

$bodygroup "studio"
{
	studio "v_hammer_hammer_ref.smd"
}
$bodygroup "studio"
{
	studio "v_hammer_v_melee_shared_ref.smd"
}


$surfaceprop "default"

$contents "solid"

$illumposition 1.708 -4.27 -3.617

$cdmaterials "models\weapons\v_models\melee\"

$cbox 0 0 0 0 0 0

$bbox -10.35 -7.135 -11.021 18.891 10.55 3.787

$definebone "hammer_ref1" "" 0 0 0 0 0 0 0 0 0 0 0 0
$definebone "v_melee_root" "hammer_ref1" 0 0 0 0 0 0 0 0 0 0 0 0
$definebone "Mesh" "v_melee_root" 0 0 0 0 0 89.999983 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Clavicle" "" -0.534759 10.349899 -5.830542 2.430408 -158.599863 155.957139 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_UpperArm" "v_weapon.Bip01_R_Clavicle" 5.773742 0 0.000001 -55.176867 -75.829936 64.035995 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Forearm" "v_weapon.Bip01_R_UpperArm" 11.57688 -0.000014 -0.000006 -0.000002 -88.411855 -0.000002 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Hand" "v_weapon.Bip01_R_Forearm" 10.295587 0.000013 0.000003 -47.31256 10.641427 102.242653 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger0" "v_weapon.Bip01_R_Hand" 1.23117 0.348997 1.249108 -23.824154 32.157651 -102.715288 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger01" "v_weapon.Bip01_R_Finger0" 1.611107 0 0 -0.014263 21.989432 3.789941 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger02" "v_weapon.Bip01_R_Finger01" 1.188945 0.000001 0 2.483832 34.4606 0.255767 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger1" "v_weapon.Bip01_R_Hand" 4.0686 0.143193 0.892417 6.078906 63.625473 9.179527 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger11" "v_weapon.Bip01_R_Finger1" 1.433461 0.000001 0.000002 -4.169179 83.832547 1.367933 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger12" "v_weapon.Bip01_R_Finger11" 1.019162 -0.000001 -0.000001 -1.147227 68.692019 2.580605 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger2" "v_weapon.Bip01_R_Hand" 3.939288 0.020626 -0.014986 5.557287 66.618544 12.195634 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger21" "v_weapon.Bip01_R_Finger2" 1.691288 0.000001 -0.000001 -7.97408 87.409818 1.621754 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger22" "v_weapon.Bip01_R_Finger21" 1.039843 0.000001 0 -0.028931 60.164398 -2.549319 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger3" "v_weapon.Bip01_R_Hand" 3.582013 0.056833 -0.735419 9.677428 65.213595 21.906123 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger31" "v_weapon.Bip01_R_Finger3" 1.583913 0.000002 0.000003 -1.616421 90.482474 11.917344 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger32" "v_weapon.Bip01_R_Finger31" 1.006699 -0.000001 0.000001 7.803749 65.021831 1.209981 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger4" "v_weapon.Bip01_R_Hand" 3.126527 0.227893 -1.440076 14.023025 52.3755 23.12114 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger41" "v_weapon.Bip01_R_Finger4" 1.246395 0.000001 0 -2.379142 96.31896 2.460505 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger42" "v_weapon.Bip01_R_Finger41" 0.682892 0.000002 -0.000002 1.515422 62.254327 -2.353417 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_ForeTwist" "v_weapon.Bip01_R_UpperArm" 11.57688 -0.000014 -0.000006 0 -88.4118 7.821502 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Clavicle" "" 1.764202 9.567228 -5.775309 7.274043 -49.962093 28.221493 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_UpperArm" "v_weapon.Bip01_L_Clavicle" 5.773742 -0.000001 0 33.334861 -13.25171 -48.441003 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Forearm" "v_weapon.Bip01_L_UpperArm" 11.576881 -0.00001 0.000006 -0.000004 -53.93143 -0.000003 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Hand" "v_weapon.Bip01_L_Forearm" 10.295588 0.000004 -0.000005 14.806838 19.923807 -66.668459 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger0" "v_weapon.Bip01_L_Hand" 1.231167 0.348997 -1.249106 52.358144 17.674552 72.602808 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger01" "v_weapon.Bip01_L_Finger0" 1.611106 0.000002 0.000001 5.452673 3.911874 4.101688 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger02" "v_weapon.Bip01_L_Finger01" 1.188945 0.000002 0.000002 -5.173859 21.555483 -0.338962 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger1" "v_weapon.Bip01_L_Hand" 4.290794 0.112069 -0.897967 2.282948 68.791665 0.917476 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger11" "v_weapon.Bip01_L_Finger1" 1.433459 0 0 2.474833 53.245775 -4.346405 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger12" "v_weapon.Bip01_L_Finger11" 1.019162 0 0.000001 -3.079301 48.420782 1.278325 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger2" "v_weapon.Bip01_L_Hand" 4.264513 0.00403 0.013411 8.69171 93.130573 -13.930557 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger21" "v_weapon.Bip01_L_Finger2" 1.691285 0.000004 -0.000001 -2.90988 45.570418 0.873753 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger22" "v_weapon.Bip01_L_Finger21" 1.039842 0 -0.000001 -0.349439 52.614037 -0.009856 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger3" "v_weapon.Bip01_L_Hand" 3.582012 0.056832 0.735421 8.661912 82.663315 -15.61849 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger31" "v_weapon.Bip01_L_Finger3" 1.583911 -0.000004 -0.000002 0.536919 64.773731 -2.411702 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger32" "v_weapon.Bip01_L_Finger31" 1.006702 0.000002 0.000001 -1.040426 80.005094 -0.894102 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger4" "v_weapon.Bip01_L_Hand" 3.12653 0.227893 1.440079 7.587732 64.906605 -23.103895 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger41" "v_weapon.Bip01_L_Finger4" 1.246392 -0.000004 -0.000003 -2.004199 77.120514 -5.372979 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger42" "v_weapon.Bip01_L_Finger41" 0.682894 -0.000002 0 0.115115 94.216901 -0.959298 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_ForeTwist" "v_weapon.Bip01_L_UpperArm" 11.576881 -0.000009 0.000005 -0.000006 -53.931372 -48.245974 0 0 0 0 0 0
$definebone "cam_driver" "" 0 0 0 0 -90.000003 0 0 0 0 0 0 0

$bonemerge "v_weapon.Bip01_R_Clavicle"
$bonemerge "v_weapon.Bip01_R_UpperArm"
$bonemerge "v_weapon.Bip01_R_Forearm"
$bonemerge "v_weapon.Bip01_R_Hand"
$bonemerge "v_weapon.Bip01_R_Finger0"
$bonemerge "v_weapon.Bip01_R_Finger01"
$bonemerge "v_weapon.Bip01_R_Finger02"
$bonemerge "v_weapon.Bip01_R_Finger1"
$bonemerge "v_weapon.Bip01_R_Finger11"
$bonemerge "v_weapon.Bip01_R_Finger12"
$bonemerge "v_weapon.Bip01_R_Finger2"
$bonemerge "v_weapon.Bip01_R_Finger21"
$bonemerge "v_weapon.Bip01_R_Finger22"
$bonemerge "v_weapon.Bip01_R_Finger3"
$bonemerge "v_weapon.Bip01_R_Finger31"
$bonemerge "v_weapon.Bip01_R_Finger32"
$bonemerge "v_weapon.Bip01_R_Finger4"
$bonemerge "v_weapon.Bip01_R_Finger41"
$bonemerge "v_weapon.Bip01_R_Finger42"
$bonemerge "v_weapon.Bip01_R_ForeTwist"
$bonemerge "v_weapon.Bip01_L_Clavicle"
$bonemerge "v_weapon.Bip01_L_UpperArm"
$bonemerge "v_weapon.Bip01_L_Forearm"
$bonemerge "v_weapon.Bip01_L_Hand"
$bonemerge "v_weapon.Bip01_L_Finger0"
$bonemerge "v_weapon.Bip01_L_Finger01"
$bonemerge "v_weapon.Bip01_L_Finger02"
$bonemerge "v_weapon.Bip01_L_Finger1"
$bonemerge "v_weapon.Bip01_L_Finger11"
$bonemerge "v_weapon.Bip01_L_Finger12"
$bonemerge "v_weapon.Bip01_L_Finger2"
$bonemerge "v_weapon.Bip01_L_Finger21"
$bonemerge "v_weapon.Bip01_L_Finger22"
$bonemerge "v_weapon.Bip01_L_Finger3"
$bonemerge "v_weapon.Bip01_L_Finger31"
$bonemerge "v_weapon.Bip01_L_Finger32"
$bonemerge "v_weapon.Bip01_L_Finger4"
$bonemerge "v_weapon.Bip01_L_Finger41"
$bonemerge "v_weapon.Bip01_L_Finger42"
$bonemerge "v_weapon.Bip01_L_ForeTwist"
$bonemerge "cam_driver"


// The 32 below is a guess until further is known about the format.
$animblocksize 32 nostall

$bonesaveframe "hammer_ref1" position
$bonesaveframe "v_melee_root" position
$bonesaveframe "v_weapon.Bip01_R_Clavicle" position
$bonesaveframe "v_weapon.Bip01_L_Clavicle" position
$bonesaveframe "cam_driver" position

$sequence "idle" {
	"v_hammer_anims\idle.smd"
	activity "ACT_VM_IDLE" -1
	fadein 0.2
	fadeout 0.2
	fps 30
	loop
}

$sequence "deploy" {
	"v_hammer_anims\deploy.smd"
	activity "ACT_VM_DRAW" -1
	{ event 5004 0 "HEGrenade.Draw" }
	fadein 0.2
	fadeout 0.2
	snap
	fps 30
}

$sequence "swing_hitcenter" {
	"v_hammer_anims\swing_hitcenter.smd"
	activity "ACT_VM_HITCENTER" -1
	fadein 0.05
	fadeout 0.2
	snap
	fps 25
}

$sequence "swing_misscenter" {
	"v_hammer_anims\swing_misscenter.smd"
	activity "ACT_VM_MISSCENTER" -1
	fadein 0.05
	fadeout 0.2
	snap
	fps 25
}

$sequence "swing_throw" {
	"v_hammer_anims\swing_throw.smd"
	activity "ACT_VM_RELEASE" -1
	fadein 0.05
	fadeout 0.2
	snap
	fps 25
}

$sequence "swing_build" {
	"v_hammer_anims\swing_build.smd"
	activity "ACT_VM_SWINGHARD" -1
	fadein 0.05
	fadeout 0.2
	fps 25
}

$KeyValues
{
	qc_path 
	{
		"value" "models\weapons\v_models\melee\v_hammer.qc"
	}
}
