hkpPatches.cxx
上传用户:yisoukefu
上传日期:2020-08-09
资源大小:39506k
文件大小:11k
源码类别:

其他游戏

开发平台:

Visual C++

  1. /* 
  2.  * 
  3.  * Confidential Information of Telekinesys Research Limited (t/a Havok). Not for disclosure or distribution without Havok's
  4.  * prior written consent. This software contains code, techniques and know-how which is confidential and proprietary to Havok.
  5.  * Level 2 and Level 3 source code contains trade secrets of Havok. Havok Software (C) Copyright 1999-2009 Telekinesys Research Limited t/a Havok. All Rights Reserved. Use of this software is subject to the terms of an end user license agreement.
  6.  * 
  7.  */
  8. //=======
  9. // 650b1
  10. //=======
  11. HK_PATCH_BEGIN(HK_NULL, HK_CLASS_ADDED, "hkpStorageExtendedMeshShapeMaterial", 0)
  12. HK_PATCH_PARENT_SET(HK_NULL, "hkpMeshMaterial")
  13. HK_PATCH_MEMBER_ADDED("restitution", TYPE_STRUCT, "hkHalf", 0)
  14. HK_PATCH_MEMBER_ADDED("friction", TYPE_STRUCT, "hkHalf", 0)
  15. HK_PATCH_MEMBER_ADDED("userData", TYPE_INT, HK_NULL, 0)
  16. HK_PATCH_DEPENDS("hkpMeshMaterial", 0)
  17. HK_PATCH_DEPENDS("hkHalf", 0)
  18. HK_PATCH_END()
  19. HK_PATCH_BEGIN(HK_NULL, HK_CLASS_ADDED, "hkpFirstPersonGun", 0)
  20. HK_PATCH_PARENT_SET(HK_NULL, "hkReferencedObject")
  21. HK_PATCH_MEMBER_ADDED("name", TYPE_CSTRING, HK_NULL, 0)
  22. HK_PATCH_MEMBER_ADDED("keyboardKey", TYPE_BYTE, HK_NULL, 0)
  23. HK_PATCH_DEPENDS("hkBaseObject", 0)
  24. HK_PATCH_DEPENDS("hkReferencedObject", 0)
  25. HK_PATCH_END()
  26. HK_PATCH_BEGIN(HK_NULL, HK_CLASS_ADDED, "hkpBallGun", 0)
  27. HK_PATCH_PARENT_SET(HK_NULL, "hkpFirstPersonGun")
  28. HK_PATCH_MEMBER_ADDED("bulletRadius", TYPE_REAL, HK_NULL, 0)
  29. HK_PATCH_MEMBER_ADDED("bulletVelocity", TYPE_REAL, HK_NULL, 0)
  30. HK_PATCH_MEMBER_ADDED("bulletMass", TYPE_REAL, HK_NULL, 0)
  31. HK_PATCH_MEMBER_ADDED("damageMultiplier", TYPE_REAL, HK_NULL, 0)
  32. HK_PATCH_MEMBER_ADDED("maxBulletsInWorld", TYPE_INT, HK_NULL, 0)
  33. HK_PATCH_MEMBER_ADDED("bulletOffsetFromCenter", TYPE_VEC_4, HK_NULL, 0)
  34. HK_PATCH_DEPENDS("hkBaseObject", 0)
  35. HK_PATCH_DEPENDS("hkpFirstPersonGun", 0)
  36. HK_PATCH_DEPENDS("hkReferencedObject", 0)
  37. HK_PATCH_END()
  38. HK_PATCH_BEGIN(HK_NULL, HK_CLASS_ADDED, "hkpGravityGun", 0)
  39. HK_PATCH_PARENT_SET(HK_NULL, "hkpFirstPersonGun")
  40. HK_PATCH_MEMBER_ADDED("maxNumObjectsPicked", TYPE_INT, HK_NULL, 0)
  41. HK_PATCH_MEMBER_ADDED("maxMassOfObjectPicked", TYPE_REAL, HK_NULL, 0)
  42. HK_PATCH_MEMBER_ADDED("maxDistOfObjectPicked", TYPE_REAL, HK_NULL, 0)
  43. HK_PATCH_MEMBER_ADDED("impulseAppliedWhenObjectNotPicked", TYPE_REAL, HK_NULL, 0)
  44. HK_PATCH_MEMBER_ADDED("throwVelocity", TYPE_REAL, HK_NULL, 0)
  45. HK_PATCH_MEMBER_ADDED("capturedObjectPosition", TYPE_VEC_4, HK_NULL, 0)
  46. HK_PATCH_MEMBER_ADDED("capturedObjectsOffset", TYPE_VEC_4, HK_NULL, 0)
  47. HK_PATCH_DEPENDS("hkBaseObject", 0)
  48. HK_PATCH_DEPENDS("hkpFirstPersonGun", 0)
  49. HK_PATCH_DEPENDS("hkReferencedObject", 0)
  50. HK_PATCH_END()
  51. HK_PATCH_BEGIN(HK_NULL, HK_CLASS_ADDED, "hkpProjectileGun", 0)
  52. HK_PATCH_PARENT_SET(HK_NULL, "hkpFirstPersonGun")
  53. HK_PATCH_MEMBER_ADDED("maxProjectiles", TYPE_INT, HK_NULL, 0)
  54. HK_PATCH_MEMBER_ADDED("reloadTime", TYPE_REAL, HK_NULL, 0)
  55. HK_PATCH_DEPENDS("hkBaseObject", 0)
  56. HK_PATCH_DEPENDS("hkpFirstPersonGun", 0)
  57. HK_PATCH_DEPENDS("hkReferencedObject", 0)
  58. HK_PATCH_END()
  59. HK_PATCH_BEGIN(HK_NULL, HK_CLASS_ADDED, "hkpMountedBallGun", 0)
  60. HK_PATCH_PARENT_SET(HK_NULL, "hkpBallGun")
  61. HK_PATCH_MEMBER_ADDED("position", TYPE_VEC_4, HK_NULL, 0)
  62. HK_PATCH_DEPENDS("hkBaseObject", 0)
  63. HK_PATCH_DEPENDS("hkpBallGun", 0)
  64. HK_PATCH_DEPENDS("hkpFirstPersonGun", 0)
  65. HK_PATCH_DEPENDS("hkReferencedObject", 0)
  66. HK_PATCH_END()
  67. HK_PATCH_BEGIN(HK_NULL, HK_CLASS_ADDED, "hkpShapeRayBundleCastInput", 0)
  68. HK_PATCH_MEMBER_ADDED("from", TYPE_TUPLE_VEC_4, HK_NULL, 3)
  69. HK_PATCH_MEMBER_ADDED("to", TYPE_TUPLE_VEC_4, HK_NULL, 3)
  70. HK_PATCH_MEMBER_ADDED("filterInfo", TYPE_INT, HK_NULL, 0)
  71. HK_PATCH_MEMBER_ADDED("rayShapeCollectionFilter", TYPE_OBJECT, "hkpRayShapeCollectionFilter", 0)
  72. HK_PATCH_DEPENDS("hkpRayShapeCollectionFilter", 0)
  73. HK_PATCH_END()
  74. HK_PATCH_BEGIN("hkpExtendedMeshShape", 0, "hkpExtendedMeshShape", 1)
  75. HK_PATCH_MEMBER_ADDED("defaultCollisionFilterInfo", TYPE_INT, HK_NULL, 0)
  76. HK_PATCH_END()
  77. HK_PATCH_BEGIN("hkpExtendedMeshShapeTrianglesSubpart", 0, "hkpExtendedMeshShapeTrianglesSubpart", 1)
  78. HK_PATCH_MEMBER_ADDED("userData", TYPE_INT, HK_NULL, 0)
  79. HK_PATCH_END()
  80. HK_PATCH_BEGIN("hkpConstraintInstance", 0, "hkpConstraintInstance", 1)
  81. HK_PATCH_MEMBER_ADDED("destructionRemapInfo", TYPE_BYTE, HK_NULL, 0)
  82. HK_PATCH_FUNCTION(hkpConstraintInstance_0_to_1)
  83. HK_PATCH_END()
  84. HK_PATCH_BEGIN("hkpStorageExtendedMeshShapeShapeSubpartStorage", 0, "hkpStorageExtendedMeshShapeShapeSubpartStorage", 1)
  85. HK_PATCH_MEMBER_RENAMED("materials", "int_materials")
  86. HK_PATCH_MEMBER_ADDED("materials", TYPE_ARRAY_STRUCT, "hkpStorageExtendedMeshShapeMaterial", 0)
  87. HK_PATCH_FUNCTION(hkpStorageExtendedMeshShapeShapeSubpartStorage_0_to_1)
  88. HK_PATCH_MEMBER_REMOVED("int_materials", TYPE_ARRAY_INT, HK_NULL, 0)
  89. HK_PATCH_DEPENDS("hkpMeshMaterial", 0)
  90. HK_PATCH_DEPENDS("hkpStorageExtendedMeshShapeMaterial", 0)
  91. HK_PATCH_DEPENDS("hkHalf", 0)
  92. HK_PATCH_END()
  93. HK_PATCH_BEGIN("hkpStorageExtendedMeshShapeMeshSubpartStorage", 0, "hkpStorageExtendedMeshShapeMeshSubpartStorage", 1)
  94. HK_PATCH_MEMBER_RENAMED("materials", "int_materials")
  95. HK_PATCH_MEMBER_ADDED("materials", TYPE_ARRAY_STRUCT, "hkpStorageExtendedMeshShapeMaterial", 0)
  96. HK_PATCH_FUNCTION(hkpStorageExtendedMeshShapeMeshSubpartStorage_0_to_1)
  97. HK_PATCH_MEMBER_REMOVED("int_materials", TYPE_ARRAY_INT, HK_NULL, 0)
  98. HK_PATCH_DEPENDS("hkpMeshMaterial", 0)
  99. HK_PATCH_DEPENDS("hkpStorageExtendedMeshShapeMaterial", 0)
  100. HK_PATCH_DEPENDS("hkHalf", 0)
  101. HK_PATCH_END()
  102. HK_PATCH_BEGIN("hkpWorldCinfo", 0, "hkpWorldCinfo", 1)
  103. HK_PATCH_MEMBER_ADDED("useKdTree", TYPE_BYTE, HK_NULL, 0)
  104. HK_PATCH_MEMBER_ADDED("autoUpdateKdTree", TYPE_BYTE, HK_NULL, 0)
  105. HK_PATCH_FUNCTION(hkpWorldCinfo_0_to_1)
  106. HK_PATCH_END()
  107. HK_PATCH_BEGIN("hkpMotion", 0, "hkpMotion", 1)
  108. HK_PATCH_MEMBER_RENAMED("savedMotion", "max_savedMotion")
  109. HK_PATCH_MEMBER_ADDED("savedMotion", TYPE_OBJECT, "hkpMotion", 0)
  110. HK_PATCH_MEMBER_ADDED("gravityFactor", TYPE_STRUCT, "hkHalf", 0)
  111. HK_PATCH_FUNCTION(hkpMotion_0_to_1)
  112. HK_PATCH_MEMBER_REMOVED("max_savedMotion", TYPE_OBJECT, "hkpMaxSizeMotion", 0)
  113. HK_PATCH_DEPENDS("hkpKeyframedRigidMotion", 0)
  114. HK_PATCH_DEPENDS("hkpMaxSizeMotion", 0)
  115. HK_PATCH_DEPENDS("hkHalf", 0)
  116. HK_PATCH_END()
  117. HK_PATCH_BEGIN("hkpEntity", 0, "hkpEntity", 1)
  118. HK_PATCH_MEMBER_RENAMED("motion", "max_motion")
  119. HK_PATCH_MEMBER_ADDED("motion", TYPE_STRUCT, "hkpMotion", 0)
  120. HK_PATCH_FUNCTION(hkpEntity_0_to_1)
  121. HK_PATCH_MEMBER_REMOVED("max_motion", TYPE_STRUCT, "hkpMaxSizeMotion", 0)
  122. HK_PATCH_DEPENDS("hkpMotion", 0)
  123. HK_PATCH_DEPENDS("hkpKeyframedRigidMotion", 0)
  124. HK_PATCH_DEPENDS("hkpMaxSizeMotion", 0)
  125. HK_PATCH_END()
  126. HK_PATCH_BEGIN("hkpPairwiseCollisionFilterCollisionPair", 0, HK_NULL, HK_CLASS_REMOVED)
  127. HK_PATCH_MEMBER_REMOVED("a", TYPE_OBJECT, "hkpEntity", 0)
  128. HK_PATCH_MEMBER_REMOVED("b", TYPE_OBJECT, "hkpEntity", 0)
  129. HK_PATCH_DEPENDS("hkpEntity", 1)
  130. HK_PATCH_DEPENDS("hkBaseObject", 0)
  131. HK_PATCH_DEPENDS("hkpWorldObject", 0)
  132. HK_PATCH_DEPENDS("hkReferencedObject", 0)
  133. HK_PATCH_END()
  134. HK_PATCH_BEGIN("hkpPairwiseCollisionFilter", 0, HK_NULL, HK_CLASS_REMOVED)
  135. HK_PATCH_PARENT_SET("hkpCollisionFilter", HK_NULL)
  136. HK_PATCH_MEMBER_REMOVED("disabledPairs", TYPE_ARRAY_STRUCT, "hkpPairwiseCollisionFilterCollisionPair", 0)
  137. HK_PATCH_DEPENDS("hkBaseObject", 0)
  138. HK_PATCH_DEPENDS("hkReferencedObject", 0)
  139. HK_PATCH_DEPENDS("hkpCollisionFilter", 0)
  140. HK_PATCH_DEPENDS("hkpPairwiseCollisionFilterCollisionPair", 0)
  141. HK_PATCH_END()
  142. HK_PATCH_BEGIN(HK_NULL, HK_CLASS_ADDED, "hkpCenterOfMassChangerModifierConstraintAtom", 0)
  143. HK_PATCH_PARENT_SET(HK_NULL, "hkpModifierConstraintAtom")
  144. HK_PATCH_MEMBER_ADDED("displacementA", TYPE_VEC_4, HK_NULL, 0)
  145. HK_PATCH_MEMBER_ADDED("displacementB", TYPE_VEC_4, HK_NULL, 0)
  146. HK_PATCH_DEPENDS("hkpModifierConstraintAtom", 0)
  147. HK_PATCH_DEPENDS("hkpConstraintAtom", 0)
  148. HK_PATCH_END()
  149. HK_PATCH_BEGIN("hkpMassChangerModifierConstraintAtom", 0, "hkpMassChangerModifierConstraintAtom", 1)
  150. HK_PATCH_MEMBER_RENAMED("factorA", "old_factorA")
  151. HK_PATCH_MEMBER_RENAMED("factorB", "old_factorB")
  152. HK_PATCH_MEMBER_ADDED("factorA", TYPE_VEC_4, HK_NULL, 0)
  153. HK_PATCH_MEMBER_ADDED("factorB", TYPE_VEC_4, HK_NULL, 0)
  154. HK_PATCH_FUNCTION(hkpMassChangerModifierConstraintAtom_0_to_1)
  155. HK_PATCH_MEMBER_REMOVED("old_factorA", TYPE_REAL, HK_NULL, 0)
  156. HK_PATCH_MEMBER_REMOVED("old_factorB", TYPE_REAL, HK_NULL, 0)
  157. HK_PATCH_END()
  158. HK_PATCH_BEGIN("hkpVehicleInstanceWheelInfo", 0, "hkpVehicleInstanceWheelInfo",1)
  159. HK_PATCH_MEMBER_RENAMED("contactShapeKey", "old_contactShapeKey")
  160. HK_PATCH_MEMBER_ADDED("contactShapeKey", TYPE_TUPLE_INT, HK_NULL, 8)
  161. HK_PATCH_FUNCTION(hkpVehicleInstanceWheelInfo_0_to_1)
  162. HK_PATCH_MEMBER_REMOVED("old_contactShapeKey", TYPE_INT, HK_NULL, 0)
  163. HK_PATCH_END()
  164. HK_PATCH_BEGIN("hkpWorldCinfo", 1, "hkpWorldCinfo", 2)
  165. HK_PATCH_MEMBER_ADDED("numToisTillAllowedPenetrationSimplifiedToi", TYPE_REAL, HK_NULL, 0)
  166. HK_PATCH_MEMBER_ADDED("numToisTillAllowedPenetrationToi", TYPE_REAL, HK_NULL, 0)
  167. HK_PATCH_MEMBER_ADDED("numToisTillAllowedPenetrationToiHigher", TYPE_REAL, HK_NULL, 0)
  168. HK_PATCH_MEMBER_ADDED("numToisTillAllowedPenetrationToiForced", TYPE_REAL, HK_NULL, 0)
  169. HK_PATCH_FUNCTION(hkpWorldCinfo_1_to_2) // set defaults
  170. HK_PATCH_END()
  171. HK_PATCH_BEGIN(HK_NULL, HK_CLASS_ADDED, "hkpConstraintInstanceSmallArraySerializeOverrideType", 0)
  172. HK_PATCH_MEMBER_ADDED("data", TYPE_OBJECT, HK_NULL, 0)
  173. HK_PATCH_MEMBER_ADDED("size", TYPE_INT, HK_NULL, 0)
  174. HK_PATCH_MEMBER_ADDED("capacityAndFlags", TYPE_INT, HK_NULL, 0)
  175. HK_PATCH_END()
  176. HK_PATCH_BEGIN("hkpBallSocketConstraintAtom", 0, "hkpBallSocketConstraintAtom", 1)
  177. HK_PATCH_MEMBER_ADDED("stabilizationFactor", TYPE_BYTE, HK_NULL, 0)
  178. HK_PATCH_FUNCTION(hkpBallSocketConstraintAtom_0_to_1) // set defaults
  179. HK_PATCH_END()
  180. HK_PATCH_BEGIN(HK_NULL, HK_CLASS_ADDED, "hkpBreakableBody", 0)
  181. HK_PATCH_PARENT_SET(HK_NULL, "hkReferencedObject")
  182. HK_PATCH_DEPENDS("hkBaseObject", 0)
  183. HK_PATCH_DEPENDS("hkReferencedObject", 0)
  184. HK_PATCH_END()
  185. HK_PATCH_BEGIN("hkpStorageExtendedMeshShapeMeshSubpartStorage", 1, "hkpStorageExtendedMeshShapeMeshSubpartStorage", 2)
  186. HK_PATCH_MEMBER_ADDED("indices8", TYPE_ARRAY_BYTE, HK_NULL, 0)
  187. HK_PATCH_END()
  188. HK_PATCH_BEGIN("hkpExtendedMeshShapeTrianglesSubpart", 1, "hkpExtendedMeshShapeTrianglesSubpart", 2)
  189. HK_PATCH_FUNCTION(hkpExtendedMeshShapeTrianglesSubpart_1_to_2)
  190. HK_PATCH_END()
  191. /*
  192. * Havok SDK - NO SOURCE PC DOWNLOAD, BUILD(#20090216)
  193. * Confidential Information of Havok.  (C) Copyright 1999-2009
  194. * Telekinesys Research Limited t/a Havok. All Rights Reserved. The Havok
  195. * Logo, and the Havok buzzsaw logo are trademarks of Havok.  Title, ownership
  196. * rights, and intellectual property rights in the Havok software remain in
  197. * Havok and/or its suppliers.
  198. * Use of this software for evaluation purposes is subject to and indicates
  199. * acceptance of the End User licence Agreement for this product. A copy of
  200. * the license is included with this software and is also available at www.havok.com/tryhavok.
  201. */