Вопрос Анимация модели Garry's mod

  • 13
  • 1
Контакты для связи отсутствуют.
Сделал я модель с двумя анимациями, idle и walk. Idle проигрывается постоянно, то есть вообще всегда, когда модель стоит, ходит летает и т.д.
Я прекрасно понимаю что воспроизведение анимации нужно настраивать к определённому activity, но как это сделать я без понятия.
Люди помогите кто разбирается.
Это Playermodel

$modelname "models/cat.mdl" $bodygroup "mybody" { studio "cat.smd" } $surfaceprop "combine_metal" $contents "solid" $illumposition -1.259 6.205 23.148 $cdmaterials "models\cat\" $cdmaterials "" $cbox 0 0 0 0 0 0 $bbox -39.223 -17.44 -3.028 26.813 14.922 49.325 $definebone "blender_implicit" "" 0 0 0 0 0 0 0 0 0 0 0 0 $definebone "Core" "" 0 0 0 0 0 90.000009 0 0 0 0 0 0 $definebone "Spine" "Core" -0.436299 20.722025 8.260831 -4.077109 -90.192416 -87.296224 0 0 0 0 0 0 $definebone "Spine.001" "Spine" 0.000011 5.133195 0.000001 0.000005 4.845602 0.000006 0 0 0 0 0 0 $definebone "Spine.002" "Spine.001" 0.000006 7.315186 0 -0.000003 -2.000103 0.000001 0 0 0 0 0 0 $definebone "Spine.003" "Spine.002" 0.000029 6.779715 0 -0.000014 6.464467 -0.000001 0 0 0 0 0 0 $definebone "neck" "Spine.003" 0.000015 7.491994 0 -0.000016 12.547975 0.00002 0 0 0 0 0 0 $definebone "Head" "neck" -0.000012 6.708311 -0.000002 -0.000008 -19.477919 -0.000042 0 0 0 0 0 0 $definebone "tail" "Core" -0.747452 21.527395 12.271276 26.345238 88.663314 86.990198 0 0 0 0 0 0 $definebone "tail.001" "tail" -0.000028 6.531609 0.000001 0.000127 -15.501183 -0.000017 0 0 0 0 0 0 $definebone "tail.002" "tail.001" -0.000006 6.837393 0.000002 -0.000039 -12.445254 0.000046 0 0 0 0 0 0 $definebone "tail.003" "tail.002" 0.000049 5.618786 -0.000001 -0.000006 2.146492 0.000001 0 0 0 0 0 0 $definebone "LegB.L..004" "Core" -4.537027 20.825817 8.263782 -86.947967 178.665755 -10.900494 0 0 0 0 0 0 $definebone "LegB.L..005" "LegB.L..004" 0.000018 5.927305 -0.000004 -6.006626 28.581575 12.331259 0 0 0 0 0 0 $definebone "LegB.L..006" "LegB.L..005" 0.00001 5.376402 0.000011 -1.801617 -80.16216 -1.67295 0 0 0 0 0 0 $definebone "LegB.L..007" "LegB.L..006" 0.000007 12.075226 0.000007 -1.426639 89.122883 -1.062585 0 0 0 0 0 0 $definebone "LegF.L.003" "Core" -3.090822 16.476358 -16.983696 -69.068061 163.539591 18.775539 0 0 0 0 0 0 $definebone "LegF.L.004" "LegF.L.003" -0.000018 6.031283 -0.000008 0.095718 2.910112 -0.808851 0 0 0 0 0 0 $definebone "LegF.L.005" "LegF.L.004" -0.000044 8.820068 -0.000019 0.930641 7.363186 -4.851526 0 0 0 0 0 0 $definebone "LegB.L..012" "Core" 3.011678 20.76741 8.051845 -85.864562 -141.203124 -19.620132 0 0 0 0 0 0 $definebone "LegB.L..013" "LegB.L..012" 0.000001 5.9228 0.00001 8.340598 26.168792 -15.050078 0 0 0 0 0 0 $definebone "LegB.L..014" "LegB.L..013" -0.000003 5.535742 0.000003 -2.300636 -81.212773 -0.720177 0 0 0 0 0 0 $definebone "LegB.L..015" "LegB.L..014" 0.000031 12.069958 0.000008 -0.329909 89.285483 3.267755 0 0 0 0 0 0 $definebone "LegF.R.009" "Core" 4.455595 16.808355 -17.264469 -69.068055 163.539604 18.775398 0 0 0 0 0 0 $definebone "LegF.R.010" "LegF.R.009" -0.00002 6.031289 0.000001 0.095657 2.910134 -0.808852 0 0 0 0 0 0 $definebone "LegF.R.011" "LegF.R.010" -0.000046 8.820069 -0.00001 0.930798 7.363174 -4.851401 0 0 0 0 0 0 $includemodel "player\cat_anims\walk.smd" $animation "a_walk" "cat_anims\walk.smd" { loop } $sequence "idle" { "cat_anims\idle.smd" fadein 0.2 activity "ACT_IDLE" 1 fadeout 0.2 fps 15 loop } $sequence "walk" { "a_walk" fadein 0.2 fadeout 0.2 activity "ACT_RUN" 1 blend "move_y" -1 1 blend "move_x" 1 -1 fps 15 node "running" } $collisionmodel "cat_physics.smd" { $mass 1 $inertia 1 $damping 0 $rotdamping 0 $rootbone " " $concave $maxconvexpieces 23 }
 
Сверху Снизу