Advertisement
Guest User

Untitled

a guest
May 23rd, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.58 KB | None | 0 0
  1. class MDL0Bone(Struct):
  2. __endian__ = Struct.BE
  3. def __format__(self):
  4. self.header_size = Struct.uint32
  5. self.mdl0offset = Struct.int32
  6. self.string_offset = Struct.int32
  7. self.index = Struct.int32
  8. self.nodeid = Struct.int32
  9. self.flags = Struct.uint32
  10. self.pad1 = Struct.uint32
  11. self.pad2 = Struct.uint32
  12. self.scale_x = Struct.float
  13. self.scale_y = Struct.float
  14. self.scale_z = Struct.float
  15. self.rot_x = Struct.float
  16. self.rot_y = Struct.float
  17. self.rot_z = Struct.float
  18. self.trans_x = Struct.float
  19. self.trans_y = Struct.float
  20. self.trans_z = Struct.float
  21. self.box_min_x = Struct.float
  22. self.box_min_y = Struct.float
  23. self.box_min_z = Struct.float
  24. self.box_max_x = Struct.float
  25. self.box_max_y = Struct.float
  26. self.box_max_z = Struct.float
  27. self.parent_offset = Struct.int32
  28. self.next_offset = Struct.int32
  29. self.prev_offset = Struct.int32
  30. self.add_offset = Struct.int32
  31.  
  32. self.trans0 = Struct.float
  33. self.trans1 = Struct.float
  34. self.trans2 = Struct.float
  35. self.trans3 = Struct.float
  36. self.trans4 = Struct.float
  37. self.trans5 = Struct.float
  38. self.trans6 = Struct.float
  39. self.trans7 = Struct.float
  40. self.trans8 = Struct.float
  41. self.trans9 = Struct.float
  42. self.trans10 = Struct.float
  43. self.trans11 = Struct.float
  44.  
  45. self.transi0 = Struct.float
  46. self.transi1 = Struct.float
  47. self.transi2 = Struct.float
  48. self.transi3 = Struct.float
  49. self.transi4 = Struct.float
  50. self.transi5 = Struct.float
  51. self.transi6 = Struct.float
  52. self.transi7 = Struct.float
  53. self.transi8 = Struct.float
  54. self.transi9 = Struct.float
  55. self.transi10 = Struct.float
  56. self.transi11 = Struct.float
  57.  
  58. is pain in the ass when it could be like
  59.  
  60. class MDL0Bone(Struct):
  61. __endian__ = Struct.BE
  62. def __format__(self):
  63. self.header_size = Struct.uint32
  64. self.mdl0offset = Struct.int32
  65. self.string_offset = Struct.int32
  66. self.index = Struct.int32
  67. self.nodeid = Struct.int32
  68. self.flags = Struct.uint32
  69. self.pad1 = Struct.uint32
  70. self.pad2 = Struct.uint32
  71. self.scale = Struct.vector_float
  72. self.rot = Struct.vector_float
  73. self.trans = Struct.vector_float
  74. self.box_min = Struct.vector_float
  75. self.box_max = Struct.vector_float
  76. self.parent_offset = Struct.int32
  77. self.next_offset = Struct.int32
  78. self.prev_offset = Struct.int32
  79. self.add_offset = Struct.int32
  80.  
  81. self.BIND_SHAPE_MATRIX = Struct.matrix4x3
  82.  
  83. self.INV_BIND_SHAPE_MATRIX = Struct.matrix4x3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement