
$modelname player/gman_high.mdl

$cdmaterials models\Gman

//start eye/face data
$eyeposition 0 0 70

// head controllers
$attachment "eyes" "ValveBiped.Bip01_Head1" 0.0414 -3.4748 68.2344 absolute
$attachment "mouth" "ValveBiped.Bip01_Head1" 1.40 -4.90 0.00 rotate 0 -80 -90
$attachment "chest" "ValveBiped.Bip01_Spine2" 5.00 4.00 0.00 rotate 0 90 90
$attachment cameraeye "ValveBiped.Right_eye_camera" 0 0 0 rigid
$attachment mouth_left "ValveBiped.mouthcorner_left" 0 0 0 rigid
$attachment cheekbone_left "ValveBiped.Cheekbone_left" 0 0 0 rigid

$model gman "gman_high_reference.smd"{
	eyeball righteye "ValveBiped.Bip01_Head1" -1.12 -3.45 68.18 "eyeball_r" 1.00 4 "pupil_r" 0.63
	eyeball lefteye "ValveBiped.Bip01_Head1" 1.20 -3.45 68.28 "eyeball_l" 1.00 -4 "pupil_l" 0.63

	eyelid  upper_right "gman_high_expressions" lowerer 1 -0.25 neutral 0 0.16 raiser 2 0.31 split 0.1 eyeball righteye
	eyelid  lower_right "gman_high_expressions" lowerer 3 -0.38 neutral 0 -0.24 raiser 4 -0.04 split 0.1 eyeball righteye
	eyelid  upper_left "gman_high_expressions" lowerer 1 -0.24 neutral 0 0.16 raiser 2 0.31 split -0.1 eyeball lefteye
	eyelid  lower_left "gman_high_expressions" lowerer 3 -0.36 neutral 0 -0.23 raiser 4 -0.02 split -0.1 eyeball lefteye

	mouth 0 "mouth" "ValveBiped.Bip01_Head1" 0 1 0     // mouth illumination
	flexfile "gman_high_expressions" {
		$include "../Humans/standardflex_v2.qci"
	}
	$include "../Humans/facerules_v2.qci"
	$include "../Humans/bodyrules_xsi.qci"
}

// $animblocksize 32

$forcephonemecrossfade

//briefcase
// $bodygroup briefcase
// {
// studio "briefcase_reference.smd"
// blank
// }


$include "../humans/standardhierarchy.qci"
$include "../humans/standardikchains.qci"
$include "../humans/male/commonbones.qci"

$proceduralbones "gman.vrd"

//end eye/face data

$sequence idle_subtle "Gman_idle" ACT_IDLE 1 loop fps 30
$sequence idle "Gman_idle" ACT_IDLE 1 loop fps 30
$sequence B_idle01 "Gman_idle" ACT_IDLE 1 loop fps 30
$sequence tiefidget "Tie_fidget" fps 30
$sequence lintpick "alyx_lint" fps 30

//=================Walk_Moderate===================================

$animation a_WalkS_Moderate WalkS_Moderate fps 28 loop LX LY startloop 0 rotateto -180 {
	alignto idle_subtle
	ikrule lfoot footstep range .. 10 25 .. contact 15
	ikrule rfoot footstep range .. 25  7 .. contact 33
}
$animation a_WalkSE_Moderate WalkSE_Moderate fps 28 loop LX LY startloop 0 rotateto -135 {
	alignto idle_subtle
	ikrule lfoot footstep range .. 7 26 .. contact 13
	ikrule rfoot footstep range .. 25  10 .. contact 31
}
$animation a_WalkE_Moderate WalkE_Moderate fps 28 loop LX LY startloop 0 rotateto -90 {
	alignto idle_subtle
	ikrule lfoot footstep range .. 8 29 .. contact 12
	ikrule rfoot footstep range .. 26  9 .. contact 29
}
$animation a_WalkNE_Moderate WalkNE_Moderate fps 28 loop LX LY startloop 0 rotateto -45 {
	alignto idle_subtle
	ikrule lfoot footstep range .. 8 26 .. contact 11
	ikrule rfoot footstep range .. 25  9 .. contact 27
}
$animation a_WalkN_Moderate gman_walkn fps 28 loop LX LY startloop 33 rotateto 0 {
	alignto idle_subtle
	ikrule lfoot footstep range .. 9 26 .. contact 10
	ikrule rfoot footstep range .. 25  9 .. contact 26
}
$animation a_WalkNW_Moderate WalkNW_Moderate fps 28 loop LX LY startloop 0 rotateto 45 {
	alignto idle_subtle
	ikrule lfoot footstep range .. 8 25 .. contact 10
	ikrule rfoot footstep range .. 25  9 .. contact 27
}
$animation a_WalkW_Moderate WalkW_Moderate fps 28 loop LX LY startloop 0 rotateto 90 {
	alignto idle_subtle
	ikrule lfoot footstep range .. 10 26 .. contact 12
	ikrule rfoot footstep range .. 29  12 .. contact 30
}
$animation a_WalkSW_Moderate WalkSW_Moderate fps 28 loop LX LY startloop 0 rotateto 135  {
	alignto idle_subtle
	ikrule lfoot footstep range .. 9 25 .. contact 13
	ikrule rfoot footstep range .. 27  9 .. contact 30
}

$sequence walk_all_Moderate {
	a_walkS_Moderate a_walkSE_Moderate a_walkE_Moderate 
	a_walkNE_Moderate a_walkN_Moderate a_walkNW_Moderate 
	a_walkW_Moderate a_walkSW_Moderate a_walkS_Moderate
	blendwidth 9 blend move_yaw -180 180 node "walking"
	{ event 6004 8 "NPC_Citizen" }
	{ event 6005 25 "NPC_Citizen" }
}
//=================================================================

$pushd "../Humans/Male"
$include "../Humans/Male/ragdoll.qci"
$include "../Humans/Male/hitbox.qci"
$popd

$includemodel m_anm.mdl



