// Created by Crowbar 0.56

$modelname "weapons/v_mp5.mdl"

$bodygroup "studio"
{
	studio "v_mp5_M4A12.smd"
}
$bodygroup "bullets"
{
	studio "v_mp5_bullets.smd"
}
$bodygroup "arms"
{
	studio "v_mp5_hev_standardrig_forearms.smd"
	studio "v_mp5_marine_standardrig.smd"
	studio "v_mp5_sci_standardrig.smd"
	studio "v_mp5_grd_standardrig.smd"
	studio "v_mp5_zomb_standardrig.smd"
	studio "v_mp5_zomb_guard_standardrig.smd"
	studio "v_mp5_gman_standardrig.smd"
}
$bodygroup "tacticalmag"
{
	studio "v_mp5_tacticalmag.smd"
}


$surfaceprop "default"

$contents "solid"

$illumposition 10.115 0.938 -14.317

$cdmaterials "models\weapons\m4a1\"
$cdmaterials "models\weapons\TiggM4M203\"
$cdmaterials "models\Weapons\V_hand\"
$cdmaterials "models\humans\hev_suit\"

$attachment "muzzle" "valvebiped.muzzle" 0 0 0 rotate -90 0 0
$attachment "grenade" "valvebiped.grenade" 0 0 0 rotate -90 0 0
$attachment "ejectbrass" "valvebiped.eject" 0 0 0 rotate 0 180 180

$cbox 0 0 0 0 0 0

$bbox -24.442 -19.917 -21.704 36.239 10.008 0.716

$definebone "Base" "" -5.221884 -11.788711 -3.948706 0 0 89.999983 0 0 0 0 0 0
$definebone "Trigger" "Base" 0.000494 -2.176322 1.577689 0 0 0 0 0 0 0 0 0
$definebone "M203_Trigger" "Base" 0.000494 -3.336321 7.597689 0 0 0 0 0 0 0 0 0
$definebone "FireSelector" "Base" 0.662767 -1.756321 -0.192311 0 0 0 0 0 0 0 0 0
$definebone "Bolt" "Base" 0.040493 0.933679 -2.341909 0 0 0 0 0 0 0 0 0
$definebone "Bolt_Cover" "Bolt" -0.003939 -1.08845 5.272186 0 0 0 0 0 0 0 0 0
$definebone "valvebiped.muzzle" "Base" 0.034082 -0.024433 26.323065 0 0 0 0 0 0 0 0 0
$definebone "valvebiped.grenade" "Base" 0.01001 -2.965963 19.958691 0 0 0 0 0 0 0 0 0
$definebone "valvebiped.eject" "Base" -0.656996 0.158384 4.461008 0 0 0 0 0 0 0 0 0
$definebone "MagRelease" "Base" -0.784923 -1.914423 2.92337 0 0 0 0 0 0 0 0 0
$definebone "DustCover" "Base" -0.843221 -0.372204 2.229376 0 0 0 0 0 0 0 0 0
$definebone "Mag" "" -4.947499 -17.177042 -9.695297 0 0 89.999983 0 0 0 0 0 0
$definebone "Bullets" "Mag" 0 4.877284 -0.958126 0 0 0 0 0 0 0 0 0
$definebone "FirstBullet" "Bullets" -0.222366 0.141669 0.005705 0 0 0 0 0 0 0 0 0
$definebone "R_Arm" "" -12.739846 13.313725 -6.303693 -0.049733 -0.004125 -173.740111 0 0 0 0 0 0
$definebone "R_Forearm" "R_Arm" 0.000001 19.038427 0 0.001989 -179.999938 -176.171549 0 0 0 0 0 0
$definebone "R_Wrist" "R_Forearm" 0.000001 13.344545 0 -0.047842 0.001891 2.430773 0 0 0 0 0 0
$definebone "R_Index1" "R_Wrist" 0.275794 4.925514 1.274154 -0.362912 15.605654 2.096453 0 0 0 0 0 0
$definebone "R_Index2" "R_Index1" -0.000002 1.372787 0 0.655922 22.647821 -0.021028 0 0 0 0 0 0
$definebone "R_Index3" "R_Index2" 0.000004 1.079137 0 1.739041 20.191148 -1.809229 0 0 0 0 0 0
$definebone "R_Middle1" "R_Wrist" 0.430869 5.193077 0.359353 -0.169939 33.697022 -1.493128 0 0 0 0 0 0
$definebone "R_Middle2" "R_Middle1" 0.000002 1.400881 -0.000001 3.887346 22.31333 -0.892439 0 0 0 0 0 0
$definebone "R_Middle3" "R_Middle2" 0.000002 0.980171 0.000001 -0.514516 22.874705 -0.576797 0 0 0 0 0 0
$definebone "R_Pinky1" "R_Wrist" 0.244223 5.202816 -1.526599 -1.965303 38.518005 4.7528 0 0 0 0 0 0
$definebone "R_Pinky2" "R_Pinky1" -0.000004 1.039412 0.000001 3.99151 31.516805 2.923918 0 0 0 0 0 0
$definebone "R_Pinky3" "R_Pinky2" -0.000002 0.850977 -0.000002 2.332511 6.856077 -2.396855 0 0 0 0 0 0
$definebone "R_Ring1" "R_Wrist" 0.474686 5.374128 -0.572353 -11.399453 40.439133 -0.827007 0 0 0 0 0 0
$definebone "R_Ring2" "R_Ring1" -0.000002 1.249171 0.000002 11.055392 27.07346 6.906493 0 0 0 0 0 0
$definebone "R_Ring3" "R_Ring2" 0 0.837886 0.000001 -1.19731 5.744875 -1.124945 0 0 0 0 0 0
$definebone "R_Thumb1" "R_Wrist" -0.047859 1.42016 1.351628 -11.822699 15.443963 33.976114 0 0 0 0 0 0
$definebone "R_Thumb2" "R_Thumb1" -0.000001 1.900531 0 8.163217 8.403919 -13.753571 0 0 0 0 0 0
$definebone "R_Thumb3" "R_Thumb2" -0.000004 1.470466 0 2.757188 -1.918719 -7.540303 0 0 0 0 0 0
$definebone "L_Arm" "" 12.739846 13.313725 -6.303693 0.019882 0.001604 -173.740111 0 0 0 0 0 0
$definebone "L_Forearm" "L_Arm" 0 19.038425 0.000002 0.001989 -179.999938 -176.171549 0 0 0 0 0 0
$definebone "L_Wrist" "L_Forearm" -0.000001 13.344544 0.000001 0.021944 -0.000859 2.430774 0 0 0 0 0 0
$definebone "L_Index1" "L_Wrist" -0.275086 4.918118 1.267808 0.405253 -19.13324 2.066716 0 0 0 0 0 0
$definebone "L_Index2" "L_Index1" -0.000002 1.433739 0.000001 -1.417726 -22.293499 0.551988 0 0 0 0 0 0
$definebone "L_Index3" "L_Index2" -0.000002 0.914243 0 -1.096869 -9.70476 -1.711597 0 0 0 0 0 0
$definebone "L_Middle1" "L_Wrist" -0.352765 5.251541 0.361825 -0.212223 -34.058216 -1.9001 0 0 0 0 0 0
$definebone "L_Middle2" "L_Middle1" 0 1.22943 -0.000002 -2.97789 -21.180181 0.753325 0 0 0 0 0 0
$definebone "L_Middle3" "L_Middle2" 0 1.015237 0 0.114134 -19.770936 -0.545514 0 0 0 0 0 0
$definebone "L_Ring1" "L_Wrist" -0.287953 5.259697 -0.590364 -0.02882 -39.217987 0.732183 0 0 0 0 0 0
$definebone "L_Ring2" "L_Ring1" -0.000004 0.965162 -0.000001 -0.044175 -5.729407 -0.189362 0 0 0 0 0 0
$definebone "L_Ring3" "L_Ring2" -0.000002 0.91045 0.000001 -0.253935 -28.086908 -0.564077 0 0 0 0 0 0
$definebone "L_Pinky1" "L_Wrist" -0.160565 5.112282 -1.53251 1.345362 -34.995287 6.491325 0 0 0 0 0 0
$definebone "L_Pinky2" "L_Pinky1" -0.000004 1.006827 0.000001 -4.529058 -28.452226 -2.493397 0 0 0 0 0 0
$definebone "L_Pinky3" "L_Pinky2" 0 0.945396 0.000001 -2.142403 -15.84755 0.45195 0 0 0 0 0 0
$definebone "L_Thumb1" "L_Wrist" 0.031597 1.406313 1.349238 15.052806 -17.400443 33.078115 0 0 0 0 0 0
$definebone "L_Thumb2" "L_Thumb1" 0 1.973111 0 -9.818834 -5.466194 -13.094151 0 0 0 0 0 0
$definebone "L_Thumb3" "L_Thumb2" -0.000002 1.467765 -0.000003 -1.513696 0.463404 -7.494919 0 0 0 0 0 0
$definebone "TacticalMag" "" -5.187528 -17.185596 -9.686596 0 0 89.999983 0 0 0 0 0 0


$sectionframes 30 137

$weightlist "weights_lhandfix" {
	 "Base" 0
	 "Trigger" 0
	 "M203_Trigger" 0
	 "FireSelector" 0
	 "Bolt" 0
	 "Bolt_Cover" 0
	 "valvebiped.muzzle" 0
	 "valvebiped.grenade" 0
	 "valvebiped.eject" 0
	 "MagRelease" 0
	 "DustCover" 0
	 "Mag" 0
	 "Bullets" 0
	 "FirstBullet" 0
	 "R_Arm" 0
	 "R_Forearm" 0
	 "R_Wrist" 0
	 "R_Index1" 0
	 "R_Index2" 0
	 "R_Index3" 0
	 "R_Middle1" 0
	 "R_Middle2" 0
	 "R_Middle3" 0
	 "R_Pinky1" 0
	 "R_Pinky2" 0
	 "R_Pinky3" 0
	 "R_Ring1" 0
	 "R_Ring2" 0
	 "R_Ring3" 0
	 "R_Thumb1" 0
	 "R_Thumb2" 0
	 "R_Thumb3" 0
	 "L_Arm" 1
	 "L_Forearm" 1
	 "L_Wrist" 1
	 "L_Index1" 1
	 "L_Index2" 1
	 "L_Index3" 1
	 "L_Middle1" 1
	 "L_Middle2" 1
	 "L_Middle3" 1
	 "L_Ring1" 1
	 "L_Ring2" 1
	 "L_Ring3" 1
	 "L_Pinky1" 1
	 "L_Pinky2" 1
	 "L_Pinky3" 1
	 "L_Thumb1" 1
	 "L_Thumb2" 1
	 "L_Thumb3" 1
	 "TacticalMag" 0
}

$weightlist "weights_tacmagbegone" {
	 "Base" 0
	 "Trigger" 0
	 "M203_Trigger" 0
	 "FireSelector" 0
	 "Bolt" 0
	 "Bolt_Cover" 0
	 "valvebiped.muzzle" 0
	 "valvebiped.grenade" 0
	 "valvebiped.eject" 0
	 "MagRelease" 0
	 "DustCover" 0
	 "Mag" 0
	 "Bullets" 0
	 "FirstBullet" 0
	 "R_Arm" 0
	 "R_Forearm" 0
	 "R_Wrist" 0
	 "R_Index1" 0
	 "R_Index2" 0
	 "R_Index3" 0
	 "R_Middle1" 0
	 "R_Middle2" 0
	 "R_Middle3" 0
	 "R_Pinky1" 0
	 "R_Pinky2" 0
	 "R_Pinky3" 0
	 "R_Ring1" 0
	 "R_Ring2" 0
	 "R_Ring3" 0
	 "R_Thumb1" 0
	 "R_Thumb2" 0
	 "R_Thumb3" 0
	 "L_Arm" 0
	 "L_Forearm" 0
	 "L_Wrist" 0
	 "L_Index1" 0
	 "L_Index2" 0
	 "L_Index3" 0
	 "L_Middle1" 0
	 "L_Middle2" 0
	 "L_Middle3" 0
	 "L_Ring1" 0
	 "L_Ring2" 0
	 "L_Ring3" 0
	 "L_Pinky1" 0
	 "L_Pinky2" 0
	 "L_Pinky3" 0
	 "L_Thumb1" 0
	 "L_Thumb2" 0
	 "L_Thumb3" 0
	 "TacticalMag" 1
}

$animation "lhandfix_corrective" "v_mp5_anim_lhandfix_corrective.smd" {
	fps 30
}

$animation "draw2_corrective" "v_mp5_anim_draw2_corrective.smd" {
	fps 30
}

$sequence "lhandfix" {
	"v_mp5_anim_@lhandfix.smd"
	delta
	fadein 0.2
	fadeout 0.2
	hidden
	fps 30
	weightlist "weights_lhandfix"
}

$sequence "tacmagbegone" {
	"v_mp5_anim_@tacmagbegone.smd"
	delta
	fadein 0.2
	fadeout 0.2
	hidden
	fps 30
	weightlist "weights_tacmagbegone"
}

$sequence "idle1" {
	"v_mp5_anim_@idle1.smd"
	activity "ACT_VM_IDLE" 1
	fadein 0.2
	fadeout 0.2
	addlayer "lhandfix"
	node "Ready"
	fps 30
	loop
}

$sequence "idle2" {
	"v_mp5_anim_@idle2.smd"
	activity "ACT_VM_IDLE" 1
	fadein 0.2
	fadeout 0.2
	addlayer "lhandfix"
	node "Ready"
	fps 30
	loop
}

$sequence "idle_fidget" {
	"v_mp5_anim_@idle_fidget.smd"
	activity "ACT_VM_FIDGET" 1
	{ event AE_CL_PLAYSOUND 0 "weapon_mp5.IdleFidget" }
	fadein 0.2
	fadeout 0.2
	blendlayer "lhandfix" 0 0 6 12 spline
	blendlayer "lhandfix" 120 130 137 137 xfade spline
	fps 30
}

$sequence "grenade" {
	"v_mp5_anim_@grenade.smd"
	activity "ACT_VM_SECONDARYATTACK" 1
	fadein 0.2
	fadeout 0.2
	blendlayer "lhandfix" 26 36 50 50 xfade spline
	snap
	fps 50
}

$sequence "reload" {
	"v_mp5_anim_@reload.smd"
	activity "ACT_VM_RELOAD" 1
	{ event AE_CL_PLAYSOUND 0 "weapon_mp5.Reload" }
	{ event 3110 38 "" }
	fadein 0.2
	fadeout 0
	fps 30
}

$sequence "reload_long" {
	"v_mp5_anim_@reload_long.smd"
	activity "ACT_VM_RELOAD_LONG" 1
	{ event AE_CL_PLAYSOUND 0 "weapon_mp5.ReloadLong" }
	{ event AE_CLIENT_EJECT_CUSTOM 15 "9mmarclip-empty" }
	{ event 3110 55 "" }
	fadein 0.2
	fadeout 0.2
	fps 30
}

$sequence "fire1" {
	"v_mp5_anim_@fire1.smd"
	activity "ACT_VM_PRIMARYATTACK" 1
	{ event AE_MUZZLEFLASH 0 "0" }
	{ event AE_CLIENT_EJECT_CUSTOM 0 "mp5-primary-attack" }
	fadein 0.2
	fadeout 0.2
	addlayer "lhandfix"
	snap
	fps 30
}

$sequence "fire2" {
	"v_mp5_anim_@fire2.smd"
	activity "ACT_VM_PRIMARYATTACK" 1
	{ event AE_MUZZLEFLASH 0 "0" }
	{ event AE_CLIENT_EJECT_CUSTOM 0 "mp5-primary-attack" }
	fadein 0.2
	fadeout 0.2
	addlayer "lhandfix"
	snap
	fps 36
}

$sequence "fire3" {
	"v_mp5_anim_@fire3.smd"
	activity "ACT_VM_PRIMARYATTACK" 3
	{ event AE_MUZZLEFLASH 0 "0" }
	{ event AE_CLIENT_EJECT_CUSTOM 0 "mp5-primary-attack" }
	fadein 0.2
	fadeout 0.2
	addlayer "lhandfix"
	snap
	fps 36
}

$sequence "draw1" {
	"v_mp5_anim_@draw1.smd"
	activity "ACT_VM_DRAW" 2
	fadein 0.2
	fadeout 0.2
	addlayer "lhandfix"
	fps 36
}

$sequence "lhandfix_draw2" {
	"v_mp5_anim_@lhandfix_draw2.smd"
	delta
	fadein 0.2
	fadeout 0.2
	hidden
	fps 30
	weightlist "weights_lhandfix"
}

$sequence "draw2" {
	"v_mp5_anim_@draw2.smd"
	activity "ACT_VM_DRAW" 1
	fadein 0.2
	fadeout 0.2
	addlayer "lhandfix_draw2"
	fps 30
}

$sequence "draw_admire" {
	"v_mp5_anim_@draw_admire.smd"
	activity "ACT_VM_PICKUP" 1
	{ event AE_CL_PLAYSOUND 0 "weapon_mp5.DrawAdmire" }
	{ event 3005 160 "" }
	fadein 0.2
	fadeout 0.2
	blendlayer "lhandfix" 126 136 166 166 xfade spline
	fps 30
}

$sequence "holster" {
	"v_mp5_anim_@holster.smd"
	activity "ACT_VM_HOLSTER" 1
	fadein 0.2
	fadeout 0.2
	addlayer "lhandfix"
	fps 30
}

$sequence "reload_long2" {
	"v_mp5_anim_@reload_long2.smd"
	activity "ACT_VM_RELOAD_LONG" 1
	{ event AE_CL_PLAYSOUND 0 "weapon_mp5.ReloadLong" }
	{ event AE_CLIENT_EJECT_CUSTOM 15 "9mmarclip-empty" }
	{ event 3110 56 "" }
	fadein 0.2
	fadeout 0.2
	fps 30
}

$sequence "low_to_idle" {
	"v_mp5_anim_@low_to_idle.smd"
	activity "ACT_VM_IDLE_LOWERED_TO_IDLE" 1
	fadein 0.2
	fadeout 0.2
	transition "1" "0"
	fps 30
	loop
}

$sequence "idle_low" {
	"v_mp5_anim_@idle_low.smd"
	activity "ACT_VM_IDLE_LOWERED" 10
	fadein 0.2
	fadeout 0.2
	addlayer "lhandfix"
	node "1"
	fps 30
	loop
}

$sequence "idle_to_sprint" {
	"v_mp5_anim_@idle_to_sprint.smd"
	activity "ACT_VM_SPRINT_ENTER" 1
	fadein 0.2
	fadeout 0.5
	transition "0" "1"
	fps 26
}

$sequence "sprint_to_idle" {
	"v_mp5_anim_@sprint_to_idle.smd"
	activity "ACT_VM_SPRINT_LEAVE" 1
	fadein 0.2
	fadeout 0.2
	transition "1" "0"
	fps 30
}

$sequence "idle_sprint1" {
	"v_mp5_anim_@idle_sprint1.smd"
	activity "ACT_VM_SPRINT_IDLE" 1
	fadein 0.5
	fadeout 0.5
	node "1"
	fps 29
	loop
}

$sequence "idle_sprint2" {
	"v_mp5_anim_@idle_sprint2.smd"
	activity "ACT_VM_SPRINT_IDLE" 1
	fadein 0.5
	fadeout 0.5
	node "1"
	fps 29
	loop
}
