
$modelname "weapons\v_eq_molotov.mdl"

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


$surfaceprop "default"

$contents "solid"

$illumposition 0 0 0

$mostlyopaque

$cdmaterials "models\weapons\v_models\eq_molotov\"

$attachment "__illumPosition" "v_weapon.Bip01_R_Hand" 0 0 0 rotate 0 0 0
$attachment "Wick" "v_weapon.jiggle_rag_up3" -0.14 -0.25 0.98 rotate 0 -90 -163

$cbox 0 0 0 0 0 0

$bbox -11.894 -15.666 -171.954 29.473 10.658 4.459

$definebone "v_weapon" "" 0 0 0 0 0 89.999983 0 0 0 0 0 0
$definebone "v_weapon.molotov_Parent" "v_weapon" 10.431919 0 0 0 0 0 0 0 0 0 0 0
$definebone "v_weapon.jiggle_rag_up0" "v_weapon.molotov_Parent" 0.012893 8.012963 0 0 145.475995 89.999983 0 0 0 0 0 0
$definebone "v_weapon.jiggle_rag_up1" "v_weapon.jiggle_rag_up0" -0.256007 0 0.840426 -67.328488 180.000007 -180.000007 0 0 0 0 0 0
$definebone "v_weapon.jiggle_rag_up2" "v_weapon.jiggle_rag_up1" 0.025143 0 2.053012 -25.126605 0 0 0 0 0 0 0 0
$definebone "v_weapon.jiggle_rag_up3" "v_weapon.jiggle_rag_up2" -0.00991 0 2.089445 8.892822 0 0 0 0 0 0 0 0
$definebone "v_weapon.lighter_parent" "v_weapon" -9.989019 1.318486 0 0 0 -89.999983 0 0 0 0 0 0
$definebone "v_weapon.lighter_wheel" "v_weapon.lighter_parent" -0.000002 0.573622 1.378426 0 0 0 0 0 0 0 0 0
$definebone "v_weapon.lighter_lever" "v_weapon.lighter_parent" -0.000002 -0.825585 1.150688 0 0 0 0 0 0 0 0 0
$definebone "v_weapon.lighter_hinge" "v_weapon.lighter_parent" -0.000004 -1.031418 0.744264 0 0 0 0 0 0 0 0 0
$definebone "v_weapon.lighter_flame1" "v_weapon.lighter_parent" 0 0.103633 1.820183 0 0 0 0 0 0 0 0 0
$definebone "v_weapon.lighter_flame2" "v_weapon.lighter_flame1" 0.000001 -0.000668 0.281699 0 0 0 0 0 0 0 0 0
$definebone "v_weapon.lighter_flame3" "v_weapon.lighter_flame2" -0.000001 0.000669 0.289432 0 0 0 0 0 0 0 0 0
$definebone "v_weapon.lighter_flame4" "v_weapon.lighter_flame3" -0.000001 0 0.354102 0 0 0 0 0 0 0 0 0
$definebone "v_weapon.lighter_flame5" "v_weapon.lighter_flame4" 0.000001 0 0.276737 0 0 0 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Forearm" "" 10.658447 -7.290952 -17.955114 -39.576715 -105.931187 -56.289666 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Hand" "v_weapon.Bip01_L_Forearm" 10.29558 -0.000002 0 0.975176 6.831721 -147.308822 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger0" "v_weapon.Bip01_L_Hand" 1.149523 0.416494 -1.414119 30.503526 16.52817 98.489969 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger01" "v_weapon.Bip01_L_Finger0" 1.263878 0.000001 0 -0.000001 13.322302 -0.000003 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger02" "v_weapon.Bip01_L_Finger01" 1.188944 -0.000001 -0.000002 0 0.112189 -0.000003 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger1" "v_weapon.Bip01_L_Hand" 3.773756 0.133215 -0.970575 0.21308 24.750688 6.121491 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger11" "v_weapon.Bip01_L_Finger1" 1.433457 0.000002 0 0.794054 39.695605 -0.99614 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger12" "v_weapon.Bip01_L_Finger11" 1.01916 -0.000003 -0.000001 4.196221 58.666975 -3.186912 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger2" "v_weapon.Bip01_L_Hand" 3.799515 0.014954 -0.039959 -6.503422 62.567682 0.108176 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger21" "v_weapon.Bip01_L_Finger2" 1.77488 -0.000003 0.000002 7.167643 59.550016 -16.672792 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger22" "v_weapon.Bip01_L_Finger21" 1.008846 0 -0.000001 0 82.652209 -0.000001 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger3" "v_weapon.Bip01_L_Hand" 3.632766 0.059048 0.757494 -10.634164 77.530127 -25.373781 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger31" "v_weapon.Bip01_L_Finger3" 1.500138 0 -0.000001 2.353935 63.622434 -2.398466 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger32" "v_weapon.Bip01_L_Finger31" 0.905664 0 -0.000001 -1.160631 95.841748 -0.777279 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger4" "v_weapon.Bip01_L_Hand" 3.323332 0.233746 1.479074 1.773814 94.525372 -24.319082 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger41" "v_weapon.Bip01_L_Finger4" 0.963099 0 0.000001 0.015754 37.602026 -2.759139 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger42" "v_weapon.Bip01_L_Finger41" 0.682898 0.000001 -0.000001 2.732098 119.231594 -0.385945 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_ForeTwist" "" 10.658447 -7.290952 -17.955114 -39.576695 -105.931222 -110.264273 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Forearm" "" -11.376404 -7.981281 -16.262661 -40.944078 -79.546365 -124.722944 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Hand" "v_weapon.Bip01_R_Forearm" 10.295581 0 0 3.094948 -1.775371 97.758798 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger0" "v_weapon.Bip01_R_Hand" 1.149521 0.416495 1.414118 -33.912573 44.555899 -87.797595 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger01" "v_weapon.Bip01_R_Finger0" 1.263878 0.000001 0 -18.984902 3.766973 -7.367492 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger02" "v_weapon.Bip01_R_Finger01" 1.188944 0 0 -6.952732 29.432324 19.866336 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger1" "v_weapon.Bip01_R_Hand" 3.773753 0.133216 0.970575 -4.596498 4.546766 10.453218 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger11" "v_weapon.Bip01_R_Finger1" 1.433457 0 0 -0.617075 30.108936 1.114461 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger12" "v_weapon.Bip01_R_Finger11" 1.019163 -0.000002 -0.000002 -0.762319 37.889641 1.020667 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger2" "v_weapon.Bip01_R_Hand" 3.799512 0.014955 0.039959 0.813881 27.063838 14.04606 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger21" "v_weapon.Bip01_R_Finger2" 1.774879 -0.000001 0.000002 -0.795784 33.11634 1.877117 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger22" "v_weapon.Bip01_R_Finger21" 1.008847 0 0.000002 -1.020093 40.163135 1.765334 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger3" "v_weapon.Bip01_R_Hand" 3.632764 0.059048 -0.757492 0.273812 25.174452 15.104088 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger31" "v_weapon.Bip01_R_Finger3" 1.500135 0 0.000002 -0.734877 31.802314 3.278919 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger32" "v_weapon.Bip01_R_Finger31" 0.905666 -0.000003 -0.000004 -1.110735 38.466383 3.171431 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger4" "v_weapon.Bip01_R_Hand" 3.323328 0.233744 -1.479074 -1.445922 17.766103 22.248413 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger41" "v_weapon.Bip01_R_Finger4" 0.963099 0 -0.000002 0.635063 23.978114 2.685164 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger42" "v_weapon.Bip01_R_Finger41" 0.682893 -0.000001 -0.000002 -0.240699 42.276494 2.748701 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_ForeTwist" "" -11.376404 -7.981281 -16.262661 -40.944136 -79.546365 -117.454516 0 0 0 0 0 0

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

$jigglebone "v_weapon.jiggle_rag_up0"
{
	is_flexible
	{
		length 30
		tip_mass 0
		pitch_stiffness 300
		pitch_damping 10
		yaw_stiffness 300
		yaw_damping 10
		along_stiffness 100
		along_damping 0
		pitch_constraint -20 20
		pitch_friction 0
		pitch_bounce 0
		yaw_constraint 0 20
		yaw_friction 0
		yaw_bounce 0
		angle_constraint 20
	}
}
$jigglebone "v_weapon.jiggle_rag_up1"
{
	is_flexible
	{
		length 15
		tip_mass 0
		pitch_stiffness 300
		pitch_damping 8
		yaw_stiffness 300
		yaw_damping 8
		along_stiffness 100
		along_damping 0
		pitch_constraint -50.000001 50.000001
		pitch_friction 0
		pitch_bounce 0
		yaw_constraint 0 50.000001
		yaw_friction 0
		yaw_bounce 0
		angle_constraint 50.000001
	}
}
$jigglebone "v_weapon.jiggle_rag_up2"
{
	is_flexible
	{
		length 15
		tip_mass 0
		pitch_stiffness 100
		pitch_damping 6
		yaw_stiffness 100
		yaw_damping 6
		along_stiffness 100
		along_damping 0
		pitch_constraint -90.000003 90.000003
		pitch_friction 0
		pitch_bounce 0
		yaw_constraint -5 90.000003
		yaw_friction 0
		yaw_bounce 0
		angle_constraint 90.000003
	}
}
$jigglebone "v_weapon.jiggle_rag_up3"
{
	is_flexible
	{
		length 15
		tip_mass 0
		pitch_stiffness 100
		pitch_damping 6
		yaw_stiffness 100
		yaw_damping 6
		along_stiffness 100
		along_damping 0
		pitch_constraint -90.000003 90.000003
		pitch_friction 0
		pitch_bounce 0
		yaw_constraint -5 90.000003
		yaw_friction 0
		yaw_bounce 0
		angle_constraint 90.000003
	}
}
$jigglebone "v_weapon.lighter_flame2"
{
	is_flexible
	{
		length 10
		tip_mass 0
		pitch_stiffness 1000
		pitch_damping 10
		yaw_stiffness 1000
		yaw_damping 10
		along_stiffness 100
		along_damping 0
		angle_constraint 10
	}
}
$jigglebone "v_weapon.lighter_flame3"
{
	is_flexible
	{
		length 5
		tip_mass 0
		pitch_stiffness 1000
		pitch_damping 10
		yaw_stiffness 1000
		yaw_damping 10
		along_stiffness 100
		along_damping 0
		angle_constraint 39.999999
	}
}
$jigglebone "v_weapon.lighter_flame4"
{
	is_flexible
	{
		length 5
		tip_mass 0
		pitch_stiffness 1000
		pitch_damping 10
		yaw_stiffness 1000
		yaw_damping 10
		along_stiffness 100
		along_damping 0
		angle_constraint 90.000003
	}
}
$jigglebone "v_weapon.lighter_flame5"
{
	is_flexible
	{
		length 5
		tip_mass 0
		pitch_stiffness 1000
		pitch_damping 10
		yaw_stiffness 1000
		yaw_damping 10
		along_stiffness 100
		along_damping 0
		angle_constraint 90.000003
	}
}

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

$bonesaveframe "v_weapon" position
$bonesaveframe "v_weapon.molotov_Parent" position
$bonesaveframe "v_weapon.lighter_parent" position
$bonesaveframe "v_weapon.lighter_flame1" 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.Bip01_R_ForeTwist" position

$sectionframes 30 30

$poseparameter "throwcharge" 0 1 loop 0

$weightlist "weights_throwcharge_blend" {
	 "v_weapon" 0
	 "v_weapon.molotov_Parent" 0
	 "v_weapon.jiggle_rag_up0" 0
	 "v_weapon.jiggle_rag_up1" 0
	 "v_weapon.jiggle_rag_up2" 0
	 "v_weapon.jiggle_rag_up3" 0
	 "v_weapon.lighter_parent" 1
	 "v_weapon.lighter_wheel" 1
	 "v_weapon.lighter_lever" 1
	 "v_weapon.lighter_hinge" 1
	 "v_weapon.lighter_flame1" 1
	 "v_weapon.lighter_flame2" 1
	 "v_weapon.lighter_flame3" 1
	 "v_weapon.lighter_flame4" 1
	 "v_weapon.lighter_flame5" 1
	 "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.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_molotov_anims\throwcharge_high.smd" {
	fps 30
	weightlist "weights_throwcharge_blend"
}

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

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

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

$sequence "pullpin" {
	"v_eq_molotov_anims\pullpin.smd"
	activity "ACT_VM_PULLPIN" 1
	fadein 0.2
	fadeout 0.2
	blendlayer "throwcharge_blend" 22 33 34 35
	fps 30
}

$sequence "throw" {
	"v_eq_molotov_anims\throw.smd"
	activity "ACT_VM_THROW" 1
	{ event 3005 0 "" }
	fadein 0.2
	fadeout 0.2
	snap
	fps 20
}

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

$sequence "underhand" {
	"v_eq_molotov_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_molotov\v_molotov.qc"
	}
}
