
$modelname "weapons\v_sonar_bomb.mdl"

$bodygroup "studio"
{
	studio "v_sonar_bomb_sonar_bomb_geo.smd"
}
$bodygroup "clamped1"
{
	studio "v_sonar_bomb_body1_model0.smd"
}


$surfaceprop "default"

$contents "solid"

$illumposition 2.539 -8.356 -6.058

$cdmaterials "models\weapons\v_models\eq_sonar_bomb\"
$cdmaterials ""

$cbox 0 0 0 0 0 0

$bbox -4.448 -13.813 -19.184 21.16 18.891 7.067

$definebone "v_weapon" "" 0 0 0 0 0 -0.000018 0 0 0 0 0 0
$definebone "v_weapon.v_weapon" "" 3.430738 7.822 -12.535791 0 0 89.99999 0 0 0 0 0 0
$definebone "v_weapon.Bip01" "v_weapon.v_weapon" 0 0 0 -89.99999 -90.00001 0 0 0 0 0 0 0
$definebone "v_weapon.Bip01_Pelvis" "v_weapon.Bip01" 0 0 0 -89.999976 -89.999928 0 0 0 0 0 0 0
$definebone "v_weapon.Bip01_Spine" "v_weapon.Bip01_Pelvis" 3.562428 -0.816635 0.000009 0.045592 0 -0.000236 0 0 0 0 0 0
$definebone "v_weapon.Bip01_Spine1" "v_weapon.Bip01_Spine" 4.003749 -0.000001 0.003192 0 0 0 0 0 0 0 0 0
$definebone "v_weapon.Bip01_Spine2" "v_weapon.Bip01_Spine1" 4.003754 -0.000001 0.003193 0 0 0 0 0 0 0 0 0
$definebone "v_weapon.Bip01_Spine3" "v_weapon.Bip01_Spine2" 4.003753 -0.000001 0.003192 0 0 0 0 0 0 0 0 0
$definebone "v_weapon.Bip01_Neck" "v_weapon.Bip01_Spine3" 5.029369 -0.75971 0.004009 -0.043984 16.006938 -0.012587 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Clavicle" "v_weapon.Bip01_Neck" -0.999638 0.2348 -1.223299 69.622789 163.992406 -0.000711 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_UpperArm" "v_weapon.Bip01_R_Clavicle" 10.543862 -7.284716 3.409387 -58.164922 -14.655144 -50.333666 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Clavicle" "v_weapon.Bip01_Neck" -0.999637 0.234795 1.2233 -69.622912 163.99298 0.000081 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_UpperArm" "v_weapon.Bip01_L_Clavicle" 7.649456 -9.39035 -7.865828 12.337234 2.657181 48.716229 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Forearm" "v_weapon.Bip01_L_UpperArm" 11.644596 0.047697 0.003355 0.000003 -103.090771 0.000012 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Hand" "v_weapon.Bip01_L_Forearm" 10.27154 -0.000904 -0.702922 4.835376 -5.670921 -75.024178 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger0" "v_weapon.Bip01_L_Hand" 1.137395 0.41599 -1.413918 15.607286 46.9894 114.678508 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger01" "v_weapon.Bip01_L_Finger0" 1.24636 0.208096 -0.02601 -2.510158 26.766859 -0.420546 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger02" "v_weapon.Bip01_L_Finger01" 1.186195 -0.030479 -0.074887 1.441682 67.894021 2.15062 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger1" "v_weapon.Bip01_L_Hand" 3.76163 0.132709 -0.970373 4.780523 72.157015 8.20808 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger11" "v_weapon.Bip01_L_Finger1" 1.425413 -0.150268 -0.020531 -0.065274 103.671652 0.387102 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger12" "v_weapon.Bip01_L_Finger11" 1.019121 -0.004965 -0.007851 -0.405204 73.108139 -2.084017 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger2" "v_weapon.Bip01_L_Hand" 3.787385 0.014448 -0.039757 3.538614 84.523756 -6.059985 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger21" "v_weapon.Bip01_L_Finger2" 1.759919 -0.220662 0.064747 0.183556 120.104137 0.267663 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger22" "v_weapon.Bip01_L_Finger21" 1.006879 -0.050392 0.037678 0.149294 75.461884 0.680734 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger3" "v_weapon.Bip01_L_Hand" 3.620636 0.058543 0.757694 -2.08285 81.661148 -8.484873 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger31" "v_weapon.Bip01_L_Finger3" 1.512033 0.026645 0.000935 0.3318 119.875408 3.056273 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger32" "v_weapon.Bip01_L_Finger31" 0.905295 -0.025792 0.003475 -1.908362 76.339072 0.523353 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger4" "v_weapon.Bip01_L_Hand" 3.311199 0.233237 1.479277 -1.412216 68.251096 -6.607077 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger41" "v_weapon.Bip01_L_Finger4" 0.96065 0.048017 0.049038 10.593765 90.994834 22.934853 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger42" "v_weapon.Bip01_L_Finger41" 0.694568 -0.006295 0.003262 3.979588 48.673916 -4.644349 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_ForeTwist" "v_weapon.Bip01_L_UpperArm" 11.57688 0 0.000004 3.914244 -103.091188 5.394504 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Forearm" "v_weapon.Bip01_R_UpperArm" 11.62106 0.047102 -0.003308 -0.000007 -66.363191 -0.000017 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Hand" "v_weapon.Bip01_R_Forearm" 10.248908 -0.309519 0.667887 -3.034949 5.812036 124.667687 0 0 0 0 0 0
$definebone "v_weapon.Parent" "v_weapon.Bip01_R_Hand" -2.957492 14.760313 12.82918 -15.500237 43.127833 -38.662938 0 0 0 0 0 0
$definebone "v_weapon.Handle" "v_weapon.Parent" 0 2.166723 -0.371289 0.00001 0.00001 -89.999983 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger0" "v_weapon.Bip01_R_Hand" 1.151785 0.410447 1.411701 -31.295131 47.224365 -87.234248 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger01" "v_weapon.Bip01_R_Finger0" 1.263575 0.001926 0.000103 -3.14337 -10.69757 -5.571832 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger02" "v_weapon.Bip01_R_Finger01" 1.181422 0.327115 0.017688 4.739322 16.46564 -4.41367 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger1" "v_weapon.Bip01_R_Hand" 3.771852 -0.068561 1.013863 -1.495491 18.55632 18.697993 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger11" "v_weapon.Bip01_R_Finger1" 1.461906 0.014993 -0.048146 14.5137 42.088275 2.056669 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger12" "v_weapon.Bip01_R_Finger11" 1.061123 -0.012966 -0.037727 3.883848 35.039967 -1.218376 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger2" "v_weapon.Bip01_R_Hand" 3.811742 0.01548 0.039713 -3.478006 44.31117 21.412915 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger21" "v_weapon.Bip01_R_Finger2" 1.810972 0.00028 -0.04527 6.345305 64.072974 -3.412303 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger22" "v_weapon.Bip01_R_Finger21" 1.034654 -0.026217 -0.044714 -3.414103 36.45079 -2.354516 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger3" "v_weapon.Bip01_R_Hand" 3.644997 0.05956 -0.757741 -2.967157 44.178012 20.739511 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger31" "v_weapon.Bip01_R_Finger3" 1.536082 0.00119 -0.072676 -0.690846 45.618885 -4.023175 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger32" "v_weapon.Bip01_R_Finger31" 0.934376 -0.019482 -0.063386 -2.720483 49.597371 0.978872 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger4" "v_weapon.Bip01_R_Hand" 3.335566 0.234251 -1.479324 -7.865476 48.220429 9.320183 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger41" "v_weapon.Bip01_R_Finger4" 0.98962 0.004116 -0.161397 -3.888836 18.05955 -7.592759 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger42" "v_weapon.Bip01_R_Finger41" 0.714132 0.002744 -0.050014 -5.285514 47.787159 4.845408 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_ForeTwist" "v_weapon.Bip01_R_UpperArm" 11.576878 0.000001 -0.000001 -3.729944 -68.092561 -11.706427 0 0 0 0 0 0
$definebone "v_weapon.Bip01_Prop1" "v_weapon.Bip01" 13.731169 -0.004014 -3.551312 -27.076916 119.613388 157.163323 0 0 0 0 0 0
$definebone "v_weapon.Flap" "v_weapon.Parent" 0 0.225698 1.044976 -90.000003 -90.000003 0 0 0 0 0 0 0
$definebone "v_weapon.Jewel_01" "v_weapon.Handle" -0.035372 -0.715303 -1.127204 0.000042 -0.00001 90.000024 0 0 0 0 0 0
$definebone "v_weapon.Jewel_02" "v_weapon.Handle" -0.035972 -0.715303 -0.405155 0.000042 -0.00001 90.000024 0 0 0 0 0 0
$definebone "v_weapon.Jewel_03" "v_weapon.Handle" -0.035972 -0.02459 -0.405154 0.000042 -0.00001 90.000024 0 0 0 0 0 0
$definebone "v_weapon.Jewel_04" "v_weapon.Handle" -0.035372 -0.024589 -1.127204 0.000042 -0.00001 90.000024 0 0 0 0 0 0
$definebone "v_weapon.Collar" "v_weapon.Parent" 0 -0.009117 -1.082124 -90.000003 -90.000003 0 0 0 0 0 0 0
$definebone "v_weapon.Collar_L" "v_weapon.Collar" 1.750552 0.751081 0 0 0 0 0 0 0 0 0 0
$definebone "v_weapon.Collar_R" "v_weapon.Collar" 1.750552 -0.816157 0 0 0 0 0 0 0 0 0 0

$bonemerge "v_weapon"
$bonemerge "v_weapon.v_weapon"
$bonemerge "v_weapon.Bip01"
$bonemerge "v_weapon.Bip01_Pelvis"
$bonemerge "v_weapon.Bip01_Spine"
$bonemerge "v_weapon.Bip01_Spine1"
$bonemerge "v_weapon.Bip01_Spine2"
$bonemerge "v_weapon.Bip01_Spine3"
$bonemerge "v_weapon.Bip01_Neck"
$bonemerge "v_weapon.Bip01_R_Clavicle"
$bonemerge "v_weapon.Bip01_R_UpperArm"
$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 "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_Prop1"


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

$bonesaveframe "v_weapon" position
$bonesaveframe "v_weapon.v_weapon" position
$bonesaveframe "v_weapon.Bip01" position
$bonesaveframe "v_weapon.Bip01_R_UpperArm" position
$bonesaveframe "v_weapon.Bip01_L_Forearm" position
$bonesaveframe "v_weapon.Bip01_L_ForeTwist" position
$bonesaveframe "v_weapon.Bip01_R_Forearm" position
$bonesaveframe "v_weapon.Parent" position
$bonesaveframe "v_weapon.Handle" position
$bonesaveframe "v_weapon.Bip01_R_ForeTwist" position
$bonesaveframe "v_weapon.Bip01_Prop1" position

$sectionframes 30 29

$poseparameter "throwcharge" 0 1 loop 0

$weightlist "weights_throwcharge_blend" {
	 "v_weapon" 0
	 "v_weapon.v_weapon" 0
	 "v_weapon.Bip01" 0
	 "v_weapon.Bip01_Pelvis" 0
	 "v_weapon.Bip01_Spine" 0
	 "v_weapon.Bip01_Spine1" 0
	 "v_weapon.Bip01_Spine2" 0
	 "v_weapon.Bip01_Spine3" 0
	 "v_weapon.Bip01_Neck" 0
	 "v_weapon.Bip01_R_Clavicle" 0
	 "v_weapon.Bip01_R_UpperArm" 0
	 "v_weapon.Bip01_L_Clavicle" 0
	 "v_weapon.Bip01_L_UpperArm" 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.Bip01_R_Forearm" 0
	 "v_weapon.Bip01_R_Hand" 0
	 "v_weapon.Parent" 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
	 "v_weapon.Bip01_Prop1" 0
	 "v_weapon.Flap" 0
	 "v_weapon.Jewel_01" 0
	 "v_weapon.Jewel_02" 0
	 "v_weapon.Jewel_03" 0
	 "v_weapon.Jewel_04" 0
	 "v_weapon.Collar" 0
	 "v_weapon.Collar_L" 0
	 "v_weapon.Collar_R" 0
}

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

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

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

$sequence "idle" {
	"v_sonar_bomb_anims\idle.smd"
	activity "ACT_VM_IDLE" 1
	fadein 0.1
	fadeout 0.9
	fps 30
}

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

$sequence "throw" {
	"v_sonar_bomb_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_sonar_bomb_anims\deploy.smd"
	activity "ACT_VM_DRAW" 1
	{ event 5004 0 "IncGrenade.Draw" }
	{ event 5004 14 "Sensor.Equip" }
	fadein 0.1
	fadeout 0.9
	fps 30
}

$sequence "underhand" {
	"v_sonar_bomb_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_sonar_bomb\v_sonar_bomb.qc"
	}
}
