Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

106 lines
3.9 KiB

  1. #! perl
  2. # for the tf animations, copy appropriate guesses for missing ones, to aid development before
  3. # all the anims are created.
  4. $did_something=1;
  5. while( $did_something )
  6. {
  7. $did_something=0;
  8. &checkanim("swim.smd","");
  9. &checkanim("body_poses_lean.smd","");
  10. &checkanim("crouchwalke.smd","primary_crouch_walkn.smd");
  11. &checkanim("crouchwalkn.smd","primary_crouch_walkn.smd");
  12. &checkanim("crouchwalkne.smd","primary_crouch_walkn.smd");
  13. &checkanim("crouchwalknw.smd","primary_crouch_walkn.smd");
  14. &checkanim("crouchwalks.smd","primary_crouch_walkn.smd");
  15. &checkanim("crouchwalkse.smd","primary_crouch_walkn.smd");
  16. &checkanim("crouchwalksw.smd","primary_crouch_walkn.smd");
  17. &checkanim("crouchwalkw.smd","primary_crouch_walkn.smd");
  18. &checkanim("Melee_aim_matrix.smd","");
  19. &checkanim("melee_crouch_aim_matrix.smd","primary_crouch_aim_matrix.smd");
  20. &checkanim("melee_crouch_idle.smd","melee_idle.smd");
  21. &checkanim("melee_crouch_swing.smd","melee_swing.smd");
  22. &checkanim("melee_crouch_walkn.smd","crouchwalkn.smd");
  23. &checkanim("Melee_grenade_throw.smd","");
  24. &checkanim("melee_idle.smd","");
  25. &checkanim("Melee_jump.smd","");
  26. &checkanim("Melee_runN.smd","");
  27. &checkanim("Melee_runN_aim_matrix.smd","");
  28. &checkanim("melee_swim.smd","swim.smd");
  29. &checkanim("melee_swim_swing.smd","swim.smd");
  30. &checkanim("Melee_swing.smd","swim.smd");
  31. &checkanim("melee_walkn.smd","walkn.smd");
  32. &checkanim("Primary_aim_matrix.smd","");
  33. &checkanim("Primary_crouch_aim_matrix.smd","");
  34. &checkanim("Primary_crouch_fire.smd","");
  35. &checkanim("primary_crouch_idle.smd","");
  36. &checkanim("Primary_crouch_reload.smd","");
  37. &checkanim("Primary_crouch_walkN.smd","");
  38. &checkanim("Primary_fire.smd","");
  39. &checkanim("Primary_grenade_throw.smd","");
  40. &checkanim("primary_idle.smd","");
  41. &checkanim("Primary_jump.smd","");
  42. &checkanim("Primary_reload.smd","");
  43. &checkanim("Primary_runN.smd","");
  44. &checkanim("Primary_runN_aim_matrix.smd","");
  45. &checkanim("Primary_swim.smd","swim.smd");
  46. &checkanim("primary_swim_fire.smd","primary_fire.smd");
  47. &checkanim("primary_swim_fire.smd","swim.smd");
  48. &checkanim("primary_swim_reload.smd","swim.smd");
  49. &checkanim("primary_walkn.smd","walkn.smd");
  50. &checkanim("RunN.smd","");
  51. &checkanim("RunE.smd","runn.smd");
  52. &checkanim("RunNE.smd","runn.smd");
  53. &checkanim("RunNW.smd","runn.smd");
  54. &checkanim("RunS.smd","runn.cmd");
  55. &checkanim("RunSE.smd","runs.cmd");
  56. &checkanim("RunSW.smd","runs.cmd");
  57. &checkanim("RunW.smd","runn.smd");
  58. &checkanim("secondary_aim_matrix.smd","");
  59. &checkanim("secondary_crouch_aim_matrix.smd","");
  60. &checkanim("secondary_crouch_fire.smd","");
  61. &checkanim("secondary_crouch_idle.smd","");
  62. &checkanim("secondary_crouch_reload.smd","");
  63. &checkanim("secondary_crouch_walkn.smd","");
  64. &checkanim("secondary_fire.smd","");
  65. &checkanim("secondary_grenade_throw.smd","");
  66. &checkanim("secondary_idle.smd","");
  67. &checkanim("secondary_jump.smd","");
  68. &checkanim("secondary_reload.smd","");
  69. &checkanim("secondary_runn.smd","");
  70. &checkanim("secondary_runn_aim_matrix.smd","");
  71. &checkanim("secondary_swim.smd","swim.smd");
  72. &checkanim("secondary_swim_fire.smd","swim.smd");
  73. &checkanim("secondary_swim_reload.smd","swim.smd");
  74. &checkanim("secondary_walkn.smd","walkn.smd");
  75. &checkanim("walke.smd","rune.smd");
  76. &checkanim("walkn.smd","runn.smd");
  77. &checkanim("walkne.smd","runne.smd");
  78. &checkanim("walknw.smd","runnw.smd");
  79. &checkanim("walks.smd","runs.smd");
  80. &checkanim("walkse.smd","runse.smd");
  81. &checkanim("walksw.smd","runsw.smd");
  82. &checkanim("walkw.smd","runw.smd");
  83. }
  84. sub checkanim
  85. {
  86. local($desired_file,$fallback_file)=@_;
  87. unless( -e $desired_file)
  88. {
  89. if (length($fallback_file) && (-e $fallback_file))
  90. {
  91. print "**copying $fallback_file to $desired_file\n";
  92. `copy $fallback_file $desired_file`;
  93. $did_something=1;
  94. }
  95. else
  96. {
  97. print "no fallback present for missing $desired_file, fallback=$fallback_file\n";
  98. }
  99. }
  100. }