
$modelname "weapons\v_fists.mdl"

$bodygroup "studio"
{
	studio "v_fists_fists_ref.smd"
}
$bodygroup "studio"
{
	studio "v_fists_fists_cash_ref.smd"
}
$bodygroup "rope"
{
	blank
	studio "v_fists_fists_rope_ref.smd"
}
$bodygroup "carabiner"
{
	blank
	studio "v_fists_fists_carabiner_ref.smd"
}


$surfaceprop "default"

$contents "solid"

$illumposition -10.877 -16.649 15.734

$cdmaterials "models\weapons\V_models\fists\"
$cdmaterials "models\props_survival\cash\"
$cdmaterials "models\weapons\shared\paracord\"

$cbox 0 0 0 0 0 0

$bbox -50.869 -55.796 -192.037 84.168 34.043 223.504

$definebone "v_weapon.Bip01_R_Clavicle" "" -0.534759 11.664671 -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.773744 -0.000004 0.000005 8.151129 -61.427266 71.122344 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Forearm" "v_weapon.Bip01_R_UpperArm" 11.576893 0.000002 -0.000001 0 -38.631164 -0.000007 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Hand" "v_weapon.Bip01_R_Forearm" 10.295588 0.00001 0.000006 -7.901489 -16.243698 92.787875 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger0" "v_weapon.Bip01_R_Hand" 1.23117 0.348998 1.249107 -3.93204 48.399172 -129.966357 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger01" "v_weapon.Bip01_R_Finger0" 1.611107 0.000001 0 0.072944 31.750288 11.827344 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger02" "v_weapon.Bip01_R_Finger01" 1.188948 0.000001 0 -0.150052 47.809658 0.643952 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger1" "v_weapon.Bip01_R_Hand" 4.068596 0.143197 0.892414 8.514377 89.535086 10.986639 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger11" "v_weapon.Bip01_R_Finger1" 1.433461 -0.000002 0.000001 -6.042809 111.268857 -0.982166 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger12" "v_weapon.Bip01_R_Finger11" 1.019162 0 0 -3.657931 48.925445 4.872952 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger2" "v_weapon.Bip01_R_Hand" 3.939289 0.020631 -0.014991 1.598086 88.672324 28.976484 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger21" "v_weapon.Bip01_R_Finger2" 1.691287 0.000002 0.000002 -5.424583 106.199327 0.584752 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger22" "v_weapon.Bip01_R_Finger21" 1.039843 0.000001 0 -2.960865 55.149133 4.584639 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger3" "v_weapon.Bip01_R_Hand" 3.582013 0.056838 -0.735428 -5.050632 93.172626 29.80017 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger31" "v_weapon.Bip01_R_Finger3" 1.583913 0 0.000002 -6.077813 96.277985 3.04945 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger32" "v_weapon.Bip01_R_Finger31" 1.0067 0 0.000001 -2.142796 51.2823 6.45231 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger4" "v_weapon.Bip01_R_Hand" 3.126529 0.227897 -1.440082 -13.600477 88.771792 34.327162 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger41" "v_weapon.Bip01_R_Finger4" 1.246394 -0.000002 0.000001 -3.530218 97.257926 3.530962 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger42" "v_weapon.Bip01_R_Finger41" 0.682896 0.000003 0 0.408352 21.892029 4.305546 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_ForeTwist" "v_weapon.Bip01_R_UpperArm" 11.576893 0.000001 -0.000002 -0.000003 -38.631103 29.210243 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Clavicle" "" 1.764202 10.882 -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.773744 -0.000001 0.000004 0.498073 -17.689212 -63.426599 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Forearm" "v_weapon.Bip01_L_UpperArm" 11.57689 -0.000008 0.000002 -0.000005 -63.292645 -0.000003 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Hand" "v_weapon.Bip01_L_Forearm" 10.29559 0.000015 -0.000009 -1.765691 -1.626514 -112.47345 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger0" "v_weapon.Bip01_L_Hand" 1.231167 0.348996 -1.249105 15.261136 46.791062 112.674394 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger01" "v_weapon.Bip01_L_Finger0" 1.611107 0 -0.000002 0.000002 40.149734 -0.000005 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger02" "v_weapon.Bip01_L_Finger01" 1.188945 0.000001 0 0.037418 34.211257 -0.660164 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger1" "v_weapon.Bip01_L_Hand" 4.290792 0.112072 -0.897962 1.203034 107.632997 2.146303 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger11" "v_weapon.Bip01_L_Finger1" 1.433459 0 -0.000002 3.535033 79.807804 -1.226015 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger12" "v_weapon.Bip01_L_Finger11" 1.019161 -0.000001 0 1.541659 33.252636 -3.409335 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger2" "v_weapon.Bip01_L_Hand" 4.264512 0.004032 0.013416 5.472544 110.385195 2.652284 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger21" "v_weapon.Bip01_L_Finger2" 1.691287 0.000002 -0.000003 2.71942 63.513288 -2.137595 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger22" "v_weapon.Bip01_L_Finger21" 1.039843 0.000001 -0.000003 1.259013 33.029754 -3.221461 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger3" "v_weapon.Bip01_L_Hand" 3.582013 0.056836 0.735426 9.895721 98.245305 -0.787125 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger31" "v_weapon.Bip01_L_Finger3" 1.583914 -0.000003 -0.000003 2.454601 85.741367 -3.702459 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger32" "v_weapon.Bip01_L_Finger31" 1.006699 0.000002 -0.000001 -2.609545 16.314289 -3.595088 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger4" "v_weapon.Bip01_L_Hand" 3.126531 0.227896 1.440083 12.583525 80.562396 -4.828306 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger41" "v_weapon.Bip01_L_Finger4" 1.246396 0 -0.000002 4.692054 94.58571 -1.962327 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger42" "v_weapon.Bip01_L_Finger41" 0.682895 -0.000001 -0.000001 -0.15763 25.540285 -5.082601 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_ForeTwist" "v_weapon.Bip01_L_UpperArm" 11.576889 -0.000008 0.000002 0.000053 -63.292645 -55.962165 0 0 0 0 0 0
$definebone "cam_driver" "" 0 0 0 0 -90.000003 0 0 0 0 0 0 0
$definebone "money_root" "" 0.000001 0.000002 -28.637974 0 0 0 0 0 0 0 0 0
$definebone "money_flop2" "money_root" 0 1.533839 0.000002 0 0 0 0 0 0 0 0 0
$definebone "money_flop3" "money_flop2" 0 0.704431 0.418758 0 0 0 0 0 0 0 0 0
$definebone "money_flop4" "money_flop2" -0.000001 0.70443 -0.484505 0 0 0 0 0 0 0 0 0
$definebone "money_flop1" "money_root" 0 -1.296477 -0.000002 0 0 0 0 0 0 0 0 0
$definebone "root" "" 0 0 0 0 0 0 0 0 0 0 0 0
$definebone "rope_pt4" "v_weapon.Bip01_L_Hand" 3.703175 0.745011 -1.542801 22.495167 -141.566395 -146.002931 0 0 0 0 0 0
$definebone "rope_pt2" "v_weapon.Bip01_L_Clavicle" 16.327763 -13.145524 -4.146597 21.063479 31.728623 -30.549995 0 0 0 0 0 0
$definebone "rope_pt3" "rope_pt2" -5.776832 -5.720871 12.386862 0.000002 0.000004 0 0 0 0 0 0 0
$definebone "rope_pt1" "rope_pt2" -7.933831 -5.520535 10.908453 0.000002 0.000004 0 0 0 0 0 0 0
$definebone "rope_pt0" "v_weapon.Bip01_R_Hand" 1.769419 1.061607 -2.579374 -53.943171 93.054355 37.302594 0 0 0 0 0 0
$definebone "rope_pt5" "root" 9.850769 -18.666965 223.50415 0 0 0 0 0 0 0 0 0
$definebone "carabiner5" "root" 22.990814 22.610718 -8.703763 0 0 0 0 0 0 0 0 0
$definebone "carabiner4" "carabiner5" 0 0 -1.312472 0 0 0 0 0 0 0 0 0
$definebone "carabiner3" "carabiner4" 0 0 -1.325048 0 0 0 0 0 0 0 0 0
$definebone "carabiner2" "carabiner3" 0 0 -1.48323 0 0 0 0 0 0 0 0 0
$definebone "carabiner1" "carabiner2" 0 0 -1.846425 0 0 0 0 0 0 0 0 0
$definebone "carabiner0" "carabiner1" 0 0 -3.733345 0 0 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 "v_weapon.Bip01_R_Clavicle" position
$bonesaveframe "v_weapon.Bip01_L_Clavicle" position
$bonesaveframe "cam_driver" position
$bonesaveframe "money_root" position
$bonesaveframe "root" position
$bonesaveframe "rope_pt4" position
$bonesaveframe "rope_pt2" position
$bonesaveframe "rope_pt3" position
$bonesaveframe "rope_pt1" position
$bonesaveframe "rope_pt0" position
$bonesaveframe "rope_pt5" position
$bonesaveframe "carabiner5" position

$sectionframes 30 39

$poseparameter "running" 0 1 loop 0
$poseparameter "pitch" -1 1 loop 0

$animation "a_idle" "v_fists_anims\a_idle.smd" {
	fps 30
	loop
}

$animation "a_run" "v_fists_anims\a_run.smd" {
	fps 30
	loop
}

$animation "rappel_lookup" "v_fists_anims\rappel_lookup.smd" {
	fps 30
	loop
}

$animation "rappel_lookmid" "v_fists_anims\rappel_lookmid.smd" {
	fps 30
}

$animation "rappel_lookdown" "v_fists_anims\rappel_lookdown.smd" {
	fps 30
}

$sequence "idle" {
	"a_idle"
	"a_run"
	activity "ACT_VM_IDLE" 1
	blend "running" 0 1
	blendwidth 2
	fadein 0.2
	fadeout 0.2
}

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

$sequence "punch_right" {
	"v_fists_anims\punch_right.smd"
	activity "ACT_VM_HITCENTER" 1
	fadein 0.2
	fadeout 0.2
	snap
	fps 30
}

$sequence "punch_left" {
	"v_fists_anims\punch_left.smd"
	activity "ACT_VM_HITCENTER" 1
	fadein 0.2
	fadeout 0.2
	snap
	fps 30
}

$sequence "punch_hard" {
	"v_fists_anims\punch_hard.smd"
	activity "ACT_VM_RELOAD" 1
	fadein 0.05
	fadeout 0.01
	fps 30
}

$sequence "grab_cash" {
	"v_fists_anims\grab_cash.smd"
	activity "ACT_VM_PICKUP" 1
	fadein 0.05
	fadeout 0.01
	snap
	fps 30
}

$sequence "rappel" {
	"rappel_lookup"
	"rappel_lookmid"
	"rappel_lookdown"
	activity "ACT_VM_FIDGET" 1
	blend "pitch" -1 1
	blendwidth 3
	fadein 0.2
	fadeout 0.2
}

$sequence "rappel_end" {
	"v_fists_anims\rappel_end.smd"
	activity "ACT_VM_RELEASE" -1
	{ event 5004 0 "Land_Cardboard.StepLeft" }
	{ event 5004 13 "Player.EquipArmor_T" }
	{ event 5004 21 "Weapon_GalilAR.Clipin" }
	{ event 5004 23 "Chain.ImpactHard" }
	{ event 5004 29 "Player.EquipArmor_CT" }
	fadein 0.2
	fadeout 0.25
	fps 30
}

$KeyValues
{
	qc_path 
	{
		"value" "models\weapons\v_models\fists\v_fists.qc"
	}
}
