
$modelname "weapons\v_breachcharge.mdl"

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


$surfaceprop "default"

$contents "solid"

$illumposition 1.987 -1.715 -4.19

$cdmaterials "models\weapons\v_models\c4\"

$cbox 0 0 0 0 0 0

$bbox -11.665 -8.053 -10.419 15.094 12.027 2.038

$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.773742 0 0.000002 -0.335922 -58.696433 71.112256 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Forearm" "v_weapon.Bip01_R_UpperArm" 11.576891 -0.000001 0.000004 0.000001 -54.704007 0 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Hand" "v_weapon.Bip01_R_Forearm" 10.295586 0.00001 0.000008 0.129546 6.159926 94.802002 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger0" "v_weapon.Bip01_R_Hand" 1.231168 0.348997 1.249107 -36.039903 12.439427 -107.187683 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger01" "v_weapon.Bip01_R_Finger0" 1.611105 -0.000001 0.000001 1.064328 8.18476 4.392412 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger02" "v_weapon.Bip01_R_Finger01" 1.188944 0.000002 0.000001 -0.150059 -7.975917 0.643951 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger1" "v_weapon.Bip01_R_Hand" 4.068597 0.143196 0.892414 6.878072 58.486842 8.599294 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger11" "v_weapon.Bip01_R_Finger1" 1.433461 -0.000001 -0.000002 -5.620945 78.602132 2.429054 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger12" "v_weapon.Bip01_R_Finger11" 1.019161 -0.000002 0.000001 -4.756925 63.367012 3.807763 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger2" "v_weapon.Bip01_R_Hand" 3.939287 0.020631 -0.014989 6.345849 62.890429 11.808889 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger21" "v_weapon.Bip01_R_Finger2" 1.691288 -0.000001 0 -4.790158 83.688389 2.614746 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger22" "v_weapon.Bip01_R_Finger21" 1.039844 0.000004 0.000001 -2.817293 56.519478 -6.022188 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger3" "v_weapon.Bip01_R_Hand" 3.582013 0.056838 -0.735426 12.258776 58.465245 20.620404 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger31" "v_weapon.Bip01_R_Finger3" 1.583914 -0.000003 0 -5.230704 83.165395 4.347032 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger32" "v_weapon.Bip01_R_Finger31" 1.0067 -0.000002 0.000001 11.931046 57.998053 1.304796 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger4" "v_weapon.Bip01_R_Hand" 3.126528 0.227897 -1.440081 12.852133 55.150971 23.766287 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger41" "v_weapon.Bip01_R_Finger4" 1.246395 -0.000002 0 -1.95734 75.353803 4.592545 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger42" "v_weapon.Bip01_R_Finger41" 0.682894 0.000003 0 7.11413 50.501644 -3.893763 0 0 0 0 0 0
$definebone "detonator" "v_weapon.Bip01_R_Hand" 3.473466 0.908466 1.004023 6.749046 97.520513 33.857965 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_ForeTwist" "v_weapon.Bip01_R_UpperArm" 11.576892 -0.000003 0.000004 0.000001 -54.704007 30.846443 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.773741 -0.000002 0 8.733941 -8.167741 -63.696753 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Forearm" "v_weapon.Bip01_L_UpperArm" 11.576883 -0.000008 0 -0.000003 -78.287759 -0.000002 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Hand" "v_weapon.Bip01_L_Forearm" 10.295582 0.00001 -0.00001 3.015705 5.957093 -118.900658 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger0" "v_weapon.Bip01_L_Hand" 1.231168 0.348996 -1.249105 38.761621 41.122425 106.986254 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger01" "v_weapon.Bip01_L_Finger0" 1.611104 0.000001 -0.000002 -0.000005 13.959948 -0.000008 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger02" "v_weapon.Bip01_L_Finger01" 1.188944 0 -0.000002 0.037414 34.211246 -0.66017 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger1" "v_weapon.Bip01_L_Hand" 4.290792 0.112071 -0.897963 2.41399 35.74683 -0.475374 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger11" "v_weapon.Bip01_L_Finger1" 1.433459 0.000004 0 1.865091 38.814446 -3.24391 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger12" "v_weapon.Bip01_L_Finger11" 1.019162 -0.000001 0 1.541654 33.252633 -3.409384 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger2" "v_weapon.Bip01_L_Hand" 4.264507 0.004033 0.013414 4.3244 39.709634 -4.277463 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger21" "v_weapon.Bip01_L_Finger2" 1.691287 0.000004 0.000002 1.467172 36.779476 -3.13218 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger22" "v_weapon.Bip01_L_Finger21" 1.039841 0 -0.000001 1.259011 33.029754 -3.22145 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger3" "v_weapon.Bip01_L_Hand" 3.58201 0.056837 0.735425 0.978673 18.417554 -9.878759 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger31" "v_weapon.Bip01_L_Finger3" 1.583913 -0.000001 0.000001 -0.848492 41.251235 -4.359627 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger32" "v_weapon.Bip01_L_Finger31" 1.006701 0.000001 0.000001 -2.609537 16.314279 -3.595075 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger4" "v_weapon.Bip01_L_Hand" 3.126529 0.2279 1.440083 0.304649 13.027169 -13.460717 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger41" "v_weapon.Bip01_L_Finger4" 1.246394 -0.000001 0.000002 -0.567568 20.920234 -5.053364 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger42" "v_weapon.Bip01_L_Finger41" 0.682894 -0.000002 0 -0.15762 25.540272 -5.082582 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_ForeTwist" "v_weapon.Bip01_L_UpperArm" 11.576883 -0.000006 -0.000001 -0.000003 -78.28769 -60.960935 0 0 0 0 0 0
$definebone "cam_driver" "" 0 0 0 0 -90.000003 0 0 0 0 0 0 0
$definebone "breachcharge" "" 3.414883 -12.481552 -3.102831 -9.013028 18.285605 7.968525 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 "v_weapon.Bip01_L_Hand" position
$bonesaveframe "cam_driver" position
$bonesaveframe "breachcharge" position

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

$sequence "idle_empty" {
	"v_breachcharge_anims\idle_empty.smd"
	activity "ACT_VM_EMPTY_IDLE" -1
	fadein 0.2
	fadeout 0.2
	fps 30
	loop
}

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

$sequence "deploy_empty" {
	"v_breachcharge_anims\deploy_empty.smd"
	activity "ACT_VM_EMPTY_DRAW" -1
	{ event 5004 0 "HEGrenade.Draw" }
	fadein 0.2
	fadeout 0.2
	snap
	fps 30
}

$sequence "fire" {
	"v_breachcharge_anims\fire.smd"
	activity "ACT_VM_PRIMARYATTACK" -1
	fadein 0.2
	fadeout 0.2
	snap
	fps 20
}

$sequence "fire_to_empty" {
	"v_breachcharge_anims\fire_to_empty.smd"
	activity "ACT_VM_EMPTY_FIRE" -1
	fadein 0.2
	fadeout 0.2
	snap
	fps 20
}

$sequence "detonate" {
	"v_breachcharge_anims\detonate.smd"
	activity "ACT_VM_HITRIGHT" -1
	fadein 0.2
	fadeout 0.2
	snap
	fps 20
}

$sequence "detonate_empty" {
	"v_breachcharge_anims\detonate_empty.smd"
	activity "ACT_VM_HITRIGHT2" -1
	fadein 0.2
	fadeout 0.2
	snap
	fps 20
}

$KeyValues
{
	qc_path 
	{
		"value" "models\weapons\v_models\breachcharge\v_breachcharge.qc"
	}
}
