fortressforever-models/player/medic/compile/medic.qc
2016-06-04 16:23:17 -07:00

265 lines
11 KiB
C++

$modelname "player/medic/medic.mdl"
//$model studio "/reference/medic_reference.smd"
$bodygroup torso
{
studio "/reference/medic_reference_torsoShape.smd"
blank
}
$bodygroup head
{
studio "/reference/medic_reference_headShape.smd"
blank
}
$bodygroup leftArm
{
studio "/reference/medic_reference_leftArmShape.smd"
blank
}
$bodygroup leftLeg
{
studio "/reference/medic_reference_leftLegShape.smd"
blank
}
$bodygroup rightArm
{
studio "/reference/medic_reference_rightArmShape.smd"
blank
}
$bodygroup rightLeg
{
studio "/reference/medic_reference_rightLegShape.smd"
blank
}
$texturegroup skinfamilies {
{ "medic_body_blue.vmt" "medic_head_blue.vmt" "medic_acc_blue.vmt"}
{ "medic_body_red.vmt" "medic_head_red.vmt" "medic_acc_red.vmt"}
{ "medic_body_yellow.vmt" "medic_head_yellow.vmt" "medic_acc_yellow.vmt" }
{ "medic_body_green.vmt" "medic_head_green.vmt" "medic_acc_green.vmt"}
}
$lod 10 {
replacemodel "/reference/medic_reference_torsoShape.smd" "/reference/LOD/medic_lod1_torsoShape.smd"
//replacemodel "/reference/medic_reference_headShape.smd" "/reference/medic_reference_head_lodShape2.smd"
//replacemodel "/reference/medic_reference_leftArmShape.smd" "/reference/medic_reference_leftArm_lodShape2.smd"
//replacemodel "/reference/medic_reference_rightArmShape.smd" "/reference/medic_reference_rightArm_lodShape2.smd"
//replacemodel "/reference/medic_reference_leftLegShape.smd" "/reference/medic_reference_leftLeg_lodShape2.smd"
//replacemodel "/reference/medic_reference_rightLegShape.smd" "/reference/medic_reference_rightLeg_lodShape2.smd"
}
$lod 35 {
replacemodel "/reference/medic_reference_torsoShape.smd" "//reference/LOD/medic_lod2_torsoShape.smd"
// replacemodel "/reference/medic_reference_headShape.smd" "/reference/medic_reference_head_lodShape4.smd"
// replacemodel "/reference/medic_reference_leftArmShape.smd" "/reference/medic_reference_leftArm_lodShape4.smd"
// replacemodel "/reference/medic_reference_rightArmShape.smd" "/reference/medic_reference_rightArm_lodShape4.smd"
// replacemodel "/reference/medic_reference_leftLegShape.smd" "/reference/medic_reference_leftLeg_lodShape4.smd"
// replacemodel "/reference/medic_reference_rightLegShape.smd" "/reference/medic_reference_rightLeg_lodShape4.smd"
bonetreecollapse "ffSkel_neck"
bonetreecollapse "ffSkel_leftForeArm"
bonetreecollapse "ffSkel_rightForeArm"
bonetreecollapse "ffSkel_leftLeg"
bonetreecollapse "ffSkel_rightLeg"
// simplify spine
replacebone "ffSkel_Neck" "ffSkel_Spine2"
replacebone "ffSkel_Spine3" "ffSkel_spine2"
replacebone "ffSkel_spine1" "ffSkel_spine"
replacebone "ffSkel_Spine" "ffSkel_spine2"
}
$shadowlod
{
replacemodel "/reference/medic_reference_torsoShape.smd" "//reference/LOD/medic_lod2_torsoShape.smd"
//replacemodel "/reference/medic_reference_headShape.smd" "/reference/medic_reference_head_lodShape5.smd"
//replacemodel "/reference/medic_reference_leftArmShape.smd" "/reference/medic_reference_leftArm_lodShape5.smd"
//replacemodel "/reference/medic_reference_rightArmShape.smd" "/reference/medic_reference_rightArm_lodShape5.smd"
//replacemodel "/reference/medic_reference_leftLegShape.smd" "/reference/medic_reference_leftLeg_lodShape5.smd"
//replacemodel "/reference/medic_reference_rightLegShape.smd" "/reference/medic_reference_rightLeg_lodShape5.smd"
}
$attachment "attach_head" "ffSkel_Head" 0 0 0 rotate 0 0 0
$attachment "attach_leftArm" "ffSkel_LeftArm" 0 0 0 rotate -80 0 0
$attachment "attach_leftLeg" "ffSkel_LeftUpLeg" 0 0 0 rotate 0 0 0
$attachment "attach_rightArm" "ffSkel_RightArm" 0 0 0 rotate 80 0 0
$attachment "attach_rightLeg" "ffSkel_RightUpLeg" 0 0 0 rotate 0 0 0
$attachment "anim_attachment_RH" "ffSkel_RightHand" 0 0 0 rotate 0 0 0
$attachment "anim_attachment_LH" "ffSkel_LeftHand" 0 0 0 rotate 0 0 0
$attachment "ffAtt_flag" "ffSkel_Spine3" 5 3 0 rotate 0 0 0
// {
// flexfile "/reference/medic_decap.vta"
// flex "decap" frame 10
// flexcontroller "phoneme" "decap" "_range" 0 1
//
// flexfile "/reference/medic_bighead.vta"
// flex "bighead" frame 10
// flexcontroller "phoneme" "bighead" "range" 0 1
//%decap = decap
//%bighead = bighead
//}
//$cdmaterials "models\police\"
//$cdmaterials "models\humans\male\"
$cdmaterials "models/player/medic/"
// Model uses material "bmouth.vmt"
// Model uses material "eyeball_l.vmt"
// Model uses material "barneyface.vmt"
// Model uses material "eyeball_r.vmt"
// Model uses material "metrocop_sheet.vmt"
// Model uses material "pupil_r.vmt"
// Model uses material "glint.vmt"
// Model uses material "pupil_l.vmt"
$attachment "eyes" "ffSkel_head" 5.00 0.00 0.05 rotate 0 -20 -90
$attachment "mouth" "ffSkel_head" 0.30 -5.70 -0.00 rotate 0.00 -80.00 -90.00
$attachment "chest" "ffSkel_Spine2" 5.00 4.00 -0.00 rotate -0.00 90.00 90.00
$attachment "helmet_attachment" "ffSkel_head" 2.66 -1.60 -0.00 rotate 0.00 -82.95 -90.00
$includemodel "player/ff_player_shared.mdl"
//$includemodel "player/cs_player_shared.mdl"
//$includemodel "player/ak_anims_t.mdl"
//$includemodel "barney_animations.mdl"
//$includemodel "/humans/male_shared.mdl"
//$includemodel "/hl2dm/male_shared.mdl"
//$includemodel "barney_postures.mdl"
//$includemodel "barney_gestures.mdl"
$surfaceprop "flesh"
$bbox -16 -16 0 16 16 72
//$bbox -10 -18 0 26 18 72
// $bbox 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
//begin old hitboxes
//$hboxset "fortressforever"
//$hbox 3 "ffSkel_Hips" -6.75 -4.00 -6.50 6.75 2.00 3.50
//$hbox 6 "ffSkel_LeftUpLeg" 1.50 -2.65 -4.25 16.50 5.65 2.75
//$hbox 6 "ffSkel_LeftLeg" -2.00 -2.00 -3.10 16.00 5.00 2.90
//$hbox 6 "ffSkel_LeftFoot" -2.50 -1.00 -2.10 6.50 4.00 2.10
////$hbox 6 "ffSkel_LeftToeBases" 0.13 -0.25 -2.40 3.13 2.95 2.10
//$hbox 7 "ffSkel_RightUpLeg" 1.50 -2.65 -2.75 16.50 5.65 4.25
//$hbox 7 "ffSkel_RightLeg" -2.00 -2.00 -2.90 16.00 5.00 3.10
//$hbox 7 "ffSkel_RightFoot" -2.50 -1.00 -2.10 6.50 4.00 2.10
////$hbox 7 "ffSkel_RightToeBase" 0.13 -0.15 -1.79 3.13 3.05 2.71
//$hbox 3 "ffSkel_Spine1" -4.75 -3.50 -5.75 3.75 7.50 7.25
//$hbox 2 "ffSkel_Spine2" -1.00 -3.50 -6.50 9.00 7.50 6.50
//$hbox 1 "ffSkel_Neck" -0.50 -4.25 -2.00 2.50 0.75 2.00
//$hbox 1 "ffSkel_Head" -2.38 -6.09 -3.00 5.62 1.91 3.00
//$hbox 4 "ffSkel_LeftArm" 0.50 -1.90 -2.60 12.50 3.10 1.40
//$hbox 4 "ffSkel_LeftForeArm" 0.00 -1.50 -2.50 10.00 2.50 1.50
//$hbox 4 "ffSkel_LeftHand" 0.50 -2.72 -1.75 5.50 0.72 2.75
//$hbox 5 "ffSkel_RightArm" 0.50 -1.90 -2.60 12.50 3.10 1.40
//$hbox 5 "ffSkel_RightForeArm" 0.00 -1.50 -2.50 10.00 2.50 1.50
//$hbox 5 "ffSkel_RightHand" 0.50 -2.72 -1.75 5.50 0.72 2.75
//end old hitboxes
//begin new hitboxes
$surfaceprop "flesh"
$hboxset "fortressforever"
$hbox 3 "ffSkel_Hips" -5.00 -6.75 -6.00 5.00 6.75 6.00
$hbox 6 "ffSkel_LeftUpLeg" 3.00 -3.50 -4.00 17.00 5.50 3.00
$hbox 6 "ffSkel_LeftLeg" -5.00 -2.50 -3.00 15.00 4.50 3.00
$hbox 6 "ffSkel_LeftFoot" -1.00 -1.00 -2.10 5.00 4.00 2.10
$hbox 7 "ffSkel_RightUpLeg" 3.00 -3.50 -3.00 17.00 5.50 4.00
$hbox 7 "ffSkel_RightLeg" -5.00 -2.50 -3.00 15.00 4.50 3.00
$hbox 7 "ffSkel_RightFoot" -1.00 -1.00 -2.10 5.00 4.00 2.10
$hbox 3 "ffSkel_Spine1" -5.00 -6.50 -6.50 3.00 4.50 6.50
$hbox 2 "ffSkel_Spine2" -5.00 -7.50 -6.50 5.00 4.50 6.50
$hbox 4 "ffSkel_LeftArm" 0.50 -2.50 -1.50 12.50 2.50 3.50
$hbox 4 "ffSkel_LeftForeArm" 0.00 -1.50 -2.00 10.00 2.50 2.00
$hbox 4 "ffSkel_LeftHand" 0.50 -2.50 -2.75 5.50 1.50 1.75
$hbox 5 "ffSkel_RightArm" 0.50 -2.50 -3.50 12.50 2.50 1.50
$hbox 5 "ffSkel_RightForeArm" 0.00 -1.50 -2.50 10.00 2.50 1.50
$hbox 5 "ffSkel_RightHand" 0.50 -1.72 -1.75 5.50 1.72 2.75
$hbox 1 "ffSkel_Heads" -4.00 -3.25 -2.50 4.00 3.25 6.50
$hbox 2 "ffSkel_Spine3" 0.00 -6.00 -8.00 6.00 4.00 8.00
$hbox 1 "ffSkel_Necks" -1.50 -3.50 -3.00 1.50 3.50 3.00
$hbox 7 "ffSkel_RightToeBases" -4.00 -2.50 -2.00 4.00 2.50 2.00
$hbox 6 "ffSkel_LeftToeBases" -4.00 -2.50 -2.00 4.00 2.50 2.00
//end new hitboxes
//
//$ikchain rhand ffSkel_RightHand
//$ikchain lhand ffSkel_LeftHand
$ikchain rfoot ffSkel_RightFoot
$ikchain lfoot ffSkel_LeftFoot
$sequence ragdoll "/reference/ragdoll" ACT_DIERAGDOLL 1 fps 30.00
$bonemerge ffSkel_att_righthand
$collisionjoints "/reference/medic_reference_phy.smd" {
$mass 90.0
$inertia 2.00
$damping 0.01
$rotdamping 4
$rootbone "ffSkel_Hips"
$jointmerge "ffSkel_Hips" "ffSkel_ffSkel_Spine1"
$jointconstrain "ffSkel_spine2" x limit -48.00 48.00 0.00
$jointconstrain "ffSkel_spine2" y limit -25.00 25.00 0.00
$jointconstrain "ffSkel_spine2" z limit -25.00 50.00 0.00
$jointconstrain "ffSkel_rightarm" x limit -39.00 39.00 0.00
$jointconstrain "ffSkel_rightarm" y limit -79.00 95.00 0.00
$jointconstrain "ffSkel_rightarm" z limit -93.00 23.00 0.00
$jointconstrain "ffSkel_leftarm" x limit -30.00 30.00 0.00
$jointconstrain "ffSkel_leftarm" y limit -95.00 84.00 0.00
$jointconstrain "ffSkel_leftarm" z limit -86.00 26.00 0.00
$jointconstrain "ffSkel_leftforearm" x limit 0.00 0.00 0.00
$jointconstrain "ffSkel_leftforearm" y limit 0.00 0.00 0.00
$jointconstrain "ffSkel_leftforearm" z limit -149.00 4.00 0.00
$jointconstrain "ffSkel_lefthand" x limit -37.00 37.00 0.00
$jointconstrain "ffSkel_lefthand" y limit 0.00 0.00 0.00
$jointconstrain "ffSkel_lefthand" z limit -57.00 59.00 0.00
$jointconstrain "ffSkel_rightforearm" x limit 0.00 0.00 0.00
$jointconstrain "ffSkel_rightforearm" y limit 0.00 0.00 0.00
$jointconstrain "ffSkel_rightforearm" z limit -149.00 4.00 0.00
$jointconstrain "ffSkel_righthand" x limit -60.00 60.00 0.00
$jointconstrain "ffSkel_righthand" y limit 0.00 0.00 0.00
$jointconstrain "ffSkel_righthand" z limit -57.00 70.00 0.00
$jointconstrain "ffSkel_rightupleg" x limit -12.00 12.00 0.00
$jointconstrain "ffSkel_rightupleg" y limit -8.00 75.00 0.00
$jointconstrain "ffSkel_rightupleg" z limit -97.00 32.00 0.00
$jointconstrain "ffSkel_rightleg" x limit 0.00 0.00 0.00
$jointconstrain "ffSkel_rightleg" y limit 0.00 0.00 0.00
$jointconstrain "ffSkel_rightleg" z limit -12.00 126.00 0.00
$jointconstrain "ffSkel_head" x limit -20.00 20.00 0.00
$jointconstrain "ffSkel_head" y limit -25.00 25.00 0.00
$jointconstrain "ffSkel_head" z limit -13.00 30.00 0.00
$jointconstrain "ffSkel_leftupleg" x limit -12.00 12.00 0.00
$jointconstrain "ffSkel_leftupleg" y limit -73.00 6.00 0.00
$jointconstrain "ffSkel_leftupleg" z limit -93.00 30.00 0.00
$jointconstrain "ffSkel_leftleg" x limit 0.00 0.00 0.00
$jointconstrain "ffSkel_leftleg" y limit 0.00 0.00 0.00
$jointconstrain "ffSkel_leftleg" z limit -8.00 126.00 0.00
$jointconstrain "ffSkel_leftfoot" x limit 0.00 0.00 0.00
$jointconstrain "ffSkel_leftfoot" y limit -10.00 10.00 0.00
$jointconstrain "ffSkel_leftfoot" z limit -5.00 15.00 0.00
$jointconstrain "ffSkel_rightfoot" x limit 0.00 0.00 0.00
$jointconstrain "ffSkel_rightfoot" y limit -10.00 6.00 0.00
$jointconstrain "ffSkel_rightfoot" z limit -5.00 15.00 0.00
}