Advertisement
Guest User

model.cfg

a guest
May 7th, 2013
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.29 KB | None | 0 0
  1. //The Class "CfgSkeletons" defines all moving objects.
  2.  
  3. class CfgSkeletons {
  4. //Always create class "default" first.
  5. //Your actual config-entry should be a derivate of this.
  6. class Default {
  7. isDiscrete = 1;
  8. skeletonInherit = "";
  9. skeletonBones[] = {};
  10. };
  11. //the derivate of your skeleton from claa "Default".
  12. class TUT_obj_skeleton : Default {
  13. isDiscrete=1;
  14. skeletonInherit="";
  15.  
  16. // The moving objects are here defined
  17. // If two selections are linked together
  18. // they can be written next to each seperated by only a comma
  19. // if they are not linked, they need to be
  20. // seperated by ,"",
  21. skeletonBones[]= {
  22. "Door","",
  23. "Door2",""
  24. };
  25. // The last entry gets no comma
  26. };
  27. };
  28.  
  29.  
  30. // This class defines the actual moves
  31. class CfgModels {
  32. //load some bases from which you can derivate
  33. class rotation;
  34. // And again: class default
  35. class Default {
  36. sectionsInherit="";
  37. sections[]={};
  38. skeleton="";
  39.  
  40. class Animations {};
  41. };
  42.  
  43. // Your own "class default"
  44. class TUT_obj {
  45. sectionsInherit="";
  46. sections[]= {};
  47.  
  48. skeletonName="TUT_obj_skeleton"; // same as in cfgskeletons
  49. };
  50.  
  51. // The name behind the class
  52. // dhas to be the exact name of your .p3d
  53. // without .p3d
  54. class TUT_Wall_3x3m : TUT_obj {
  55. sectionsInherit="TUT_obj";
  56. sections[]={};
  57.  
  58. // the rotation animation
  59. class Animations
  60. {
  61. class Open_Door : Rotation { // name of the animation
  62.  
  63. type="rotation"; // Type of movement
  64.  
  65. source="user"; // Trigger of the animation
  66.  
  67. selection="Door"; // the thing that moves
  68.  
  69. axis="Door_Achse"; // take a guess what this does...
  70.  
  71. memory = 1; // can the axis be found in memory-lod? 1 = yes, 0 = no
  72.  
  73. angle0=0; // initial angle of the door in radians
  74.  
  75. angle1=2;
  76. };
  77. class Open_Door2 : Rotation
  78. {
  79. type="rotation"; // Type of movement
  80.  
  81. source="user"; // Trigger of the animation
  82.  
  83. selection="Door2"; // the thing that moves
  84.  
  85. axis="Door2_Achse"; // take a guess what this does...
  86.  
  87. memory = 1; // can the axis be found in memory-lod? 1 = yes, 0 = no
  88.  
  89. angle0=0; // initial angle of the door in radians
  90.  
  91. angle1=-2; // final position after playing the animation
  92. };
  93. };
  94. };
  95. };
  96. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement