
$modelname "weapons\v_eq_fraggrenade.mdl"

$bodygroup "studio"
{
	studio "v_eq_fraggrenade_v_fraggrenade_model.smd"
}


$surfaceprop "default"

$contents "solid"

$illumposition 0.666 -12.88 -8.98

$cdmaterials "models\weapons\V_models\eq_grenades\"

$cbox 0 0 0 0 0 0

$bbox 4.763 -11.955 -18.834 20.997 13.286 0.874

$definebone "v_weapon" "" 0 0 0 0 0 89.999983 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Forearm" "" -11.95465 -2.910559 -9.106165 -16.838428 -64.586276 -126.640806 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Hand" "v_weapon.Bip01_R_Forearm" 10.295581 0.000002 0 0.118031 -4.063934 125.526693 0 0 0 0 0 0
$definebone "v_weapon.Parent" "v_weapon.Bip01_R_Hand" 0.285277 21.349361 7.129363 7.576209 63.699888 108.823581 0 0 0 0 0 0
$definebone "v_weapon.Handle" "v_weapon.Parent" 0.276154 2.166723 -0.371289 0 0 -89.999983 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Forearm" "" 11.693635 0.089218 -12.426538 16.933767 -90.366218 -64.826849 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Hand" "v_weapon.Bip01_L_Forearm" 10.295579 0 -0.000003 -13.748239 -5.893042 -58.181403 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger0" "v_weapon.Bip01_L_Hand" 1.149522 0.416498 -1.414118 13.302421 -4.504598 89.493661 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger01" "v_weapon.Bip01_L_Finger0" 1.263879 0 0 -0.000004 -0.000002 0.000002 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger02" "v_weapon.Bip01_L_Finger01" 1.188942 -0.000002 -0.000001 -0.192976 -14.984399 -0.632427 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger1" "v_weapon.Bip01_L_Hand" 3.773752 0.133217 -0.970574 -1.285488 8.630176 -1.709194 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger11" "v_weapon.Bip01_L_Finger1" 1.433456 -0.000003 0 0.343144 13.87372 -3.116263 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger12" "v_weapon.Bip01_L_Finger11" 1.019161 0 0.000002 0.343145 13.873148 -3.116088 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger2" "v_weapon.Bip01_L_Hand" 3.799515 0.014954 -0.039958 5.968388 18.055165 -2.85442 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger21" "v_weapon.Bip01_L_Finger2" 1.774879 0.000001 0 0.438426 18.359182 -2.595558 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger22" "v_weapon.Bip01_L_Finger21" 1.008842 -0.000003 -0.000002 0.438426 18.359178 -2.595557 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger3" "v_weapon.Bip01_L_Hand" 3.632763 0.059049 0.757493 10.310205 35.029612 -4.880115 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger31" "v_weapon.Bip01_L_Finger3" 1.500137 0.000002 0.000004 1.483558 35.8152 -4.411832 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger32" "v_weapon.Bip01_L_Finger31" 0.905664 -0.000003 0 1.48356 35.815187 -4.411892 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger4" "v_weapon.Bip01_L_Hand" 3.323328 0.233747 1.479074 16.839464 63.701862 20.469946 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger41" "v_weapon.Bip01_L_Finger4" 0.963099 0 0 2.152547 56.325463 -3.567343 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger42" "v_weapon.Bip01_L_Finger41" 0.682892 0 0 2.152598 56.325473 -3.567347 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_ForeTwist" "" 11.693635 0.089218 -12.426538 16.933767 -90.366218 -35.924173 0 0 0 0 0 0
$definebone "v_weapon.Pin" "v_weapon.Parent" 0.110737 1.907658 0.594413 0 179.999979 89.999983 0 0 0 0 0 0
$definebone "v_weapon.Ring" "v_weapon.Pin" 0.539025 0 0 0 0 0 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger0" "v_weapon.Bip01_R_Hand" 1.149524 0.416496 1.414115 -32.043754 71.884374 -134.298855 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger01" "v_weapon.Bip01_R_Finger0" 1.263876 -0.000001 0.000001 0.712016 9.663855 8.119559 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger02" "v_weapon.Bip01_R_Finger01" 1.188944 0.000001 -0.000002 -0.537668 56.378646 0.384974 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger1" "v_weapon.Bip01_R_Hand" 3.773754 0.133215 0.970574 -17.462663 37.058226 -4.990982 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger11" "v_weapon.Bip01_R_Finger1" 1.433458 0 0 -0.593643 26.349526 1.277801 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger12" "v_weapon.Bip01_R_Finger11" 1.019161 0.000001 0.000001 -2.405097 46.837066 4.577586 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger2" "v_weapon.Bip01_R_Hand" 3.799514 0.014955 0.039958 -0.113616 53.127179 20.768341 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger21" "v_weapon.Bip01_R_Finger2" 1.77488 0.000002 0.000001 -0.480479 23.127902 2.24187 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger22" "v_weapon.Bip01_R_Finger21" 1.008846 -0.000001 0 -0.926012 34.848025 8.735663 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger3" "v_weapon.Bip01_R_Hand" 3.632761 0.059052 -0.757493 -0.190219 70.655036 20.24031 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger31" "v_weapon.Bip01_R_Finger3" 1.500136 0 0 -4.48357 96.480371 -0.186955 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger32" "v_weapon.Bip01_R_Finger31" 0.905663 -0.000002 0.000001 -5.921578 67.363397 2.36912 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger4" "v_weapon.Bip01_R_Hand" 3.323329 0.233747 -1.479074 -6.181352 86.027374 25.88262 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger41" "v_weapon.Bip01_R_Finger4" 0.963098 0.000001 0 -9.222621 83.218916 -0.709664 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger42" "v_weapon.Bip01_R_Finger41" 0.682895 0 0.000001 -0.289751 44.882311 3.099066 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_ForeTwist" "" -11.95465 -2.910559 -9.106165 -16.838428 -64.586276 -93.268023 0 0 0 0 0 0

$bonemerge "v_weapon"
$bonemerge "v_weapon.Bip01_R_Forearm"
$bonemerge "v_weapon.Bip01_R_Hand"
$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 "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"


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

$bonesaveframe "v_weapon" position
$bonesaveframe "v_weapon.Bip01_R_Forearm" position
$bonesaveframe "v_weapon.Parent" position
$bonesaveframe "v_weapon.Bip01_L_Forearm" position
$bonesaveframe "v_weapon.Bip01_L_ForeTwist" position
$bonesaveframe "v_weapon.Pin" position
$bonesaveframe "v_weapon.Bip01_R_ForeTwist" position

$sectionframes 30 29

$poseparameter "throwcharge" 0 1 loop 0

$weightlist "weights_throwcharge_blend" {
	 "v_weapon" 0
	 "v_weapon.Bip01_R_Forearm" 0
	 "v_weapon.Bip01_R_Hand" 0
	 "v_weapon.Parent" 0
	 "v_weapon.Handle" 0
	 "v_weapon.Bip01_L_Forearm" 1
	 "v_weapon.Bip01_L_Hand" 1
	 "v_weapon.Bip01_L_Finger0" 1
	 "v_weapon.Bip01_L_Finger01" 1
	 "v_weapon.Bip01_L_Finger02" 1
	 "v_weapon.Bip01_L_Finger1" 1
	 "v_weapon.Bip01_L_Finger11" 1
	 "v_weapon.Bip01_L_Finger12" 1
	 "v_weapon.Bip01_L_Finger2" 1
	 "v_weapon.Bip01_L_Finger21" 1
	 "v_weapon.Bip01_L_Finger22" 1
	 "v_weapon.Bip01_L_Finger3" 1
	 "v_weapon.Bip01_L_Finger31" 1
	 "v_weapon.Bip01_L_Finger32" 1
	 "v_weapon.Bip01_L_Finger4" 1
	 "v_weapon.Bip01_L_Finger41" 1
	 "v_weapon.Bip01_L_Finger42" 1
	 "v_weapon.Bip01_L_ForeTwist" 1
	 "v_weapon.Pin" 0
	 "v_weapon.Ring" 0
	 "v_weapon.Bip01_R_Finger0" 0
	 "v_weapon.Bip01_R_Finger01" 0
	 "v_weapon.Bip01_R_Finger02" 0
	 "v_weapon.Bip01_R_Finger1" 0
	 "v_weapon.Bip01_R_Finger11" 0
	 "v_weapon.Bip01_R_Finger12" 0
	 "v_weapon.Bip01_R_Finger2" 0
	 "v_weapon.Bip01_R_Finger21" 0
	 "v_weapon.Bip01_R_Finger22" 0
	 "v_weapon.Bip01_R_Finger3" 0
	 "v_weapon.Bip01_R_Finger31" 0
	 "v_weapon.Bip01_R_Finger32" 0
	 "v_weapon.Bip01_R_Finger4" 0
	 "v_weapon.Bip01_R_Finger41" 0
	 "v_weapon.Bip01_R_Finger42" 0
	 "v_weapon.Bip01_R_ForeTwist" 0
}

$animation "throwcharge_high" "v_eq_fraggrenade_anims\throwcharge_high.smd" {
	fps 30
	weightlist "weights_throwcharge_blend"
}

$animation "throwcharge_mid" "v_eq_fraggrenade_anims\throwcharge_mid.smd" {
	fps 30
	weightlist "weights_throwcharge_blend"
}

$animation "throwcharge_low" "v_eq_fraggrenade_anims\throwcharge_low.smd" {
	fps 30
	weightlist "weights_throwcharge_blend"
}

$sequence "idle" {
	"v_eq_fraggrenade_anims\idle.smd"
	activity "ACT_VM_IDLE" 1
	fadein 0.2
	fadeout 0.2
	snap
	fps 30
}

$sequence "pullpin" {
	"v_eq_fraggrenade_anims\pullpin.smd"
	activity "ACT_VM_PULLPIN" 1
	{ event 5004 0 "HEGrenade.PullPin_Grenade_Start" }
	{ event 5004 12 "HEGrenade.PullPin_Grenade" }
	fadein 0.2
	fadeout 0.2
	blendlayer "throwcharge_blend" 16 20 30 30
	fps 30
}

$sequence "throw" {
	"v_eq_fraggrenade_anims\throw.smd"
	activity "ACT_VM_THROW" 1
	{ event 3005 10 "" }
	fadein 0.2
	fadeout 0.2
	snap
	fps 30
	localhierarchy "v_weapon.Parent" "v_weapon" range 0 0 12 12
}

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

$sequence "underhand" {
	"v_eq_fraggrenade_anims\underhand.smd"
	activity "ACT_VM_RELEASE" 1
	{ event 3005 10 "" }
	fadein 0.2
	fadeout 0.2
	snap
	fps 30
}

$sequence "throwcharge_blend" {
	"throwcharge_low"
	"throwcharge_mid"
	"throwcharge_high"
	blend "throwcharge" 0 1
	blendwidth 3
	fadein 0.2
	fadeout 0.2
}

$KeyValues
{
	qc_path 
	{
		"value" "models\weapons\v_models\eq_fraggrenade\v_fraggrenade.qc"
	}
}
