
$modelname "weapons\v_knife_gg.mdl"

$bodygroup "knife"
{
	studio "v_knife_gg_knife_t_model.smd"
	studio "v_knife_gg_knife_ct_model.smd"
}


$surfaceprop "default"

$contents "solid"

$illumposition 1.971 -14.989 -7.573

$cdmaterials "models\weapons\v_models\knife_t\gg\"
$cdmaterials "models\weapons\v_models\knife_ct\gg\"

$cbox 0 0 0 0 0 0

$bbox 1.374 -11.713 -18.996 28.603 15.655 3.85

$definebone "v_weapon" "" 0 0 0 0 0 89.999983 0 0 0 0 0 0
$definebone "v_weapon.knife" "v_weapon" 0 0 0 0 0 0 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Forearm" "" 10.386484 -9.222388 -11.452826 24.176928 157.283849 -55.457739 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Hand" "v_weapon.Bip01_L_Forearm" 10.29558 -0.000001 0.000002 -16.802506 -9.704702 -35.941415 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger0" "v_weapon.Bip01_L_Hand" 1.149522 0.416496 -1.414117 36.874532 22.036818 97.174735 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger01" "v_weapon.Bip01_L_Finger0" 1.263878 0 0 0.371956 27.281389 -0.535712 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger02" "v_weapon.Bip01_L_Finger01" 1.188943 0 -0.000001 0.118366 12.298027 -0.650535 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger1" "v_weapon.Bip01_L_Hand" 3.773755 0.133213 -0.970574 10.174411 2.881117 1.877351 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger11" "v_weapon.Bip01_L_Finger1" 1.433458 -0.000005 0 0.755559 25.921524 -2.020368 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger12" "v_weapon.Bip01_L_Finger11" 1.019161 0.000001 0 0.755618 25.921753 -2.020369 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger2" "v_weapon.Bip01_L_Hand" 3.799514 0.014949 -0.039959 -0.681248 15.845658 -1.915401 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger21" "v_weapon.Bip01_L_Finger2" 1.774881 0.000001 0 0.513086 26.070093 -1.29357 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger22" "v_weapon.Bip01_L_Finger21" 1.008844 -0.000001 0 0.513029 26.070216 -1.293514 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger3" "v_weapon.Bip01_L_Hand" 3.632765 0.059052 0.757494 -10.648822 26.329124 -16.119255 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger31" "v_weapon.Bip01_L_Finger3" 1.500135 -0.000002 0 0.377868 24.372588 -0.981883 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger32" "v_weapon.Bip01_L_Finger31" 0.905665 0 0 0.37787 24.372707 -0.981881 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger4" "v_weapon.Bip01_L_Hand" 3.32333 0.23374 1.479076 -25.74311 35.621185 -22.8687 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger41" "v_weapon.Bip01_L_Finger4" 0.963099 0.000003 -0.000001 0.523512 31.481052 -1.033159 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_Finger42" "v_weapon.Bip01_L_Finger41" 0.682894 0.000001 0 0.523398 31.481165 -1.0331 0 0 0 0 0 0
$definebone "v_weapon.Bip01_L_ForeTwist" "" 10.386484 -9.222388 -11.452826 24.176928 157.283849 -7.240296 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Forearm" "" -4.697148 -3.206418 -11.190982 -3.190916 -25.253172 -125.911888 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Hand" "v_weapon.Bip01_R_Forearm" 10.29558 -0.000001 0 -30.00442 -41.000058 20.35679 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger0" "v_weapon.Bip01_R_Hand" 1.149522 0.416496 1.414116 -12.175178 49.26749 -115.717353 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger01" "v_weapon.Bip01_R_Finger0" 1.263877 0.000001 0 -0.249233 14.965035 0.60275 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger02" "v_weapon.Bip01_R_Finger01" 1.188945 0.000002 0.000001 -0.263044 50.667805 0.259669 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger1" "v_weapon.Bip01_R_Hand" 3.773757 0.133214 0.970575 6.528797 64.496589 7.543395 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger11" "v_weapon.Bip01_R_Finger1" 1.43346 -0.000001 0 -1.544641 80.980315 4.699803 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger12" "v_weapon.Bip01_R_Finger11" 1.019162 0.000004 -0.000001 -0.488506 67.723724 6.373808 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger2" "v_weapon.Bip01_R_Hand" 3.799516 0.014955 0.039958 2.160223 96.819278 3.535556 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger21" "v_weapon.Bip01_R_Finger2" 1.774879 0 0 -5.283992 85.980287 1.117781 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger22" "v_weapon.Bip01_R_Finger21" 1.008848 0 0 -2.087917 24.513539 5.856714 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger3" "v_weapon.Bip01_R_Hand" 3.632764 0.059047 -0.757493 -2.810759 107.1469 -0.667435 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger31" "v_weapon.Bip01_R_Finger3" 1.500136 0 -0.000001 -1.841031 49.026514 6.756491 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger32" "v_weapon.Bip01_R_Finger31" 0.905664 -0.000002 0.000002 -2.986602 58.99356 6.335651 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger4" "v_weapon.Bip01_R_Hand" 3.32333 0.233747 -1.479074 -6.568274 111.807213 3.381543 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger41" "v_weapon.Bip01_R_Finger4" 0.963099 0 0 3.145997 8.059973 3.476767 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_Finger42" "v_weapon.Bip01_R_Finger41" 0.682896 0 -0.000001 -2.589944 83.632416 3.908429 0 0 0 0 0 0
$definebone "v_weapon.Bip01_R_ForeTwist" "" -4.697148 -3.206418 -11.190982 -3.190916 -25.253172 146.735919 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"


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

$bonesaveframe "v_weapon" position
$bonesaveframe "v_weapon.knife" 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

$sequence "draw" {
	"v_knife_gg_anims\draw.smd"
	activity "ACT_VM_DRAW" 1
	{ event 5004 0 "Weapon_Knife.Deploy" }
	fadein 0.2
	fadeout 0.2
	snap
	fps 30
}

$sequence "idle1" {
	"v_knife_gg_anims\idle1.smd"
	activity "ACT_VM_IDLE" 3
	fadein 0.2
	fadeout 0.2
	snap
	fps 30
}

$sequence "idle2" {
	"v_knife_gg_anims\idle2.smd"
	activity "ACT_VM_IDLE" 1
	fadein 0.2
	fadeout 0.2
	snap
	fps 30
}

$sequence "light_miss1" {
	"v_knife_gg_anims\light_miss1.smd"
	activity "ACT_VM_MISSCENTER" 1
	fadein 0.2
	fadeout 0.2
	snap
	fps 30
}

$sequence "light_miss2" {
	"v_knife_gg_anims\light_miss2.smd"
	activity "ACT_VM_MISSCENTER" 1
	fadein 0.2
	fadeout 0.2
	snap
	fps 30
}

$sequence "light_hit1" {
	"v_knife_gg_anims\light_hit1.smd"
	activity "ACT_VM_HITCENTER" 1
	fadein 0.2
	fadeout 0.2
	snap
	fps 30
}

$sequence "light_hit2" {
	"v_knife_gg_anims\light_hit2.smd"
	activity "ACT_VM_HITCENTER" 1
	fadein 0.2
	fadeout 0.2
	snap
	fps 30
}

$sequence "light_backstab" {
	"v_knife_gg_anims\light_backstab.smd"
	activity "ACT_VM_SWINGHIT" 1
	fadein 0.2
	fadeout 0.2
	snap
	fps 30
}

$sequence "light_backstab2" {
	"v_knife_gg_anims\light_backstab2.smd"
	activity "ACT_VM_SWINGHIT" 1
	fadein 0.2
	fadeout 0.2
	snap
	fps 30
}

$sequence "heavy_miss1" {
	"v_knife_gg_anims\heavy_miss1.smd"
	activity "ACT_VM_MISSCENTER2" 1
	fadein 0.2
	fadeout 0.2
	snap
	fps 30
}

$sequence "heavy_hit1" {
	"v_knife_gg_anims\heavy_hit1.smd"
	activity "ACT_VM_HITCENTER2" 1
	fadein 0.2
	fadeout 0.2
	snap
	fps 30
}

$sequence "heavy_backstab" {
	"v_knife_gg_anims\heavy_backstab.smd"
	activity "ACT_VM_SWINGHARD" 1
	fadein 0.2
	fadeout 0.2
	snap
	fps 30
}
