
$modelname "weapons\v_eq_smokegrenade.mdl"

$bodygroup "studio"
{
	studio "v_eq_smokegrenade_v_smoke_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.295582 0.000003 -0.000001 0.118031 -4.063934 125.526638 0 0 0 0 0 0
$definebone "v_weapon.Parent" "v_weapon.Bip01_R_Hand" 0.285277 21.349354 7.129381 7.57616 63.699895 108.823602 0 0 0 0 0 0
$definebone "v_weapon.Pin" "v_weapon.Parent" 0.110737 2.0647 0.520034 0 -175.337118 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.295581 -0.000002 -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.263877 0.000002 0.000002 -0.000004 -0.000002 0.000002 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger02" "v_weapon.Bip01_L_Finger01" 1.188944 -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.433458 -0.000004 -0.000001 0.343144 13.87372 -3.116263 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger12" "v_weapon.Bip01_L_Finger11" 1.019163 0.000001 -0.000002 0.343145 13.873148 -3.116148 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger2" "v_weapon.Bip01_L_Hand" 3.799511 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.774883 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.008844 -0.000002 0 0.438426 18.359178 -2.595557 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger3" "v_weapon.Bip01_L_Hand" 3.632765 0.05905 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.500136 0.000002 0.000002 1.483616 35.815204 -4.411832 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger32" "v_weapon.Bip01_L_Finger31" 0.905663 -0.000001 0.000002 1.483561 35.815183 -4.411889 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger4" "v_weapon.Bip01_L_Hand" 3.323328 0.233746 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.000001 0 2.152605 56.325466 -3.567346 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger42" "v_weapon.Bip01_L_Finger41" 0.682893 0 0 2.152541 56.325473 -3.567345 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_ForeTwist" "" 11.693635 0.089218 -12.426538 16.933767 -90.366218 -35.924224 0 0 0 0 0 0
$definebone "v_weapon.Ring" "v_weapon.Pin" 0.605268 0 0 54.790521 21.880511 22.726085 0 0 0 0 0 0
$definebone "v_weapon.Handle" "v_weapon.Parent" 0.004001 2.236295 -0.442481 0 0 -89.999983 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger0" "v_weapon.Bip01_R_Hand" 1.149521 0.416494 1.414116 -16.961844 50.704477 -133.637256 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger01" "v_weapon.Bip01_R_Finger0" 1.263877 -0.000003 0 -0.256744 2.855906 13.48972 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger02" "v_weapon.Bip01_R_Finger01" 1.188943 -0.000001 0 -0.431611 48.017589 -6.106179 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger1" "v_weapon.Bip01_R_Hand" 3.773752 0.133215 0.970574 1.977851 24.537264 6.827764 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger11" "v_weapon.Bip01_R_Finger1" 1.433457 0.000001 0 -0.692477 30.868098 1.227102 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger12" "v_weapon.Bip01_R_Finger11" 1.019162 -0.000001 0 -2.830296 69.227916 15.66054 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger2" "v_weapon.Bip01_R_Hand" 3.799513 0.014954 0.039959 -7.37414 46.470548 -0.939767 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger21" "v_weapon.Bip01_R_Finger2" 1.77488 0 0 -1.358711 47.36642 1.846927 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger22" "v_weapon.Bip01_R_Finger21" 1.008846 0 0.000002 -7.103584 46.343695 14.144838 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger3" "v_weapon.Bip01_R_Hand" 3.632762 0.059049 -0.757494 -10.227641 43.495116 -15.663521 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger31" "v_weapon.Bip01_R_Finger3" 1.500138 -0.000002 -0.000002 -7.178472 41.281722 15.122363 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger32" "v_weapon.Bip01_R_Finger31" 0.905663 0.000001 0.000001 -4.487577 57.764058 22.991139 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger4" "v_weapon.Bip01_R_Hand" 3.32333 0.233744 -1.479076 -17.235086 27.959429 1.976187 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger41" "v_weapon.Bip01_R_Finger4" 0.963099 0.000002 0.000001 -0.4598 58.229931 7.533303 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger42" "v_weapon.Bip01_R_Finger41" 0.682896 0.000002 0 -0.566195 35.758923 10.17561 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.Pin" position
$bonesaveframe "v_weapon.Bip01_L_Forearm" position
$bonesaveframe "v_weapon.Bip01_L_ForeTwist" 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.Pin" 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.Ring" 0
	 "v_weapon.Handle" 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_smokegrenade_anims\throwcharge_high.smd" {
	fps 30
	weightlist "weights_throwcharge_blend"
}

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

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

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

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

$sequence "throw" {
	"v_eq_smokegrenade_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_smokegrenade_anims\deploy.smd"
	activity "ACT_VM_DRAW" 1
	{ event 5004 0 "SmokeGrenade.Draw" }
	fadein 0.2
	fadeout 0.2
	snap
	fps 30
}

$sequence "underhand" {
	"v_eq_smokegrenade_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_smokegrenade\v_smokegrenade.qc"
	}
}
