
$modelname "weapons\v_eq_snowball.mdl"

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


$surfaceprop "default"

$contents "solid"

$illumposition 4.956 -11.592 -8.524

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

$cbox 0 0 0 0 0 0

$bbox 0 -7.065 -21.505 23.184 16.978 4.456

$definebone "v_weapon" "" 0 0 0 0 0 89.999983 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Forearm" "" -6.603356 -2.590957 -11.154236 -23.073429 -88.724588 -107.242447 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Forearm" "" 16.977682 -4.009412 -11.073222 32.032153 -126.701458 -48.015178 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Hand" "v_weapon.Bip01_L_Forearm" 10.29558 0.000002 0 -6.721485 -0.040551 -49.427829 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger0" "v_weapon.Bip01_L_Hand" 1.149525 0.416497 -1.414117 35.175778 21.775297 97.020919 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger01" "v_weapon.Bip01_L_Finger0" 1.263879 0 -0.000001 0.387829 28.9932 -0.524356 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger02" "v_weapon.Bip01_L_Finger01" 1.188942 0 0.000003 0.137784 14.009819 -0.646703 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger1" "v_weapon.Bip01_L_Hand" 3.773758 0.133218 -0.970575 10.113753 4.619107 2.183499 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger11" "v_weapon.Bip01_L_Finger1" 1.433457 0.000001 0 0.815574 27.632536 -1.996891 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger12" "v_weapon.Bip01_L_Finger11" 1.019161 0 -0.000002 0.815601 27.632779 -1.99691 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger2" "v_weapon.Bip01_L_Hand" 3.799515 0.014951 -0.039957 -0.62374 17.556704 -1.934872 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger21" "v_weapon.Bip01_L_Finger2" 1.774883 0.000003 0 0.551497 27.781614 -1.277656 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger22" "v_weapon.Bip01_L_Finger21" 1.008848 0 -0.000002 0.551458 27.781767 -1.277598 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger3" "v_weapon.Bip01_L_Hand" 3.632769 0.05905 0.757494 -10.169161 27.999975 -16.421131 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger31" "v_weapon.Bip01_L_Finger3" 1.500135 0 0.000002 0.407052 26.084284 -0.970158 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger32" "v_weapon.Bip01_L_Finger31" 0.905664 -0.000002 -0.000001 0.407015 26.084375 -0.970171 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger4" "v_weapon.Bip01_L_Hand" 3.323332 0.233747 1.479074 -25.06753 37.362522 -23.615791 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger41" "v_weapon.Bip01_L_Finger4" 0.9631 0.000001 0 0.554113 33.192715 -1.017021 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger42" "v_weapon.Bip01_L_Finger41" 0.682896 0 0.000001 0.554023 33.192841 -1.016996 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_ForeTwist" "" -6.603357 -2.590956 -11.154236 -23.073419 -88.724595 -97.255877 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_ForeTwist" "" 16.97768 -4.009413 -11.073224 32.032167 -126.701445 14.114252 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Hand" "v_weapon.Bip01_R_Forearm" 10.295584 0 0 16.194794 -29.545022 94.546956 0 0 0 0 0 0
$definebone "v_weapon.Parent" "v_weapon.Bip01_R_Hand" -2.849092 14.086097 16.512674 -9.397572 96.608034 144.493842 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger0" "v_weapon.Bip01_R_Hand" 1.149523 0.416497 1.414116 -6.519746 65.042089 -118.604761 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger01" "v_weapon.Bip01_R_Finger0" 1.263879 0 -0.000001 -0.022639 -5.512393 0.65182 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger02" "v_weapon.Bip01_R_Finger01" 1.188946 0.000002 0 -0.196579 37.428498 0.312983 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger1" "v_weapon.Bip01_R_Hand" 3.773757 0.133215 0.970572 -9.072734 44.521031 -14.897968 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger11" "v_weapon.Bip01_R_Finger1" 1.433459 -0.000002 -0.000001 2.920424 26.710095 3.994237 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger12" "v_weapon.Bip01_R_Finger11" 1.019162 0 0 3.002806 35.440151 5.645877 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger2" "v_weapon.Bip01_R_Hand" 3.799516 0.014954 0.039958 -0.423632 42.983706 -6.037083 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger21" "v_weapon.Bip01_R_Finger2" 1.77488 0 0 -2.151511 31.357737 4.954675 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger22" "v_weapon.Bip01_R_Finger21" 1.008847 0.000001 0 -2.388799 27.477768 5.740903 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger3" "v_weapon.Bip01_R_Hand" 3.632766 0.059049 -0.757494 3.623104 44.369821 8.244249 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger31" "v_weapon.Bip01_R_Finger3" 1.500138 0 -0.000002 2.273523 14.994287 6.624067 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger32" "v_weapon.Bip01_R_Finger31" 0.905665 0.000003 -0.000001 2.428359 21.152355 9.479132 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger4" "v_weapon.Bip01_R_Hand" 3.32333 0.233746 -1.479074 18.659006 42.602308 21.982006 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger41" "v_weapon.Bip01_R_Finger4" 0.963099 -0.000002 0.000001 2.635341 16.003053 3.878007 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger42" "v_weapon.Bip01_R_Finger41" 0.682892 0.000002 -0.000001 2.202497 22.179359 4.138915 0 0 0 0 0 0

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


// 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.Bip01_L_Forearm" position
$bonesaveframe "v_weapon.Bip01_R_ForeTwist" position
$bonesaveframe "v_weapon.Bip01_L_ForeTwist" position
$bonesaveframe "v_weapon.Parent" position

$sectionframes 30 30

$poseparameter "throwcharge" 0 1 loop 0

$weightlist "weights_throwcharge_blend" {
	 "v_weapon" 0
	 "v_weapon.Bip01_R_Forearm" 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_R_ForeTwist" 0
	 "v_weapon.Bip01_L_ForeTwist" 1
	 "v_weapon.Bip01_R_Hand" 0
	 "v_weapon.Parent" 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
}

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

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

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

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

$sequence "pullpin" {
	"v_eq_snowball_anims\pullpin.smd"
	activity "ACT_VM_PULLPIN" 1
	fadein 0.2
	fadeout 0.2
	blendlayer "throwcharge_blend" 0 3 13 13
	fps 30
}

$sequence "throw" {
	"v_eq_snowball_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_snowball_anims\deploy.smd"
	activity "ACT_VM_DRAW" 1
	{ event 5004 0 "Player.SnowballEquip" }
	fadein 0.2
	fadeout 0.2
	snap
	fps 30
}

$sequence "underhand" {
	"v_eq_snowball_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_snowball\v_snowball.qc"
	}
}
