$modelname "weapons/tfa_pd2/snp/m95/c_m95.mdl"

$scale 40


$bodygroup "Bipod"
{
	studio "g_bipod.smd"
	blank
}
$bodygroup "BipodPin"
{
	studio "g_pin.smd"
	blank
}

$bodygroup "Pin"
{
	studio "g_pin.001.smd"
}


$bodygroup "Upper"
{
	studio "g_upper.smd"
}
$bodygroup "Lower"
{
	studio "g_lower.smd"
}

$bodygroup "Barrel"
{
	studio "g_medium.smd"
	studio "g_short.smd"
	studio "g_long.smd"
	studio "g_suppressed.smd"
}

$bodygroup "Bolt"
{
	studio "g_bolt.smd"
}
$bodygroup "BoltHandle"
{
	studio "g_bolt_handle.smd"
}

$bodygroup "Bullets"
{
	studio "g_bullet_m_2.smd"
	studio "g_bullet_m_1.smd"
	blank
}

$bodygroup "Mag"
{
	studio "g_clip.smd"
}

$bodygroup "Grip"
{
	studio "g_wpn_fps_upg_m4_g_standard.smd"
	blank
}


$surfaceprop "default"

$contents "solid"

$illumposition 0 0 0

$cdmaterials "models/weapons/tfa_pd2/snp/m95/"
$cdmaterials "models/weapons/tfa_pd2/ass/m4/"
$cdmaterials "models/weapons/tfa_pd2/shared/"

$attachment "camera" "eyeAim" 0 0 0 rotate 0 90 0
$attachment "muzzle" "muzzlePoint" 0 0 0 rotate -90 -0 -0
$attachment "shell" "ejectPoint" 0 0 0 rotate -45 145 90
$attachment "laser" "laserPoint" 0 0 0 rotate -90 180 90
$attachment "flash" "flashPoint" 0 0 0 rotate -90 180 90

$cbox 0 0 0 0 0 0

// DefineBones goes here
$bonemerge "LeftHandThumb1"
$bonemerge "LeftHandThumb2"
$bonemerge "LeftHandThumb3"
$bonemerge "LeftHandIndex1"
$bonemerge "LeftHandIndex2"
$bonemerge "LeftHandIndex3"
$bonemerge "LeftHandMiddle1"
$bonemerge "LeftHandMiddle2"
$bonemerge "LeftHandMiddle3"
$bonemerge "LeftHandRing1"
$bonemerge "LeftHandRing2"
$bonemerge "LeftHandRing3"
$bonemerge "LeftHandPinky1"
$bonemerge "LeftHandPinky2"
$bonemerge "LeftHandPinky3"
$bonemerge "LeftForeArm"
$bonemerge "LeftHand"
$bonemerge "LeftArm"
$bonemerge "RightHandThumb1"
$bonemerge "RightHandThumb2"
$bonemerge "RightHandThumb3"
$bonemerge "RightHandIndex1"
$bonemerge "RightHandIndex2"
$bonemerge "RightHandIndex3"
$bonemerge "RightHandMiddle1"
$bonemerge "RightHandMiddle2"
$bonemerge "RightHandMiddle3"
$bonemerge "RightHandRing1"
$bonemerge "RightHandRing2"
$bonemerge "RightHandRing3"
$bonemerge "RightHandPinky1"
$bonemerge "RightHandPinky2"
$bonemerge "RightHandPinky3"
$bonemerge "RightForeArm"
$bonemerge "RightHand"
$bonemerge "RightArm"

$bonemerge "aim"
$bonemerge "ejectPoint"
$bonemerge "muzzlePoint"
$bonemerge "laserPoint"
$bonemerge "flashPoint"
$bonemerge "a_o"
$bonemerge "a_g"
$bonemerge "a_fl"

// Base

$sequence "a_root" {
	"anims/a_root.smd"
	fps 30
	loop
}

$sequence "m95_idle_delta" { "anims/m95_idle.smd" }



// Anims
$sequence "m95_idle" {
    "anims/m95_idle.smd"
    activity "ACT_VM_IDLE" 1
	fps 30
	loop
}

$sequence "m95_recoil_delta" { "anims/m95_recoil.smd" hidden delta subtract "m95_idle_delta" 0 }
$sequence "m95_recoil" {
    "anims/m95_recoil_base.smd"
    activity "ACT_VM_PRIMARYATTACK" 1
    fadein 0.2
    fadeout 0.2
    snap
    fps 30
	addlayer "m95_recoil_delta"
}



$sequence "m95_recoil_zoom_delta" { "anims/m95_recoil_zoom.smd" hidden delta subtract "m95_idle_delta" 0 }
$sequence "m95_recoil_zoom" {
    "anims/m95_recoil_zoom_base.smd"
    activity "ACT_VM_PRIMARYATTACK_1" 1
    fadein 0.2
    fadeout 0.2
    snap
    fps 30
	addlayer "m95_recoil_zoom_delta"
}



$sequence "m95_equip_delta" { "anims/m95_equip.smd" hidden delta subtract "m95_idle" 0 }
$sequence "m95_equip" {
    "anims/m95_equip_base.smd"
    activity "ACT_VM_DRAW" 1
    fadein 0.2
    fadeout 0.2
    fps 30
	addlayer "m95_equip_delta"
	
}



$sequence "m95_unequip_delta" { "anims/m95_unequip.smd" hidden delta subtract "m95_idle" 0 }
$sequence "m95_unequip" {
    "anims/m95_unequip_base.smd"
    activity "ACT_VM_HOLSTER" 1
    fadein 0.2
    fadeout 0.2
    fps 30
	addlayer "m95_unequip_delta"
	
}



$sequence "m95_sprint_enter_delta" { "anims/m95_sprint_enter.smd" hidden delta subtract "m95_idle" 0 }
$sequence "m95_sprint_enter" {
    "anims/m95_sprint_enter_base.smd"
    fadein 0.2
    fadeout 0.2
    fps 30
	addlayer "m95_sprint_enter_delta"
	
}



$sequence "m95_sprint_delta" { "anims/m95_sprint.smd" hidden delta subtract "m95_idle" 0 }
$sequence "m95_sprint" {
    "anims/m95_sprint_base.smd"
    fadein 0.2
    fadeout 0.2
    fps 30
	loop
	addlayer "m95_sprint_delta"
	
}



$sequence "m95_sprint_exit_delta" { "anims/m95_sprint_exit.smd" hidden delta subtract "m95_idle" 0 }
$sequence "m95_sprint_exit" {
    "anims/m95_sprint_exit_base.smd"
    fadein 0.2
    fadeout 0.2
    fps 30
	addlayer "m95_sprint_exit_delta"
	
}



$sequence "m95_inspect_delta" { "anims/m95_inspect.smd" hidden delta subtract "m95_idle" 0 }
$sequence "m95_inspect" {
    "anims/m95_inspect_base.smd"
    activity "ACT_VM_FIDGET" 1
    fadein 0.2
    fadeout 0.2
    fps 30
	addlayer "m95_inspect_delta"
	
}


$sequence "m95_melee_delta" { "anims/m95_melee.smd" hidden delta subtract "m95_idle" 0 }
$sequence "m95_melee" {
    "anims/m95_melee_base.smd"
    activity "ACT_VM_HITCENTER" 1
    fadein 0.2
    fadeout 0.2
    fps 30
	addlayer "m95_melee_delta"
	
}



$sequence "m95_melee_miss_delta" { "anims/m95_melee_miss.smd" hidden delta subtract "m95_idle" 0 }
$sequence "m95_melee_miss" {
    "anims/m95_melee_miss_base.smd"
    activity "ACT_VM_MISSCENTER" 1
    fadein 0.2
    fadeout 0.2
    fps 30
	addlayer "m95_melee_miss_delta"
	
}



$sequence "m95_reload_not_empty_delta" { "anims/m95_reload_not_empty.smd" hidden delta subtract "m95_idle" 0 }
$sequence "m95_reload_not_empty" {
    "anims/m95_reload_not_empty_base.smd"
    activity "ACT_VM_RELOAD" 1
    fadein 0.2
    fadeout 0.2
    fps 30
	addlayer "m95_reload_not_empty_delta"
}



$sequence "m95_reload_delta" { "anims/m95_reload.smd" hidden delta subtract "m95_idle" 0 }
$sequence "m95_reload" {
    "anims/m95_reload_base.smd"
    activity "ACT_VM_RELOAD_EMPTY" 1
    fadein 0.2
    fadeout 0.2
    fps 30
	addlayer "m95_reload_delta"
}