FREE.cpp 78 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996
  1. #include "FREE.h"
  2. #include "LOCstring.h"
  3. #include "CStoryHUD.h"
  4. #include "CStoryCore.h"
  5. #include "CBall.h"
  6. #include "CFTTPObject.h"
  7. #include "CFTTPPBox.h"
  8. #include "CFTTPPCone.h"
  9. #include "CFTTPPCylinder.h"
  10. #include "CFTTPPPolyhedron.h"
  11. #include "CFTTPPSphere.h"
  12. #include "CFTTPhysics.h"
  13. #include "CModelManager.h"
  14. #include "CPlayerManager.h"
  15. #include "fpoint.h"
  16. #include "memctrl.h"
  17. #include "sub.h"
  18. #include "CBallProj.h"
  19. #include "XSYS.h"
  20. #include "SNDGAME.h"
  21. #include "XML.h"
  22. int s_iEVFStrings[160] = {
  23. 0x184B, 0x184C, 0x1858, 0, 0, 0, 0, 0, 0, 0,
  24. 0x1859, 0x185A, 0, 0, 0, 0, 0, 0, 0, 0, 0x1854,
  25. 0x1855, 0x1856, 0, 0, 0, 0, 0, 0, 0,
  26. 0x184F, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  27. 0x1850, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  28. 0x184E, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  29. 0x186B, 0x186C, 0, 0, 0, 0, 0, 0, 0, 0,
  30. 0x184D, 0x1851, 0x1852, 0x1853, 0x1857, 0x186A, 0, 0, 0, 0,
  31. 0x185B, 0x185C, 0x185D, 0x185E, 0x1864, 0x1869, 0, 0, 0, 0,
  32. 0x1860, 0x1861, 0x1862, 0x1865, 0x1866, 0, 0, 0, 0, 0,
  33. 0x1863, 0x1868, 0x1867, 0x185F, 0, 0, 0, 0, 0, 0,
  34. 0x1867, 0x1861, 0x1859, 0x185A, 0, 0, 0, 0, 0, 0,
  35. 0xFB, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x1878, 0x1879,
  36. 0, 0, 0, 0, 0, 0, 0, 0, 0x1876, 0x1877, 0, 0, 0, 0, 0, 0, 0, 0,
  37. 0x186D, 0x186E, 0x186F, 0x1870, 0x1871, 0x1873, 0x1874, 0x1875, 0x1872, 0};
  38. // FREE_tInfo 0x1D20
  39. // FREE_tGoal 0x7634
  40. int FREE_iTeam ;
  41. TFreeGoal FREE_tGoal;
  42. TFreeInfo FREE_tInfo;
  43. CFTTModel *FREE_pStarModel;
  44. int FREE_iPropWeather;
  45. const char *s_sPropModels_SNOW[3] = {
  46. "PKG:/data/env/dressing/cone_snow.ftm",
  47. "PKG:/data/env/dressing/mannequin_snow.ftm",
  48. "PKG:/data/env/dressing/rebounder.ftm"};
  49. CFTTModel *FREE_pPropModel[3];
  50. const char *s_sPropModels[3] = {"PKG:/data/env/dressing/cone.ftm",
  51. "PKG:/data/env/dressing/mannequin.ftm",
  52. "PKG:/data/env/dressing/rebounder.ftm"};
  53. const char *s_sPropModels_Shadow[3] = {"PKG:/data/env/dressing/cone.ftm",
  54. "PKG:/data/env/dressing/mannequin_s.ftm",
  55. "PKG:/data/env/dressing/rebounder.ftm"};
  56. CFTTModel *FREE_pPropModelShadow[3];
  57. //-------------------------------------------------------------------------------------------------
  58. // 001D2758
  59. int FREE_GetLevelFilename(char *, int, char *, bool &) { return 0; }
  60. //-------------------------------------------------------------------------------------------------
  61. // 001D27EC
  62. void FREE_GetWorldRot(TPoint, TPoint) {}
  63. //-------------------------------------------------------------------------------------------------
  64. // 001D281C
  65. void FREE_CalcKickAngle(TPoint3D *, TPoint3D, TPoint3D, int, int, int *) {}
  66. //-------------------------------------------------------------------------------------------------
  67. // 001D2A98
  68. int FREE_PassCheckPath(CPlayer *, TPoint, TPoint) { return 0; }
  69. //-------------------------------------------------------------------------------------------------
  70. // 001D2BC0
  71. void FREE_ResolveEndPoint(TPoint3D *, TPoint3D *, TPoint *, int *, bool) {}
  72. //-------------------------------------------------------------------------------------------------
  73. // 001D30B8
  74. void FREE_GetKickPower(EAnimID, int *, int *) {}
  75. //-------------------------------------------------------------------------------------------------
  76. // 001D30FC
  77. void FREE_ProcessControls(bool) {}
  78. //-------------------------------------------------------------------------------------------------
  79. // 001D3EC8
  80. int FREE_CalcKickTargetTime(int) { return 0; }
  81. //-------------------------------------------------------------------------------------------------
  82. // 001D3EEC
  83. void FREE_ResetControls() {}
  84. //-------------------------------------------------------------------------------------------------
  85. // 001D3F24
  86. int FREE_PassIsLowKick(TFreeControl *, TPoint3D *, TPoint3D *, int) {
  87. return 0;
  88. }
  89. //-------------------------------------------------------------------------------------------------
  90. // 001D3FA8
  91. void FREE_ControlGetKickLimits(CPlayer *player0, int *pi1, int *pi2, int *pi3) {
  92. int *var_58 = pi1;
  93. int *var_54 = pi2;
  94. int *var_50 = pi3;
  95. int var_2C = 0;
  96. int var_28 = 0;
  97. TPoint3D var_38;
  98. TPoint3D var_48;
  99. int r0_i = player0->tStr32_44.field_10;
  100. FREE_GetKickPower((EAnimID)r0_i, &var_28, &var_2C);
  101. var_28 = 100;
  102. int r4_i = 21627;
  103. var_48.point_0.dy_4 = XMATH_InterpolateClamp(100, 0, 1600, 0, r4_i);
  104. r0_i = XMATH_InterpolateClamp(var_2C, 0, 1600, 0, r4_i);
  105. // 001D3FF0
  106. if (r0_i < r4_i) {
  107. // 001D3FF4
  108. r4_i = r0_i;
  109. }
  110. // 001D3FF6
  111. var_48.dz_8 = r4_i;
  112. r0_i = 0;
  113. int r7_i = 163840;
  114. int r6_i = 0;
  115. r4_i = 0;
  116. var_48.point_0.dx_0 = r0_i;
  117. int r1_i;
  118. // loc_1D40EA
  119. while (r7_i != 1998848) {
  120. // loc_1D4006
  121. int r2_i = FREE_CalcKickTargetTime(r7_i);
  122. int r9_i = 4096;
  123. // r5 = cball
  124. int r8_i = cBall.ballPosPrev_4.point_0.dx_0;
  125. int r3_i = cBall.ballPosPrev_4.point_0.dy_4;
  126. int r10_i = r7_i + r3_i;
  127. // 356A7C - 0x356A70
  128. r0_i = cBall.ballPosPrev_4.dz_8;
  129. int var_3C = r6_i;
  130. int r11_i;
  131. // 001D4024
  132. if (r0_i < 32768) {
  133. // 001D402A
  134. TPoint3D tp1;
  135. // int var_4C = r2_i;
  136. tp1.point_0.dx_0 = r8_i;
  137. tp1.point_0.dy_4 = r3_i;
  138. tp1.dz_8 = r0_i;
  139. TPoint3D tp2;
  140. tp2.point_0.dx_0 = r8_i;
  141. tp2.point_0.dy_4 = r10_i;
  142. tp2.dz_8 = r9_i;
  143. /*
  144. * 描述:此处在连续入栈时STRD和STM有出入
  145. * 原始汇编: STMEA.W SP, {R0,R8,R10}
  146. * 自已汇编: STRD.W R10, R8, [SP,#0x78+var_78]
  147. */
  148. int var_4C = r2_i;
  149. r0_i = cBall.SetBallMoveToPosLow(&var_38, tp1, tp2, r2_i, -1);
  150. r11_i = r7_i;
  151. r1_i = var_48.point_0.dx_0;
  152. // 001D404A
  153. if (r0_i < var_48.dz_8) {
  154. // 001D4050
  155. r1_i = r7_i;
  156. }
  157. var_48.point_0.dx_0 = r1_i;
  158. r1_i = var_48.point_0.dy_4;
  159. // 001D4056
  160. if (r0_i < r1_i) {
  161. // 001D405A
  162. r11_i = r4_i;
  163. }
  164. // 001D405C
  165. if (r4_i != 0) {
  166. // 001D4060
  167. r11_i = r4_i;
  168. }
  169. // 001D4062
  170. r2_i = cBall.ballPosPrev_4.point_0.dx_0;
  171. r3_i = cBall.ballPosPrev_4.point_0.dy_4;
  172. r1_i = r8_i;
  173. r0_i = cBall.ballPosPrev_4.dz_8;
  174. r8_i = r2_i;
  175. r2_i = var_4C;
  176. } else {
  177. // loc_1D4070
  178. r1_i = r8_i;
  179. r11_i = r4_i;
  180. }
  181. // 001D4076
  182. TPoint3D var_78;
  183. var_78.point_0.dx_0 = r8_i;
  184. var_78.point_0.dy_4 = r3_i;
  185. var_78.dz_8 = r0_i;
  186. TPoint3D var_6C;
  187. var_6C.point_0.dx_0 = r1_i;
  188. var_6C.point_0.dy_4 = r10_i;
  189. var_6C.dz_8 = r9_i;
  190. r4_i = r2_i;
  191. int r5_i =
  192. cBall.SetBallMoveToPosSpin(&var_38, 0, -2000, var_78, var_6C, r2_i, 0);
  193. r0_i = r0_i * 2;
  194. r1_i = (uint)r0_i / (uint)5u;
  195. // r0_i = var_38.dz_8 ;
  196. r0_i = r7_i;
  197. // 001D40A4
  198. if (var_38.dz_8 > r1_i) {
  199. // 001D40AA
  200. r5_i = XMATH_Mag3D(&var_38);
  201. r0_i = var_38.dz_8;
  202. r0_i = r0_i / 49;
  203. r0_i = r0_i * r7_i;
  204. r0_i = r0_i / r4_i;
  205. } // loc_1D40C4
  206. r4_i = r0_i;
  207. r1_i = var_48.point_0.dy_4;
  208. r7_i += 32768;
  209. // 001D40CC
  210. if (r5_i < r1_i) {
  211. // 001D40D0
  212. r4_i = r11_i;
  213. }
  214. // 001D40D2
  215. if (r11_i != 0) {
  216. // 001D40D8
  217. r4_i = r11_i;
  218. }
  219. r6_i = var_3C;
  220. // 001D40DC
  221. if (r0_i <= r6_i) {
  222. // 001D40E0
  223. r0_i = r6_i;
  224. }
  225. r1_i = var_48.dz_8;
  226. // 001D40EA
  227. if (r5_i < r1_i) {
  228. // 001D40E8
  229. r6_i = r0_i;
  230. }
  231. } // loc_1D4006
  232. r0_i = r4_i << 1u;
  233. r1_i = 3;
  234. r0_i = r0_i / r1_i;
  235. int *r1_pi = var_58;
  236. *r1_pi = r0_i;
  237. r1_i = var_48.point_0.dx_0;
  238. // 001D40EA
  239. if (r1_i >= 1146880) {
  240. // 001D40F0
  241. r1_i = 1146880;
  242. }
  243. *var_54 = r1_i;
  244. *var_50 = r6_i;
  245. }
  246. //-------------------------------------------------------------------------------------------------
  247. // 001D4120
  248. void FREE_Init() {}
  249. //-------------------------------------------------------------------------------------------------
  250. // 001D4160
  251. void FREE_Shutdown() {}
  252. //-------------------------------------------------------------------------------------------------
  253. // 001D41B0
  254. void FREE_InitGoal(int, bool, bool, bool) {}
  255. //-------------------------------------------------------------------------------------------------
  256. // 001D4318 //^_-
  257. //单元测试等级:目测游戏表现
  258. //测试内容:启动游戏到第1关传球射门
  259. //测试结果: 游戏表现正常无崩溃且无明显变化,检测到日志输出
  260. //测试分支: 001D4318
  261. void FREE_SetupDifficulty() {
  262. /*
  263. * 描述:此处自己的汇编变量赋值上顺序有不同,多种尝试,不太容易完全一致
  264. */
  265. FREE_tInfo.field_1C9C.m_iCPUPlayerCloseDownCount_1CF8 = FREE_tGoal.m_iCPUPlayerCloseDownCount_747C;
  266. FREE_tInfo.field_1C9C.m_fCPUCloseDownDist_1CFC =FREE_tGoal.m_fCPUCloseDownDist_7480;
  267. FREE_tInfo.field_1C9C.m_iCPUKickResponseTime_1D18 = FREE_tGoal.m_iCPUKickResponseTime_749C;
  268. FREE_tInfo.field_1C9C.m_iCPUMoveResponseTime_1D1C = FREE_tGoal.m_iCPUMoveResponseTime_74A0;
  269. FREE_tInfo.field_1C9C.m_iCPUGKRating_1D00 = FREE_tGoal.m_iCPUGKRating_7484;
  270. //注意!!!!!这里的数据符号不对 注意更新 FREE_tGoal.m_fCPUGKSaveAlwaysDistance_7488为float
  271. FREE_tInfo.field_1C9C.m_fCPUGKSaveAlwaysDistance_1D04 = FREE_tGoal.m_fCPUGKSaveAlwaysDistance_7488;
  272. FREE_tInfo.field_1C9C.m_iCPUGKSaveResponseTime_1D08 = FREE_tGoal.m_iCPUGKSaveResponseTime_748C;
  273. FREE_tInfo.field_1C9C.m_fCPUGKSaveSpeed_1D0C =FREE_tGoal.m_fCPUGKSaveSpeed_7490;
  274. FREE_tInfo.field_1C9C.m_fCPUGKSaveDistance_1D10 =FREE_tGoal.m_fCPUGKSaveDistance_7494;
  275. uchar r5_c = FREE_tInfo.field_1C9C.field_1CF6;
  276. FREE_tInfo.field_1C9C.m_iCPUGKPosResponseTime_1D14 =FREE_tGoal.m_iCPUGKPosResponseTime_7498;
  277. // 001D43B6
  278. if (r5_c != 0) {
  279. // 001D43B8
  280. // float s0_f = 2.8;
  281. FREE_tInfo.field_1C9C.m_iCPUGKRating_1D00 =FREE_tGoal.m_iCPUGKRating_7484 - 5;
  282. FREE_tInfo.field_1C9C.m_iCPUGKSaveResponseTime_1D08 = FREE_tGoal.m_iCPUGKSaveResponseTime_748C + 4;
  283. FREE_tInfo.field_1C9C.m_iCPUGKPosResponseTime_1D14 =FREE_tGoal.m_iCPUGKPosResponseTime_7498 + 4;
  284. FREE_tInfo.field_1C9C.m_fCPUGKSaveAlwaysDistance_1D04 = FREE_tGoal.m_fCPUGKSaveAlwaysDistance_7488 -0.200000003f;
  285. // 001D43E6
  286. if ((float)FREE_tGoal.m_fCPUGKSaveDistance_7494 - 0.200000003f > 2.8f) {
  287. // 001D43FA
  288. FREE_tInfo.field_1C9C.m_fCPUGKSaveDistance_1D10 = (float)FREE_tGoal.m_fCPUGKSaveDistance_7494 - 0.200000003f;
  289. } else
  290. FREE_tInfo.field_1C9C.m_fCPUGKSaveDistance_1D10 = 2.8f;
  291. FREE_tInfo.field_1C9C.m_fCPUGKSaveSpeed_1D0C =FREE_tGoal.m_fCPUGKSaveSpeed_7490 -5.0f;
  292. }
  293. // locret_1D4410
  294. }
  295. //-------------------------------------------------------------------------------------------------
  296. // 001D4424
  297. void FREE_Initialise() {}
  298. //-------------------------------------------------------------------------------------------------
  299. // 001D49C0
  300. void FREE_UpdateCamera(bool) {}
  301. //-------------------------------------------------------------------------------------------------
  302. // 001D56CC
  303. void FREE_ClipPathBounds(TPoint3D *, TPoint3D *, int, int, int, int) {}
  304. //-------------------------------------------------------------------------------------------------
  305. // 001D5718
  306. // void FREE_GameLoop() {
  307. // int r0_i = 0;
  308. // int r1_i = 0;
  309. // int r2_i = 0;
  310. // // 001D571E
  311. // if (NIS_Active() != 0) {
  312. // // 001D5720
  313. // // NIS_GameLoop();
  314. // CFreeHUD::Process();
  315. // // 47F7D8 - 0x47DFB0
  316. // r0_i = FREE_tInfo.filed_0.gamestatus_1828;
  317. // // 001D5734
  318. // if (r0_i == 6) {
  319. // // 001D5738
  320. // FREE_ProcessFail();
  321. // r1_i = FREE_tInfo.filed_0.field_182C;
  322. // r1_i = r1_i + 1;
  323. // FREE_tInfo.filed_0.field_182C = r1_i;
  324. // return;
  325. // } else {
  326. // // locret_1D582E
  327. // return;
  328. // }
  329. // }
  330. // // loc_1D5748
  331. // // 47F7D8 - 0x47DFB0 = 1828
  332. // r0_i = FREE_tInfo.filed_0.gamestatus_1828;
  333. // // 001D5754
  334. // if (r0_i != 8) {
  335. // // 001D5758
  336. // tGame.maybe_sound_0++;
  337. // }
  338. // // loc_1D5764
  339. // // 004877F5
  340. // NISGOAL_tInfo.field_1 = 0;
  341. // // 47DFB1 - 0x47DFB0
  342. // FREE_tInfo.filed_0.b_1 = 1;
  343. // // 001D5776
  344. // if (CReplay::Playing() != 0) {
  345. // // 001D5778
  346. // CReplay::Play();
  347. // }
  348. // // loc_1D577C
  349. // // 47F7D8 - 0x47DFB0
  350. // r0_i = FREE_tInfo.filed_0.gamestatus_1828;
  351. // // 001D5782
  352. // if (r0_i == 7) {
  353. // // 47F7DC - 0x47DFB0
  354. // r1_i = FREE_tInfo.filed_0.field_182C;
  355. // // 3A27BC - 0x39BB88
  356. // r2_i = tGame.field_6C34;
  357. // // 001D5798
  358. // if (r2_i < r1_i) {
  359. // // 001D579C
  360. // r0_i = tGame.mTLogic_6678.field_50;
  361. // r1_i = FREE_tInfo.filed_0.pFREE_tGoal_1818->m_iUserPlayer_7458;
  362. // if (r1_i == r0_i) {
  363. // // 001D57C6
  364. // CGFXFX::EnableStarPlayerEffects();
  365. // }
  366. // } else {
  367. // // loc_1D57B0
  368. // r0_i = FREE_tInfo.filed_0.pFREE_tGoal_1818->m_iUserPlayer_7458;
  369. // r1_i = FREE_tInfo.filed_0.field_1830;
  370. // if (r1_i == r0_i) {
  371. // // 001D57C6
  372. // CGFXFX::EnableStarPlayerEffects();
  373. // }
  374. // }
  375. // }
  376. // // loc_1D57CA
  377. // // lostphp.com/hexconvert该网站转换,反编译后与原汇编一致
  378. // float r0_f = 0.01666666753590107;
  379. // CGFXFX::Update(r0_f);
  380. // GFXCAMERA_ApplyIngameSettings(-1, -1);
  381. // GFXCAMERA_UpdateMatrices();
  382. // int r4_i = FREE_ProcessLogic();
  383. // // 47FC60 - 0x47DFB0
  384. // FREE_UpdateCamera(FREE_tInfo.field_1C9C.field_1CB0 == false);
  385. // // 001D57F2
  386. // if (r4_i != 0) {
  387. // // 001D57F8
  388. // if (CReplay::Playing() != 0) {
  389. // // loc_1D57FA
  390. // CAM_Update();
  391. // return;
  392. // }
  393. // } else {
  394. // // loc_1D57FA
  395. // CAM_Update();
  396. // return;
  397. // }
  398. // // loc_1D5802
  399. // // 3A2208 - 0x39BB88
  400. // r0_i = tGame.mTLogic_6678.field_8;
  401. // // 001D580E
  402. // if (r0_i == 2) {
  403. // // 001D5812
  404. // // 3A2238 - 0x39BB88
  405. // r0_i = tGame.mTLogic_6678.field_38;
  406. // // 001D5818
  407. // if (r0_i <= 29) {
  408. // // 001D581C
  409. // CReplay::RecordFrame();
  410. // }
  411. // } else {
  412. // // loc_1D5822
  413. // CReplay::RecordFrame();
  414. // }
  415. // // loc_1D5826
  416. // // 3A22A0 - 0x39BB88
  417. // r0_i = tGame.mTLogic_6678.field_A0;
  418. // // 001D582C
  419. // if (r0_i != 0) {
  420. // // locret_1D582E
  421. // return;
  422. // }
  423. // // loc_1D5830
  424. // CPlayerManager::UpdatePlayersLogic();
  425. // FREE_CheckCollision();
  426. // cBall.UpdateFrame();
  427. // // 47F7D8 - 0x47DFB0
  428. // r0_i = FREE_tInfo.filed_0.gamestatus_1828;
  429. // // 001D584A
  430. // if (r0_i != 4) {
  431. // // 001D584E
  432. // COL_PlayerCollisions();
  433. // }
  434. // // 001D5852
  435. // PhysicsTest();
  436. // cBall.CheckEvents();
  437. // // lostphp.com/hexconvert该网站转换,反编译后与原汇编一致
  438. // GFXNET::Update(0.01666666753590107f);
  439. // GL_UpdatePlayMode();
  440. // GM_CalcPlayerDist();
  441. // GM_CalcPlayerBallInterceptions();
  442. // FREE_LogicProcess();
  443. // // 3A2204 - 0x39BB88
  444. // r0_i = (uchar)tGame.mTLogic_6678.field_4;
  445. // // 001D5878
  446. // if (r0_i == 0) {
  447. // // 001D587C
  448. // r0_i = FREE_tInfo.filed_0.gamestatus_1828;
  449. // // 001D5882
  450. // if (r0_i >= 4) {
  451. // // 001D5886
  452. // CPlayerManager::UpdatePlayers();
  453. // }
  454. // // 001D588A
  455. // COMM_Process();
  456. // }
  457. // // loc_1D57FA
  458. // CAM_Update();
  459. // return;
  460. // }
  461. //-------------------------------------------------------------------------------------------------
  462. // 001D58B4
  463. void FREE_StoreRewindState() { tGame.mTLogic_6678.field_8 = rand() % 10; }
  464. //-------------------------------------------------------------------------------------------------
  465. // 001D5A3E
  466. void FREE_UpdateRewindState() {}
  467. //-------------------------------------------------------------------------------------------------
  468. // 001D5A40
  469. void FREE_RestoreRewindState() {}
  470. //-------------------------------------------------------------------------------------------------
  471. // 001D5AE4
  472. void FREE_BeginRewind() {}
  473. //-------------------------------------------------------------------------------------------------
  474. // 001D5B30
  475. int FREE_RewindFrame() { return 0; }
  476. //-------------------------------------------------------------------------------------------------
  477. // 001D5C0C
  478. void FREE_ClipPathBounds(TPoint *, TPoint *, int, int, int, int) {}
  479. //-------------------------------------------------------------------------------------------------
  480. // 001D656C
  481. void FREE_IdleProcess() {
  482. tGame.mTLogic_6678.field_8 = 1;
  483. LOGE("FREE_IdleProcess");
  484. }
  485. //-------------------------------------------------------------------------------------------------
  486. // 001D66F0
  487. void FREE_SetupKick(TFreeControl *, TPoint3D *) {}
  488. void COUNTER_UpdateGenericCounters(void) {
  489. LOGE("COUNTER_UpdateGenericCountersrand=%x", rand());
  490. }
  491. //-------------------------------------------------------------------------------------------------
  492. // 001D6778 //^_-
  493. //单元测试等级:目测游戏表现
  494. //测试内容:启动游戏到第5关传球射门
  495. //测试结果: 修复后游戏表现正常
  496. void FREE_LogicProcess() {
  497. tGame.mTLogic_6678.field_AC = cBall.ballPosPrev_4.point_0.dx_0;
  498. tGame.mTLogic_6678.field_B0 = cBall.ballPosPrev_4.point_0.dy_4;
  499. // 001D679E
  500. if (tGame.mTLogic_6678.field_8 > 2 && tGame.mTLogic_6678.field_8 < 5) {
  501. // 001D67A2
  502. FREE_IdleProcess();
  503. } else {
  504. // loc_1D67A8
  505. if (tGame.mTLogic_6678.field_8 == 1) {
  506. // 001D67AC
  507. COUNTER_UpdateGenericCounters();
  508. }
  509. // loc_1D67B0
  510. }
  511. // loc_1D67B0
  512. if (tGame.mTLogic_6678.field_10 == 0) {
  513. if (tGame.mTLogic_6678.field_8 != 1) {
  514. // 001D67C4
  515. CPlayerManager::SetPlayersWalking(1);
  516. }
  517. }
  518. // loc_1D67C8
  519. tGame.field_6C34++;
  520. tGame.field_6C38++;
  521. }
  522. //-------------------------------------------------------------------------------------------------
  523. // 001D67E8
  524. int FREE_GetPassTargetPlayer(CPlayer *, int *) { return 0; }
  525. //-------------------------------------------------------------------------------------------------
  526. // 001D6918
  527. void FREE_ProcessShotAnim(CPlayer *) {}
  528. //-------------------------------------------------------------------------------------------------
  529. // 001D6CD8
  530. void FREE_ProcessUserTeam() {}
  531. //-------------------------------------------------------------------------------------------------
  532. // 001D7D74
  533. void FREE_ProcessOppoTeam() {}
  534. //-------------------------------------------------------------------------------------------------
  535. // 001D848C
  536. void FREE_ProcessFree() {}
  537. //-------------------------------------------------------------------------------------------------
  538. // 001D86C4
  539. void FREE_ProcessFail() {}
  540. //-------------------------------------------------------------------------------------------------
  541. // 001D8884
  542. void FREE_PlayCommentaryClearance() {}
  543. //-------------------------------------------------------------------------------------------------
  544. // 001D8944
  545. void FREE_PlayCommentaryInterception() {}
  546. //-------------------------------------------------------------------------------------------------
  547. // 001D8998
  548. void FREE_SetupKickAction(TPoint3D tPoint3D0, int i1, int i2) {
  549. TPoint3D var_30_sp18 = tPoint3D0;
  550. int r4_i = FREE_tInfo.filed_0.field_1834;
  551. CPlayer* r5_player = tGame.allplay_14[FREE_iTeam].teamlist_0[FREE_tInfo.filed_0.field_1840];
  552. int r0_i = r4_i + 1;
  553. // 001D89DA
  554. if (r0_i == -1) {
  555. // 001D89DE
  556. r0_i = CAnimManager::GetActionAnim(r5_player, EPlayerState_12, &var_30_sp18, i2, 0, 10, -1, 0);
  557. r4_i = r0_i;
  558. FREE_tInfo.filed_0.field_1834 = r0_i;
  559. }
  560. // loc_1D89FE
  561. TAnimData* r7_pAnimData = &CAnimManager::s_tAnimData[r4_i];
  562. int r11_i = CAnimManager::GetActionTime(r4_i, 0, 1024);
  563. TPoint var_38;
  564. r0_i = r7_pAnimData->s_64;
  565. int r8_i = i2;
  566. r4_i = r8_i;
  567. int r3_i = r8_i - r0_i;
  568. r5_player->GetAnimActionPoint(&var_38, r7_pAnimData, r3_i & 0x3FFFu, 0);
  569. // FREE_tInfo.field_1870 = var_30.point_0; 这句是多余的?
  570. // 47F838 - 0x47DFB0 = 1888
  571. // 47F828 - 0x47DFB0 = 1878
  572. r0_i = var_30_sp18.point_0.dx_0;
  573. int r1_i = var_30_sp18.point_0.dy_4;
  574. int r2_i = var_30_sp18.dz_8;
  575. FREE_tInfo.field_1878 = r2_i;
  576. FREE_tInfo.field_1888 = r4_i;
  577. r3_i = tGame.maybe_sound_0;
  578. r2_i = var_38.dx_0;
  579. int r5_i = var_38.dy_4;
  580. r5_i = r1_i - r5_i;
  581. r4_i = r0_i - r2_i;
  582. // 47F82C - 0x47DFB0 = 187C
  583. FREE_tInfo.field_187C = r4_i;
  584. // 47F830 - 0x47DFB0 = 1880
  585. FREE_tInfo.field_1880 = r5_i;
  586. r0_i = i1 - r11_i;
  587. // 001D8A4C
  588. if (i1 != 0) {
  589. // 001D8A7C
  590. r3_i = r3_i + r0_i;
  591. }
  592. // 47F834 - 0x47DFB0 = 1884
  593. FREE_tInfo.field_1884 = r3_i;
  594. FREE_tInfo.field_1870 = var_38;
  595. // 001D8A8A
  596. if (i1 == 0) {
  597. // 001D8A94
  598. TPoint tPoint;
  599. tPoint.dx_0 = r4_i;
  600. tPoint.dy_4 = r5_i;
  601. r5_player->SetPos(tPoint);
  602. r5_player->SetMoveDest(tPoint);
  603. r0_i = r7_pAnimData->s_64;
  604. r1_i = i2;
  605. r1_i = r1_i - r0_i;
  606. r5_player->SetRot(r1_i & 0x3FFFu, 1);
  607. }
  608. // loc_1D8ABA
  609. }
  610. //-------------------------------------------------------------------------------------------------
  611. // 001D8AD0
  612. void FREE_CheckGKHandPos(CPlayer *, int) {}
  613. //-------------------------------------------------------------------------------------------------
  614. // 001D8B9C
  615. int FREE_SetupPhaseTransition(bool) { return 0; }
  616. //-------------------------------------------------------------------------------------------------
  617. // 001D8DB4
  618. int FREE_PlayerGetUrgency(CPlayer *, int) { return 0; }
  619. //-------------------------------------------------------------------------------------------------
  620. // 001D8E68
  621. void FREE_ProcessInProgressCore() {}
  622. //-------------------------------------------------------------------------------------------------
  623. // 001D956C
  624. void FREE_UpdateSuccess(void) {
  625. // 001D956C
  626. TPoint3D var_30_sp20;
  627. TPoint3D var_40_sp10;
  628. /*
  629. * 描述:寄存嚣加载略有不同,VLDR,VLD1.8这两个不知道到底什么区别
  630. * 原始汇编:VLDR D16, [R2]
  631. * 自己汇编:VLD1.8 {D16}, [R2]
  632. */
  633. TPoint3D var_50_sp0 = FREE_tInfo.filed_0.point3D_1848;
  634. // 001D958E
  635. if (FREE_tInfo.filed_0.field_1840 > -1) {
  636. // 001D959C
  637. int r1_i = var_50_sp0.dz_8;
  638. // 001D95A8
  639. if (r1_i <= 0x1000) {
  640. // 001D95A8
  641. r1_i = 0x1000;
  642. }
  643. var_50_sp0.dz_8 = r1_i;
  644. cBallProj.EnsureProj(FREE_tInfo.filed_0.kickTargetTime_1838 + 10);
  645. int r0_i = FREE_tInfo.filed_0.kickTargetTime_1838;
  646. int r7_i = 0x7FFFFFFF;
  647. int r8_i = 600;
  648. // r10 = var_50
  649. int r5_i = r0_i - 10;
  650. int r11_i;
  651. // loc_1D963E
  652. while (r5_i <= r0_i + 10) {
  653. // loc_1D95D4
  654. r0_i = cBallProj.field_E4;
  655. // 47F7EC - 0x47DFB0 =183C
  656. r0_i = r0_i + r5_i;
  657. r0_i = r0_i % 512;
  658. var_40_sp10 = cBallProj.field_E8[r0_i].point3D_0;
  659. // r9 = var40
  660. if (FREE_tInfo.filed_0.field_183C[0] != 0) {
  661. // 001D960E
  662. r0_i = XMATH_Distance(&var_40_sp10.point_0, &var_50_sp0.point_0);
  663. } else {
  664. // loc_1D9616
  665. r0_i = XMATH_Distance3D(&var_40_sp10, &var_50_sp0);
  666. }
  667. // loc_1D961C
  668. if (r0_i < r7_i) {
  669. // 001D9620
  670. r7_i = r0_i;
  671. r8_i = r5_i;
  672. r11_i = var_40_sp10.dz_8 - var_50_sp0.dz_8;
  673. var_30_sp20 = var_40_sp10;
  674. }
  675. // loc_1D9636
  676. // 47F7E8 - 0x47DFB0 =1838
  677. r5_i++;
  678. r0_i = FREE_tInfo.filed_0.kickTargetTime_1838;
  679. }
  680. // 001D9644
  681. if (FREE_tInfo.filed_0.field_183C[0] == 0) {
  682. // 001D9644
  683. cBall.ballMovePrev_10.dz_8 = cBall.ballMovePrev_10.dz_8 - r11_i / r8_i;
  684. }
  685. // loc_1D9660
  686. cBallProj.EnsureProj(r8_i + 1);
  687. FREE_tInfo.filed_0.point3D_1848 = var_30_sp20;
  688. FREE_tInfo.field_1884 = tGame.maybe_sound_0 + r8_i;
  689. FREE_tInfo.filed_0.gamestatus_1828 = 7;
  690. // 47F834 - 0x47DFB0 =1884
  691. CStoryCore::m_tStageManager.pStory_5cf4->CreateNPPhoto();
  692. // loc_1D96BC
  693. } else {
  694. // loc_1D96A8
  695. FREE_tInfo.filed_0.gamestatus_1828 = 7;
  696. CStoryCore::m_tStageManager.pStory_5cf4->CreateNPPhoto();
  697. }
  698. // loc_1D96BC
  699. }
  700. //-------------------------------------------------------------------------------------------------
  701. // 001D96E4
  702. int FREE_ProcessLogic() { return 0; }
  703. //-------------------------------------------------------------------------------------------------
  704. // 001DA0A8
  705. void FREE_PlayCommentaryPassReceive() {}
  706. //-------------------------------------------------------------------------------------------------
  707. // 001DA208
  708. void FREE_PlayCommentaryKick() {}
  709. //-------------------------------------------------------------------------------------------------
  710. // 001DA484
  711. void FREE_SetComplete() {}
  712. //-------------------------------------------------------------------------------------------------
  713. // 001DA5C0
  714. void FREE_PlayersUpset(int) {}
  715. //-------------------------------------------------------------------------------------------------
  716. // 001DA620
  717. void FREE_PlayersCelebrate() {}
  718. //-------------------------------------------------------------------------------------------------
  719. // 001DA670
  720. void FREE_CheckCollision() {}
  721. //-------------------------------------------------------------------------------------------------
  722. // 001DA674
  723. //^_^
  724. void FREE_InitProps(void) {}
  725. //-------------------------------------------------------------------------------------------------
  726. // 001DA730
  727. void FREE_UpdateProps() {}
  728. //-------------------------------------------------------------------------------------------------
  729. // 001DA764
  730. void FREE_ShutdownProps() {}
  731. //-------------------------------------------------------------------------------------------------
  732. // 001DA7A4
  733. void FREE_RenderPropShadow(EFreePropType, CFTTMatrix32 *) {}
  734. //-------------------------------------------------------------------------------------------------
  735. // 001DA7BC
  736. void FREE_RenderProp(EFreePropType, CFTTMatrix32 *) {}
  737. //-------------------------------------------------------------------------------------------------
  738. // 001DA7D4
  739. void FREE_RenderPropShadows() {}
  740. //-------------------------------------------------------------------------------------------------
  741. // 001DA8C0
  742. void FREE_RenderProps() {}
  743. //-------------------------------------------------------------------------------------------------
  744. // 001DA9AC
  745. void FREE_ProcessPropCollision(TFreeProp *) {}
  746. //-------------------------------------------------------------------------------------------------
  747. // 001DA9AE
  748. void FREE_ProcessPropCollisions() {}
  749. //-------------------------------------------------------------------------------------------------
  750. // 001DA9B0
  751. //^_^
  752. void FREE_RenderInitOnce() {}
  753. //-------------------------------------------------------------------------------------------------
  754. // 001DA9E0
  755. void FREE_RenderShutdownOnce() {}
  756. //-------------------------------------------------------------------------------------------------
  757. // 001DAA00
  758. void FREE_RenderInit() {}
  759. //-------------------------------------------------------------------------------------------------
  760. // 001DAAAC
  761. void FREE_RenderShutdown() {}
  762. //-------------------------------------------------------------------------------------------------
  763. // 001DAAF4
  764. void FREE_RenderListBegin(char const *, bool, bool) {}
  765. //-------------------------------------------------------------------------------------------------
  766. // 001DAB84
  767. void FREE_RenderListEnd() {}
  768. //-------------------------------------------------------------------------------------------------
  769. // 001DABD4
  770. void FREE_RenderAddVert(TFVF_PFLOAT_CINT_TFLOAT *, CFTTMatrix32 *) {}
  771. //-------------------------------------------------------------------------------------------------
  772. // 001DAC40
  773. void FREE_RenderStar(TPoint3D, float, float) {}
  774. //-------------------------------------------------------------------------------------------------
  775. // 001DACE4
  776. void FREE_RenderTarget(TPoint3D, int, uint, bool) {}
  777. //-------------------------------------------------------------------------------------------------
  778. // 001DAEEC
  779. void FREE_RenderDottedArc(TPoint3D, int, int, int, int, int, uint) {}
  780. //-------------------------------------------------------------------------------------------------
  781. // 001DB0BC
  782. void FREE_RenderRangeCone() {}
  783. //-------------------------------------------------------------------------------------------------
  784. // 001DB3CC
  785. void FREE_RenderDottedLine(TPoint3D, TPoint3D, int, uint, uint) {}
  786. //-------------------------------------------------------------------------------------------------
  787. // 001DB5C0
  788. void FREE_RenderTutorialLine(TPoint3D const &, TPoint3D const &, int) {}
  789. //-------------------------------------------------------------------------------------------------
  790. // 001DB9C8
  791. void FREE_RenderEditPlayerLine(TPoint3D const &, TPoint3D const &) {}
  792. //-------------------------------------------------------------------------------------------------
  793. // 001DBBCC
  794. void FREE_Render3DOpaque() {}
  795. //-------------------------------------------------------------------------------------------------
  796. // 001DBBF0
  797. void FREE_RenderHeroPlayer(bool) {}
  798. //-------------------------------------------------------------------------------------------------
  799. // 001DBEEC
  800. void FREE_Render3DDecal() {}
  801. //-------------------------------------------------------------------------------------------------
  802. // 001DBFC4
  803. void FREE_RenderPreSelectedPlayer() {}
  804. //-------------------------------------------------------------------------------------------------
  805. // 001DC0E0
  806. void FREE_RenderProcess() {
  807. MP_cMyProfile.m_TProfileData.m_CGameSettings_2b80.filed_0.filed_0=rand()%10;
  808. }
  809. //-------------------------------------------------------------------------------------------------
  810. // 001DC0E4
  811. void FREE_AddVisualFeedback(int i0, EVFEffect e1, int i2) {
  812. CStoryHUD* r0_hud = CStoryCore::m_tStageManager.pStory_5cf4;
  813. r0_hud->ClearVisualFeedback();
  814. int r0_i = 0;
  815. int r4_i = i2;
  816. int r5_i = e1;
  817. int r6_i = i0;
  818. // int r7_i =0;
  819. int r1_i = r6_i + r6_i * 4;
  820. int* r7_pi = s_iEVFStrings + r1_i * 2;
  821. // loc_1DC120
  822. while (r0_i <= 9) {
  823. // loc_1DC118
  824. r1_i = *(r7_pi + r0_i);
  825. if (r1_i == 0) {
  826. break;
  827. }
  828. // loc_1DC120
  829. r0_i++;
  830. } // loc_1DC118
  831. // loc_1DC124
  832. r0_i = XSYS_Random(r0_i);
  833. r0_i = *(r7_pi + r0_i);
  834. wchar_t* r1_pwc = LOCstring(r0_i);
  835. wchar_t var_218[256];
  836. xstrlcpy(var_218, r1_pwc, 256);
  837. int r3_i;
  838. int r7_i;
  839. // 47AEA8 - 0x477E90
  840. r0_i = MP_cMyProfile.m_TProfileData.m_CGameSettings_2b80.filed_0.filed_0;
  841. // 001DC148
  842. if (r0_i == 1) {
  843. // 001DC14C
  844. xstrlcat(var_218, L" ", 256);
  845. } else {
  846. // loc_1DC152
  847. xstrlcat(var_218, L"!", 256);
  848. }
  849. /*
  850. * 描述:此处分支被合并到下面的cBall变量访问的代码块中了
  851. * 原始汇编: BLX j__Z8xstrlcatPwPKwj
  852. LDR R0, =(cBall_ptr - 0x1DC166)
  853. ADD R0, PC
  854. LDR R0, [R0]
  855. LDR R1, [R0,#(dword_356A7C - 0x356A70)]
  856. * 自已汇编: ...
  857. * LDR R0, =(cBall_ptr - 0xA26A)
  858. MOV.W R4, #0xFFFFFFFF
  859. ADD R0, PC
  860. LDR R0, [R0]
  861. LDRD.W R3, R2, [R0,#4]
  862. LDR R0, [R0,#(dword_27A4C - 0x27A40)]
  863. */
  864. // 356A7C - 0x356A70
  865. // 001DC168
  866. r1_i = cBall.ballPosPrev_4.dz_8;
  867. if (r1_i <= 98304) {
  868. // 001DC16E
  869. r1_i = 98304;
  870. }
  871. r3_i = cBall.ballPosPrev_4.point_0.dx_0;
  872. int r2_i = cBall.ballPosPrev_4.point_0.dy_4;
  873. bool bC1F8 = false;
  874. // 001DC174
  875. if (r4_i + 1 != 0) {
  876. // 001DC176
  877. if (r5_i == 3) {
  878. // 001DC17A
  879. r1_i = tGame.CPlayer_3050[r4_i].ballPosPrev_4.dz_8;
  880. r2_i = tGame.CPlayer_3050[r4_i].ballPosPrev_4.point_0.dy_4;
  881. r3_i = tGame.CPlayer_3050[r4_i].ballPosPrev_4.point_0.dx_0;
  882. r4_i = -1;
  883. // 001DC18A
  884. if (r6_i != 12) {
  885. // 001DC1A2
  886. r1_i = r1_i + 98304;
  887. }
  888. // loc_1DC1F8
  889. bC1F8 = true;
  890. } else {
  891. // loc_1DC1B2
  892. r1_i = 98304;
  893. r2_i = 0;
  894. r3_i = 0;
  895. }
  896. // loc_1DC1BA
  897. } else {
  898. // loc_1DC1A8
  899. r4_i = -1;
  900. }
  901. if (bC1F8 == false) {
  902. // loc_1DC1BA
  903. uint r0_ui = (uint)r5_i - 1u;
  904. // 001DC1BC
  905. if (r0_ui >= 2) {
  906. // 001DC1C0
  907. if (r5_i != 3) {
  908. // 001DC1C4
  909. if (r5_i == 0) {
  910. // 001DC1C8
  911. // 4B0E34 - 0x4AB140
  912. CStoryHUD* r0_hud = CStoryCore::m_tStageManager.pStory_5cf4;
  913. r7_i = 0;
  914. r6_i = 1;
  915. int var_228 = r6_i;
  916. int var_224 = r7_i;
  917. int var_220 = r4_i;
  918. int r12_i = -256;
  919. float r5_f = 1;
  920. r4_i = 100;
  921. r6_i = 1602;
  922. TPoint3D tp3d0;
  923. tp3d0.point_0.dx_0 = r3_i;
  924. tp3d0.point_0.dy_4 = r2_i;
  925. tp3d0.dz_8 = r1_i;
  926. TPoint3D tp3d1;
  927. tp3d1.point_0.dx_0 = r7_i;
  928. tp3d1.point_0.dy_4 = r7_i;
  929. tp3d1.dz_8 = r6_i;
  930. return r0_hud->AddVisualFeedback(var_218, 0, tp3d0, tp3d1, r4_i, r5_f, r12_i,
  931. var_228, (EVFEffect)var_224, var_220);
  932. }
  933. // loc_1DC25E
  934. return;
  935. }
  936. // F8
  937. } else {
  938. // loc_1DC228
  939. float r6_f = 0.699999988079071;
  940. r7_i = 1;
  941. CStoryHUD* r0_hud = CStoryCore::m_tStageManager.pStory_5cf4;
  942. int var_228 = r7_i;
  943. int var_224 = r5_i;
  944. int var_220 = r4_i;
  945. r5_i = 60;
  946. r7_i = 0;
  947. r4_i = 1602;
  948. int r12_i = -1;
  949. TPoint3D tp3d0;
  950. tp3d0.point_0.dx_0 = r3_i;
  951. tp3d0.point_0.dy_4 = r2_i;
  952. tp3d0.dz_8 = r1_i;
  953. TPoint3D tp3d1;
  954. tp3d1.point_0.dx_0 = r7_i;
  955. tp3d1.point_0.dy_4 = r7_i;
  956. tp3d1.dz_8 = r4_i;
  957. return r0_hud->AddVisualFeedback(var_218, 0, tp3d0, tp3d1, r5_i, r6_f, r12_i, var_228,
  958. (EVFEffect)var_224, var_220);
  959. }
  960. }
  961. // loc_1DC1F8
  962. r0_i = -801;
  963. r7_i = 1;
  964. r6_i = -12566464;
  965. int lr_i = r0_i;
  966. // lostphp.com/hexconvert该网站转换,反编译后与原汇编一致
  967. float r12_f = 0.699999988079071;
  968. r0_hud = CStoryCore::m_tStageManager.pStory_5cf4;
  969. int var_228 = r7_i;
  970. int var_224 = r5_i;
  971. r7_i = 40;
  972. r5_i = 0;
  973. TPoint3D tp3d0;
  974. tp3d0.point_0.dx_0 = r3_i;
  975. tp3d0.point_0.dy_4 = r2_i;
  976. tp3d0.dz_8 = r1_i;
  977. TPoint3D tp3d1;
  978. tp3d1.point_0.dx_0 = r5_i;
  979. tp3d1.point_0.dy_4 = r5_i;
  980. tp3d1.dz_8 = lr_i;
  981. r0_hud->AddVisualFeedback(var_218, 0, tp3d0, tp3d1, r7_i, r12_f, r6_i, var_228, (EVFEffect)var_224, r4_i);
  982. }
  983. //-------------------------------------------------------------------------------------------------
  984. // 001DC290
  985. void FREE_AddVisualFeedback_Pass() {
  986. TPoint var_1C = cBallProj.field_E8[((cBallProj.field_E4 + 1) % 512)].point3D_0.point_0;
  987. CPlayer* r7_pplayer = tGame.mTMath_6734.pPlayer_134[FREE_iTeam];
  988. int r0_i = XMATH_Distance(&tGame.mTLogic_6678.field_64, &var_1C);
  989. // 3A2278 - 0x39BB88 = 66F0
  990. int r2_i = tGame.mTLogic_6678.field_78; //[2]
  991. TAnimData* anims = CAnimManager::s_tAnimData;
  992. int r1_i = (ushort)anims[r2_i].u_C.filed_C;
  993. r1_i = r1_i & 1032u;
  994. int r4_i;
  995. EVFEffect r5_i;
  996. /*
  997. * 描述: 原汇编r5= 1有归并,自己汇编分成了两处, 寄存嚣分配有出入
  998. * 原始汇编: loc_1DC30A
  999. * MOVS R5, #1
  1000. B loc_1DC31A
  1001. * 自已汇编: BLE loc_E2EC
  1002. MOVS R4, #1
  1003. */
  1004. // bool bC30A = false;
  1005. // 001DC2FC
  1006. if (r1_i == 0) {
  1007. // loc_1DC302
  1008. if (r0_i > 819200) {
  1009. // 001DC308
  1010. r4_i = 8;
  1011. r5_i = EVFEffect_1;
  1012. } else {
  1013. // loc_1DC30E
  1014. r4_i = 9;
  1015. if (r0_i < 327680) {
  1016. // 001DC316
  1017. r4_i = 10;
  1018. }
  1019. r5_i = EVFEffect_2;
  1020. }
  1021. } else {
  1022. r4_i = 11;
  1023. r5_i = EVFEffect_1;
  1024. }
  1025. // loc_1DC30A
  1026. // loc_1DC31A
  1027. CPlayer* r0_pplayer = &tGame.CPlayer_3050[0];
  1028. r2_i = r7_pplayer - r0_pplayer;
  1029. FREE_AddVisualFeedback(r4_i, r5_i, r2_i);
  1030. r0_i = XSYS_Random(2);
  1031. r0_i = r0_i + 3;
  1032. SNDGAME_Crowd_PlayReaction(r0_i);
  1033. }
  1034. //-------------------------------------------------------------------------------------------------
  1035. // 001DC354
  1036. void FREE_AddVisualFeedback_Goal() {}
  1037. //-------------------------------------------------------------------------------------------------
  1038. // 001DC440
  1039. void FREE_AddVisualFeedback_Fail() {}
  1040. //-------------------------------------------------------------------------------------------------
  1041. // 001DC494
  1042. void FREE_AddVisualFeedback_Offside() {}
  1043. //-------------------------------------------------------------------------------------------------
  1044. // 001DC4C8
  1045. void FREE_SortPlayers(TFreeGoal *a1) {
  1046. LOGE("FREE_SortPlayers%p",a1);
  1047. }
  1048. //-------------------------------------------------------------------------------------------------
  1049. // 001DC664
  1050. void FREE_SortPlayersDistance(TFreeGoal *) {}
  1051. //-------------------------------------------------------------------------------------------------
  1052. // 001DC848
  1053. int FREE_ReadXML(TFreeGoal *, int) { return 0; }
  1054. //-------------------------------------------------------------------------------------------------
  1055. // 001DC888
  1056. bool FREE_ReadXML(TFreeGoal *, char *) { return 0; }
  1057. //-------------------------------------------------------------------------------------------------
  1058. // 001DCA14
  1059. void FREE_ReadXMLLevel(int a1,TFreeGoal* tFreeGoal_r0, CFTTXmlReaderNode cXMLReaderNode_r1) {
  1060. TPoint3D tPoint3D_50;
  1061. CFTTXmlReaderNode cNode_48;
  1062. auto cXMLReaderNode_4C = cXMLReaderNode_r1;
  1063. //CFTTXmlReaderNode cPropNode_54;
  1064. CFTTXmlReaderNode cNodeTeam_40;
  1065. CFTTXmlReaderNode cNodePlayer_3C;
  1066. TPoint tPoint_34;
  1067. TPoint tZero_74;
  1068. // int iTeam_No_Index_78;
  1069. char pFormatBuf_50[0x20];
  1070. TPoint3D tPoint3D_98;
  1071. TPoint tPoint_98;
  1072. // 001DCA30
  1073. memset(tFreeGoal_r0, 0, sizeof(TFreeGoal)); // sizeof(TFreeGoal) = 0x7634
  1074. // 001DCA3A
  1075. cNode_48 = cXMLReaderNode_r1.GetFirstChild("Info");
  1076. // 001DCA46 <- **if 分支**
  1077. if (cNode_48.IsValid()) {
  1078. // 001DCA48 OK
  1079. tFreeGoal_r0->m_iVersion_0 = XMLGetInt(cNode_48, "Version", NULL, 0); // 001DCA56 <- **字段 0 赋值**
  1080. }
  1081. // 001DCA66
  1082. if (XMLExists(cXMLReaderNode_r1, "Ball", "Pos")) {
  1083. // 001DCA68 OK
  1084. // 001DCA7C <- **结构体赋值**
  1085. //tPoint3D_98 = g_vZero3;
  1086. // 001DCA86 <- **call XMLGetPos3D**
  1087. tPoint3D_50 = XMLGetPos3D(cXMLReaderNode_r1, "Ball", "Pos", g_vZero3); // 001DCA86 <- **函数调用,结构体传参通过栈拷贝**
  1088. // 001DCA94 <- **TPoint3D.dz_8 赋值**
  1089. tFreeGoal_r0->m_tBallPos_744C.dz_8 = tPoint3D_50.dz_8;
  1090. // 001DCA9C <- **TPoint3D.point_0赋值**
  1091. // tFreeGoal_r0->m_tBallPos_744C.point_0 = tPoint3D_40.point_0;
  1092. tFreeGoal_r0->m_tBallPos_744C.point_0.dx_0 = tPoint3D_50.point_0.dx_0;
  1093. tFreeGoal_r0->m_tBallPos_744C.point_0.dy_4 = tPoint3D_50.point_0.dy_4;
  1094. // 001DCAA6 <- **if 分支**
  1095. if (tFreeGoal_r0->m_tBallPos_744C.dz_8 < 0x1000) {
  1096. // 001DCABC OK
  1097. tFreeGoal_r0->m_tBallPos_744C.dz_8 = 0x1000; // 001DCAC2 <- **字段 744C 赋值**
  1098. }
  1099. } else {
  1100. // 001DCAAA <- **分支地址**
  1101. // 001DCAB0 <- **TPoint.dy_4 赋值**
  1102. // 001DCAB6 <- **TPoint.dx_0 赋值**
  1103. tFreeGoal_r0->m_tBallPos_744C.point_0 = TPoint(0, 0);
  1104. // 001DCAC2
  1105. tFreeGoal_r0->m_tBallPos_744C.dz_8 = 0x1000;
  1106. }
  1107. // 001DCAD8 <- **字段 745C 赋值**
  1108. tFreeGoal_r0->m_iKickPlayer_745C = XMLGetInt(cXMLReaderNode_r1, "KickPlayer", NULL, 0); // 001DCACE <- **函数调用**
  1109. // 001DCAE2 <- **call XMLGetString()**
  1110. char* pKickAnim_r0 = XMLGetString(cXMLReaderNode_r1, "KickAnim", NULL, NULL);
  1111. // 001DCAEA <- **XMLGetString() 返回值判断**
  1112. if (pKickAnim_r0) {
  1113. // 001DCAEC OK
  1114. tFreeGoal_r0->m_iAnimID_7460 = CAnimManager::GetAnimID(pKickAnim_r0); // 001DCB02 <- **字段 7460 赋值**
  1115. } else {
  1116. // 001DCAF2
  1117. tFreeGoal_r0->m_iAnimID_7460 = -1;
  1118. }
  1119. // 001DCB1E <- **字段 7464 赋值**
  1120. tFreeGoal_r0->m_iKickRot_7464 = XMLGetInt(cXMLReaderNode_r1, "KickRot", 0, 0xB4);
  1121. // 001DCB36 <- **字段 8 赋值**
  1122. const char* sWeatherTypes[3] = {"FINE", "RAIN", "SNOW"};
  1123. tFreeGoal_r0->m_iWeather_8 = XMLGetStringInt(cXMLReaderNode_r1, "Weather", NULL, (const char**)sWeatherTypes, 3, -1);
  1124. // 001DCB44 <- **字段 C 赋值**
  1125. tFreeGoal_r0->m_iMaxPhaseCount_C = XMLGetInt(cXMLReaderNode_r1, "MaxPhaseCount", NULL, 0);
  1126. // 001DCB5A <- **字段 10 赋值**
  1127. tFreeGoal_r0->m_bIndirect_10 = XMLGetInt(cXMLReaderNode_r1, "Indirect", NULL, 0) ? true : false; // 001DCB52 <- **三目运算**
  1128. // 001DCB64 <- **call XMLGetString()**
  1129. char const* pShotAnim_r0 = XMLGetString(cXMLReaderNode_r1, "ShotAnim", NULL, NULL);
  1130. // 001DCB68 <- **返回值判断**
  1131. if (pShotAnim_r0) {
  1132. // 001DCB6A
  1133. tFreeGoal_r0->m_iShotAnimID_7468 = CAnimManager::GetAnimID(pShotAnim_r0); // 001DCB82 <- **字段 7468 赋值**
  1134. } else {
  1135. // 001DCB70 OK
  1136. tFreeGoal_r0->m_iShotAnimID_7468 = -1; // 001DCB7E <- **返回值空则赋值 -1**
  1137. }
  1138. // 001DCB92 <- **字段 746C 赋值**
  1139. tFreeGoal_r0->m_iShotAnimPlayer_746C = XMLGetInt(cXMLReaderNode_r1, "ShotAnimPlayer", NULL, -1);
  1140. // 001DCB9E <- **call XMLGetFloat()**
  1141. tFreeGoal_r0->m_fShotAnimDistance_7470 = XMLGetFloat(cXMLReaderNode_r1, "ShotAnimDistance", NULL, 24.0f);
  1142. // 001DCBB8 <- **字段 7458 赋值**
  1143. tFreeGoal_r0->m_iUserPlayer_7458 = XMLGetInt(cXMLReaderNode_r1, "UserPlayer", NULL, 0);
  1144. // 001DCBCA <- **字段 747C 赋值**
  1145. tFreeGoal_r0->m_iCPUPlayerCloseDownCount_747C = XMLGetInt(cXMLReaderNode_r1, "CPUPlayerCloseDownCount", NULL, 1);
  1146. // 001DCBDE <- **字段 7480 赋值**
  1147. tFreeGoal_r0->m_fCPUCloseDownDist_7480 = XMLGetFloat(cXMLReaderNode_r1, "CPUCloseDownDist", NULL, 4.0f);
  1148. // 001DCBF0 <- **字段 7484 赋值**
  1149. tFreeGoal_r0->m_iCPUGKRating_7484 = XMLGetInt(cXMLReaderNode_r1, "CPUGKRating", NULL, 0x32);
  1150. // 001DCC02 <- **字段 7490 赋值**
  1151. tFreeGoal_r0->m_fCPUGKSaveSpeed_7490 = XMLGetFloat(cXMLReaderNode_r1, "CPUGKSaveSpeed", NULL, 90.0f);
  1152. // 001DCC16 <- **字段 7494 赋值**
  1153. tFreeGoal_r0->m_fCPUGKSaveDistance_7494 = XMLGetFloat(cXMLReaderNode_r1, "CPUGKSaveDistance", NULL, 4.0f);
  1154. // 001DCC2A <- **字段 7488 赋值**
  1155. tFreeGoal_r0->m_fCPUGKSaveAlwaysDistance_7488 = XMLGetFloat(cXMLReaderNode_r1, "CPUGKSaveAlwaysDistance", NULL, 0.75f);
  1156. // 001DCC3C <- **字段 748C 赋值**
  1157. tFreeGoal_r0->m_iCPUGKSaveResponseTime_748C = XMLGetInt(cXMLReaderNode_r1, "CPUGKSaveResponseTime", NULL, 0xF);
  1158. // 001DCC4E <- **字段 7498 赋值**
  1159. tFreeGoal_r0->m_iCPUGKPosResponseTime_7498 = XMLGetInt(cXMLReaderNode_r1, "CPUGKPosResponseTime", NULL, 0xF);
  1160. // 001DCC5C <- **函数返回值赋值**
  1161. int iCPUPlayerResponseTime_r4 = XMLGetInt(cXMLReaderNode_r1, "CPUPlayerResponseTime", NULL, 0xF); // 001DCC58 <- **函数调用**
  1162. // 001DCC6E <- **字段 749C 赋值**
  1163. tFreeGoal_r0->m_iCPUKickResponseTime_749C = XMLGetInt(cXMLReaderNode_r1, "CPUKickResponseTime", NULL, iCPUPlayerResponseTime_r4);
  1164. // 001DCC80 <- **字段 74A0 赋值**
  1165. tFreeGoal_r0->m_iCPUMoveResponseTime_74A0 = XMLGetInt(cXMLReaderNode_r1, "CPUMoveResponseTime", NULL, iCPUPlayerResponseTime_r4);
  1166. // 001DCC92 <- **字段 7478 赋值**
  1167. tFreeGoal_r0->m_iTEAMKickResponseTime_7478 = XMLGetInt(cXMLReaderNode_r1, "TEAMKickResponseTime", 0, 0xA);
  1168. // 001DCCA4 <- **字段 7474 赋值**
  1169. tFreeGoal_r0->m_iTEAMMoveResponseTime_7474 = XMLGetInt(cXMLReaderNode_r1, "TEAMMoveResponseTime", 0, 5);
  1170. // 001DCCB8 <- **字段 74C4 赋值**
  1171. tFreeGoal_r0->m_fTEAMPassForceShotDist_74C4 = XMLGetFloat(cXMLReaderNode_r1, "TEAMPassForceShotDist", NULL, 8.0f);
  1172. // 001DCCCC <- **字段 74C8 赋值**
  1173. tFreeGoal_r0->m_fTEAMPassForceShotSpace_74C8 = XMLGetFloat(cXMLReaderNode_r1, "TEAMPassForceShotSpace", NULL, 4.0f);
  1174. // 001DCCDE <- **字段 74CC 赋值**
  1175. tFreeGoal_r0->m_iShootBias_74CC = XMLGetInt(cXMLReaderNode_r1, "ShootBias", NULL, 0);
  1176. // 001DCCF0 <- **字段 74D4 赋值**
  1177. tFreeGoal_r0->m_iPassBias_74D4 = XMLGetInt(cXMLReaderNode_r1, "PassBias", NULL, 0);
  1178. // 001DCD02 <- **字段 74DC 赋值**
  1179. tFreeGoal_r0->m_iControlWhenShootBias_74DC = XMLGetInt(cXMLReaderNode_r1, "ControlWhenShootBias", NULL, 0);
  1180. // 001DCD14 <- **字段 74E4 赋值**
  1181. tFreeGoal_r0->m_iControlWhenPassBias_74E4 = XMLGetInt(cXMLReaderNode_r1, "ControlWhenPassBias", NULL, 0);
  1182. // 001DCD26 <- **字段 74D0 赋值**
  1183. tFreeGoal_r0->m_iShootScale_74D0 = XMLGetInt(cXMLReaderNode_r1, "ShootScale", NULL, 0);
  1184. // 001DCD38 <- **字段 74D8 赋值**
  1185. tFreeGoal_r0->m_iPassScale_74D8 = XMLGetInt(cXMLReaderNode_r1, "PassScale", NULL, 0);
  1186. // 001DCD4A <- **字段 74E0 赋值**
  1187. tFreeGoal_r0->m_iControlWhenShootScale_74E0 = XMLGetInt(cXMLReaderNode_r1, "ControlWhenShootScale", NULL, 0);
  1188. // 001DCD5C <- **字段 74E8 赋值**
  1189. tFreeGoal_r0->m_iControlWhenPassScale_74E8 = XMLGetInt(cXMLReaderNode_r1, "ControlWhenPassScale", NULL, 0);
  1190. // 001DCD6E <- **字段 74EC 赋值**
  1191. tFreeGoal_r0->m_iControlRepeatReduce_74EC = XMLGetInt(cXMLReaderNode_r1, "ControlRepeatReduce", NULL, 10);
  1192. // 001DCD80 <- **字段 74F0 赋值**
  1193. tFreeGoal_r0->m_iPropCount_74F0 = XMLGetInt(cXMLReaderNode_r1, "PropCount", NULL, 0);
  1194. // 001DCD9C <- **局部变量赋值**
  1195. CFTTXmlReaderNode cPropNode_44 = cXMLReaderNode_r1.GetFirstChild("Prop"); // cNode_var_54 IDA中伪代码 NextSibling
  1196. // 001DCD9A <- **寄存器R4作为循环计数器**
  1197. // 001DCEC2 <- **循环条件判断**
  1198. for (int i_r4 = 0; i_r4 < tFreeGoal_r0->m_iPropCount_74F0; i_r4++) {
  1199. // 001DCE64
  1200. // 001DCE7A <- **结构体字段赋值**
  1201. const char* sFPropTypes[3] = {"CONE", "MANNEQUIN", "BOARD"};
  1202. tFreeGoal_r0->m_tFreeProp_74F4[i_r4].m_iType_C = ( EFreePropType)XMLGetStringInt(cPropNode_44, "Type", NULL, (const char**)sFPropTypes, 3, 0);
  1203. // 001DCEA0 001DCEA2 <- **TPoint3D结构赋值**
  1204. // 001DCEA2 <- **该地址使用了VSTR指令,推测TPoint3D使用了浮点数,但还原代码时使用TPointF3D结构体,汇编代码并未一致**
  1205. tFreeGoal_r0->m_tFreeProp_74F4[i_r4].m_tPoint3D_0 = XMLGetPos3D(cPropNode_44, "Pos", NULL, g_vZero3);
  1206. // 001DCEB0 <- **字段赋值**
  1207. tFreeGoal_r0->m_tFreeProp_74F4[i_r4].m_iRot_10 = XMLGetInt(cPropNode_44, "Rot", NULL, 0);
  1208. // 001DCEB6 <- **读取下一个node**
  1209. cPropNode_44 = cPropNode_44.GetNextSibling("Prop");
  1210. // 001DCEBC <- **ADDS R6, #0x14; 0x14 说明数组元素是5个int的结构体**
  1211. } // 001DCEC4 <- **循环代码块结束**
  1212. int iPlayerNO_r10;
  1213. // 001DCEF0
  1214. tZero_74 = g_vZero;
  1215. // 001DCEDA 寄存器r3作为循环计数器, iTeamNO_r3 == 1,是对方球队;iTeamNO_r3 == 0,是己方球队
  1216. for (int iTeamNO_r3 = 0; iTeamNO_r3 != 2; iTeamNO_r3++) {
  1217. // 001DCEF4 OK
  1218. // 001DCEFE <- **call snprintf**
  1219. snprintf(pFormatBuf_50, 0x20, "Team%i", iTeamNO_r3);
  1220. // 001DCF0A <- **局部变量赋值**
  1221. cNodeTeam_40 = cXMLReaderNode_r1.GetFirstChild(pFormatBuf_50);
  1222. // 001DCF0E <- **if 代码块**
  1223. if (cNodeTeam_40.IsValid()) {
  1224. // 001DCF18 OK
  1225. // 001DCF26 <- **局部变量赋值**
  1226. cNodePlayer_3C = cNodeTeam_40.GetFirstChild("Player");
  1227. iPlayerNO_r10 = 0; // 001DCF20 <- **循环计数器**
  1228. // 001DD28A <- **call IsValid()**
  1229. // 001DD294 <- **小于等于 10则跳转**
  1230. while (cNodePlayer_3C.IsValid() && iPlayerNO_r10 < 11) {
  1231. // 001DCF2A OK
  1232. if (XMLExists(cNodePlayer_3C, "Pos", NULL)) {
  1233. // 001DCF2A OK
  1234. //tPoint_98 = tZero_74; // 001DCF42 <- **结构体赋值**
  1235. // 001DCF46 <- **tPoint_64 接收函数返回值**
  1236. tPoint_34 = XMLGetPos(cNodePlayer_3C, "Pos", NULL, g_vZero);
  1237. // 001DCF68 <- **结构体比较,这里的操作符重载函数与原始汇编不一致**
  1238. // if (tFreeGoal_r0->m_tTeamPlayerInfo_1C[iTeamNO_r3][iPlayerNO_r10].m_tPoint_4 != tPoint_34) {
  1239. // 001DCF6C OK
  1240. // 001DCF6E 001DCF72 <- **结构体赋值, 使用结构体操作符重载函数会改变汇编代码结构**
  1241. // LOGI("hook 0 %d", iPlayerNO_r10);
  1242. tFreeGoal_r0->m_tTeamPlayerInfo_1C[iTeamNO_r3][iPlayerNO_r10].m_tPoint_4.dx_0 = tPoint_34.dx_0; //这里的pos如果改为 TPoint(0,0) 在第一二关时,对方球队的守门员会变得跟自己一方的射门的球员的位置一样
  1243. tFreeGoal_r0->m_tTeamPlayerInfo_1C[iTeamNO_r3][iPlayerNO_r10].m_tPoint_4.dy_4 = tPoint_34.dy_4; // iTeamNO_r3 == 1,是对方球队;iTeamNO_r3 == 0,是己方球队
  1244. /*if (iTeamNO_r3 == 1 && iPlayerNO_r10 == 2) {
  1245. tFreeGoal_r0->m_tTeamPlayerInfo_1C[iTeamNO_r3][iPlayerNO_r10].m_tPoint_4.dx_0 = 0;
  1246. tFreeGoal_r0->m_tTeamPlayerInfo_1C[iTeamNO_r3][iPlayerNO_r10].m_tPoint_4.dy_4 = 0;
  1247. //LOGI("hook 0 [team] %d, [player] %d, x:%d, y:%d", iTeamNO_r3, iPlayerNO_r10, tPoint_64.dx_0, tPoint_64.dy_4 );
  1248. }*/
  1249. // }
  1250. } else {
  1251. // 001DCF8A <- **结构体赋值**
  1252. tFreeGoal_r0->m_tTeamPlayerInfo_1C[iTeamNO_r3][iPlayerNO_r10].m_tPoint_4 = TPoint(0, 0);
  1253. }
  1254. // 001DCFAE
  1255. tFreeGoal_r0->m_tTeamPlayerInfo_1C[iTeamNO_r3][iPlayerNO_r10].m_iHoldPosTime_C = XMLGetInt(cNodePlayer_3C, "HoldPosTime", NULL, 0);
  1256. // 001DCFBA
  1257. tFreeGoal_r0->m_tTeamPlayerInfo_1C[iTeamNO_r3][iPlayerNO_r10].m_iRot_10 = XMLGetInt(cNodePlayer_3C, "Rot", NULL, -1);
  1258. // 001DCFDC <- ** if **
  1259. if (XMLGetInt(cNodePlayer_3C, "TeamMoveInfluence", NULL, iPlayerNO_r10 ? 1 : 0)) {
  1260. // 001DCFDE
  1261. tFreeGoal_r0->m_tTeamPlayerInfo_1C[iTeamNO_r3][iPlayerNO_r10].m_iTeamMoveInfluence_14 = true;
  1262. } else {
  1263. tFreeGoal_r0->m_tTeamPlayerInfo_1C[iTeamNO_r3][iPlayerNO_r10].m_iTeamMoveInfluence_14 = false;
  1264. }
  1265. tPoint_98 = TPoint(0, 0); // 001DCFEC <- **结构体赋值**
  1266. // 001DCFE4 <- **tPoint_64 接收返回值**
  1267. tPoint_34 = XMLGetPos(cNodePlayer_3C, "MoveInfluence", NULL, tPoint_98);
  1268. // 001DCFFC <- **结构体比较,重载函数导致汇编不一致**
  1269. //if (tFreeGoal_r0->m_tTeamPlayerInfo_1C[iTeamNO_r3][iPlayerNO_r10].m_tPoint_18.dx_0 != tPoint_34.dx_0) {
  1270. // 001DD004
  1271. tFreeGoal_r0->m_tTeamPlayerInfo_1C[iTeamNO_r3][iPlayerNO_r10].m_tPoint_18.dx_0 = tPoint_34.dx_0; // 001DD004
  1272. tFreeGoal_r0->m_tTeamPlayerInfo_1C[iTeamNO_r3][iPlayerNO_r10].m_tPoint_18.dy_4 = tPoint_34.dy_4; // 001DD00A
  1273. /*if (iTeamNO_r3 == 1 && iPlayerNO_r10 == 2) {
  1274. tFreeGoal_r0->m_tTeamPlayerInfo_1C[iTeamNO_r3][iPlayerNO_r10].m_tPoint_18.dx_0 = 0;
  1275. tFreeGoal_r0->m_tTeamPlayerInfo_1C[iTeamNO_r3][iPlayerNO_r10].m_tPoint_18.dy_4 = 0;
  1276. //LOGI("hook 1 [team] %d, [player] %d, x:%d, y:%d", iTeamNO_r3, iPlayerNO_r10, tPoint_64.dx_0, tPoint_64.dy_4 );
  1277. }*/
  1278. // } else {
  1279. // 001DD010 OK
  1280. // tPoint_34.dy_4 = tFreeGoal_r0->m_tTeamPlayerInfo_1C[iTeamNO_r3][iPlayerNO_r10].m_tPoint_18.dy_4;
  1281. // }
  1282. tFreeGoal_r0->m_tTeamPlayerInfo_1C[iTeamNO_r3][iPlayerNO_r10].m_tPoint_18.dx_0 = tPoint_34.dx_0 / 0x8000; // 001DD026
  1283. tFreeGoal_r0->m_tTeamPlayerInfo_1C[iTeamNO_r3][iPlayerNO_r10].m_tPoint_18.dy_4 = tPoint_34.dy_4 / 0x8000; // 001DD032
  1284. // 001DD040 <- **结构体字段赋值**
  1285. tFreeGoal_r0->m_tTeamPlayerInfo_1C[iTeamNO_r3][iPlayerNO_r10].m_iMoveResponseTime_20 = XMLGetInt(cNodePlayer_3C, "MoveResponseTime", NULL, -1);
  1286. // 001DD052
  1287. tFreeGoal_r0->m_tTeamPlayerInfo_1C[iTeamNO_r3][iPlayerNO_r10].m_iKickResponseTime_24 = XMLGetInt(cNodePlayer_3C, "KickResponseTime", NULL, -1);
  1288. // 001DD06A
  1289. tFreeGoal_r0->m_tTeamPlayerInfo_1C[iTeamNO_r3][iPlayerNO_r10].m_bStatic_28 = XMLGetInt(cNodePlayer_3C, "Static", NULL, 0) ? true : false;
  1290. const char* sFPATypes[3] = {"AI", "PASS", "SHOOT"};
  1291. // 001DD084
  1292. tFreeGoal_r0->m_tTeamPlayerInfo_1C[iTeamNO_r3][iPlayerNO_r10].m_iAction_534 = XMLGetStringInt(cNodePlayer_3C, "Action", NULL, (const char**)sFPATypes, 3, 0);
  1293. // 001DD094
  1294. tFreeGoal_r0->m_tTeamPlayerInfo_1C[iTeamNO_r3][iPlayerNO_r10].m_iActionPassTarget_538 = XMLGetInt(cNodePlayer_3C, "ActionPassTarget", NULL, 0);
  1295. // 001DD0A4
  1296. tFreeGoal_r0->m_tTeamPlayerInfo_1C[iTeamNO_r3][iPlayerNO_r10].m_iActionControlCount_53C = XMLGetInt(cNodePlayer_3C, "ActionControlCount", NULL, 0);
  1297. // 001DD0B6
  1298. tFreeGoal_r0->m_tTeamPlayerInfo_1C[iTeamNO_r3][iPlayerNO_r10].m_iActionControlRot_540 = XMLGetInt(cNodePlayer_3C, "ActionControlRot", NULL, -1);
  1299. // 001DD0CE
  1300. tFreeGoal_r0->m_tTeamPlayerInfo_1C[iTeamNO_r3][iPlayerNO_r10].m_fActionControlKickAhead_544 = XMLGetFloat(cNodePlayer_3C, "ActionControlKickAhead", NULL, 0);
  1301. // 001DD0C8 <- **循环计数器初始化**
  1302. tFreeGoal_r0->m_tTeamPlayerInfo_1C[iTeamNO_r3][iPlayerNO_r10].m_iNodeTDestSetLoopIndex_2C = 0;
  1303. // 001DD0D4 <- **call GetFirstChild()**
  1304. // 001DD1AA <- **call IsValid()**
  1305. for (auto cNode = cNodePlayer_3C.GetFirstChild("Move"); cNode.IsValid(); cNode = cNode.GetNextSibling("Move")) {
  1306. // 001DD0DA
  1307. int iTempIndex = tFreeGoal_r0->m_tTeamPlayerInfo_1C[iTeamNO_r3][iPlayerNO_r10].m_iNodeTDestSetLoopIndex_2C;
  1308. // 001DD0E4 <- **call XMLExits**
  1309. if (XMLExists(cNode, "Dest", NULL)) {
  1310. // 001DD0EC
  1311. // iTempIndex++;
  1312. tFreeGoal_r0->m_tTeamPlayerInfo_1C[iTeamNO_r3][iPlayerNO_r10].m_iNodeTDestSetLoopIndex_2C++; // 001DD0F4
  1313. // auto ptr = (char*)(tFreeGoal_r0->m_tTeamPlayerInfo_1C[iTeamNO_r3][iPlayerNO_r10].m_tPlayerMoveInfo_30) + sizeof(TFreeMoveInfo) * iTempIndex;
  1314. // auto pTFreeMoveInfo = (TFreeMoveInfo*)ptr;
  1315. // pTFreeMoveInfo->m_iTick_0 = XMLGetInt(cNode, "Tick", NULL, 0);
  1316. // 001DD10E <- **字段赋值**
  1317. tFreeGoal_r0->m_tTeamPlayerInfo_1C[iTeamNO_r3][iPlayerNO_r10].m_tPlayerDesk_30[iTempIndex].m_iTick_0 = XMLGetInt(cNode, "Tick", NULL, 0);
  1318. // 001DD11C <- **字段赋值**
  1319. tFreeGoal_r0->m_tTeamPlayerInfo_1C[iTeamNO_r3][iPlayerNO_r10].m_tPlayerDesk_30[iTempIndex].m_iFace_C = XMLGetInt(cNode, "Face", NULL, -1);
  1320. // pTFreeMoveInfo->m_iFace_C = XMLGetInt(cNode, "Face", NULL, -1);
  1321. // tPoint_98 = vZero; //001DD128 <- **结构体赋值**
  1322. // 001DD12C <- **tPoint_64接收返回值**
  1323. tPoint_34 = XMLGetPos(cNode, "Dest", NULL, g_vZero); // tPoint_98);
  1324. // 001DD13C <- **结构体比较**
  1325. // 001DD144
  1326. tFreeGoal_r0->m_tTeamPlayerInfo_1C[iTeamNO_r3][iPlayerNO_r10].m_tPlayerDesk_30[iTempIndex].m_tDestPoint_4.dx_0 = tPoint_34.dx_0; // player 2 bug
  1327. tFreeGoal_r0->m_tTeamPlayerInfo_1C[iTeamNO_r3][iPlayerNO_r10].m_tPlayerDesk_30[iTempIndex].m_tDestPoint_4.dy_4 = tPoint_34.dy_4;
  1328. // 001DD158 <- **字段赋值**
  1329. tFreeGoal_r0->m_tTeamPlayerInfo_1C[iTeamNO_r3][iPlayerNO_r10].m_tPlayerDesk_30[iTempIndex].m_iUrgency_10 = XMLGetInt(cNode, "Urgency", NULL, 50);
  1330. // pTFreeMoveInfo->m_iUrgency_10 = XMLGetInt(cNode, "Urgency", NULL, 50);
  1331. tPoint_98 = TPoint(0, 0); // 001DD164
  1332. tPoint_34 = XMLGetPos(cNode, "MoveInfluence", NULL, tPoint_98); // 001DD16A <- **call XMLGetPos()**
  1333. // 001DD174 <- **结构体比较**
  1334. //if (tFreeGoal_r0->m_tTeamPlayerInfo_1C[iTeamNO_r3][iPlayerNO_r10].m_tPlayerDesk_30[iTempIndex].m_tMoveInfluence_14 != tPoint_34) {
  1335. // 001DD178
  1336. tFreeGoal_r0->m_tTeamPlayerInfo_1C[iTeamNO_r3][iPlayerNO_r10].m_tPlayerDesk_30[iTempIndex].m_tMoveInfluence_14.dx_0 = tPoint_34.dx_0; // 001DD178 001DD17C <- **赋值**
  1337. tFreeGoal_r0->m_tTeamPlayerInfo_1C[iTeamNO_r3][iPlayerNO_r10].m_tPlayerDesk_30[iTempIndex].m_tMoveInfluence_14.dy_4 = tPoint_34.dy_4;
  1338. // } else {
  1339. // 001DD182
  1340. // tPoint_34.dy_4 = tFreeGoal_r0->m_tTeamPlayerInfo_1C[iTeamNO_r3][iPlayerNO_r10].m_tPlayerDesk_30[iTempIndex].m_tMoveInfluence_14.dy_4;
  1341. // }
  1342. tFreeGoal_r0->m_tTeamPlayerInfo_1C[iTeamNO_r3][iPlayerNO_r10].m_tPlayerDesk_30[iTempIndex].m_tMoveInfluence_14.dx_0 = tPoint_34.dx_0 / 0x8000; // 001DD18E
  1343. tFreeGoal_r0->m_tTeamPlayerInfo_1C[iTeamNO_r3][iPlayerNO_r10].m_tPlayerDesk_30[iTempIndex].m_tMoveInfluence_14.dy_4 = tPoint_34.dy_4 / 0x8000; // 001DD198
  1344. } // 001DD1AA <- **if XMLExists 代码块结束**
  1345. } // 001DD1B2 <- **循环结束**
  1346. // 001DD1B6 <- **字段赋值**
  1347. tFreeGoal_r0->m_tTeamPlayerInfo_1C[iTeamNO_r3][iPlayerNO_r10].m_iNodeAnimSetLoopIndex_3B0 = 0;
  1348. // 001DD1C0 <- **call GetFirstChild()**
  1349. // 001DD264 <- **call IsValid()**
  1350. for (auto cNode = cNodePlayer_3C.GetFirstChild("Anim"); cNode.IsValid(); cNode = cNode.GetNextSibling("Anim")) {
  1351. // 001DD1C6
  1352. int index = tFreeGoal_r0->m_tTeamPlayerInfo_1C[iTeamNO_r3][iPlayerNO_r10].m_iNodeAnimSetLoopIndex_3B0;
  1353. tFreeGoal_r0->m_tTeamPlayerInfo_1C[iTeamNO_r3][iPlayerNO_r10].m_iNodeAnimSetLoopIndex_3B0 += 1; // 001DD1CE
  1354. // 001DD1E8 <- **字段赋值**
  1355. tFreeGoal_r0->m_tTeamPlayerInfo_1C[iTeamNO_r3][iPlayerNO_r10].m_tAnim_3B4[index].m_iTick_0 = XMLGetInt(cNode, "Tick", NULL, 0);
  1356. // 001DD1FA <- **字段赋值*
  1357. tFreeGoal_r0->m_tTeamPlayerInfo_1C[iTeamNO_r3][iPlayerNO_r10].m_tAnim_3B4[index].m_iRot_8 = XMLGetInt(cNode, "Rot", NULL, -1);
  1358. // 001DD208 <- **if 代码块起始地址**
  1359. char* pAnimStr = XMLGetString(cNode, "Anim", NULL, 0);
  1360. if (pAnimStr) {
  1361. // 001DD20A
  1362. tFreeGoal_r0->m_tTeamPlayerInfo_1C[iTeamNO_r3][iPlayerNO_r10].m_tAnim_3B4[index].m_iAnimID_4 = CAnimManager::GetAnimID(pAnimStr);
  1363. if (tFreeGoal_r0->m_tTeamPlayerInfo_1C[iTeamNO_r3][iPlayerNO_r10].m_tAnim_3B4[index].m_iAnimID_4 == -1) {
  1364. // 001DD216
  1365. tFreeGoal_r0->m_tTeamPlayerInfo_1C[iTeamNO_r3][iPlayerNO_r10].m_iNodeAnimSetLoopIndex_3B0--; // 001DD21C
  1366. // 001DD220 <- **该地址出现赋值0操作**
  1367. tFreeGoal_r0->m_tTeamPlayerInfo_1C[iTeamNO_r3][iPlayerNO_r10].m_tAnim_3B4[index].m_iAnimID_4 = 0;
  1368. }
  1369. } else {
  1370. // 001DD250
  1371. tFreeGoal_r0->m_tTeamPlayerInfo_1C[iTeamNO_r3][iPlayerNO_r10].m_iNodeAnimSetLoopIndex_3B0--; // 001DD252
  1372. }
  1373. }
  1374. cNodePlayer_3C = cNodePlayer_3C.GetNextSibling("Player"); // 001DD274
  1375. iPlayerNO_r10++; // 001DD282 <- **计数器加一**
  1376. }
  1377. // 001DD2A0 <- **字段赋值**
  1378. tFreeGoal_r0->m_iTeamPlayerIndex_14[iTeamNO_r3] = iPlayerNO_r10;
  1379. // 001DD2AC <- **结构体赋值**
  1380. tPoint_98 = TPoint(0xA0000, 0xA0000);
  1381. // 001DD2B4 <- **call XMLGetPos()**
  1382. tPoint_34 = XMLGetPos(cNodeTeam_40, "MoveInfluence", NULL, tPoint_98);
  1383. // 001DD2C6 <-**结构体比较**
  1384. // if (tFreeGoal_r0->m_tMoveInfluence_74A4[iTeamNO_r3].m_tMoveInfluencePoint_0 != tPoint_34) {
  1385. // // 001DD2CA OK
  1386. tFreeGoal_r0->m_tMoveInfluence_74A4[iTeamNO_r3].m_tMoveInfluencePoint_0.dx_0 = tPoint_34.dx_0;
  1387. tFreeGoal_r0->m_tMoveInfluence_74A4[iTeamNO_r3].m_tMoveInfluencePoint_0.dy_4 = tPoint_34.dy_4;
  1388. // } else {
  1389. // // 001DD2DA OK
  1390. // tPoint_34.dy_4 = tFreeGoal_r0->m_tMoveInfluence_74A4[iTeamNO_r3].m_tMoveInfluencePoint_0.dy_4;
  1391. // }
  1392. tFreeGoal_r0->m_tMoveInfluence_74A4[iTeamNO_r3].m_tMoveInfluencePoint_0.dx_0 = tPoint_34.dx_0 / 0x8000; // 001DD2EE
  1393. tFreeGoal_r0->m_tMoveInfluence_74A4[iTeamNO_r3].m_tMoveInfluencePoint_0.dy_4 = tPoint_34.dy_4 / 0x8000; // 001DD2FA
  1394. // tFreeGoal_r0->m_tMoveInfluence_74A4[iTeamNO_r3].m_tMoveInfluencePoint_0.dx_0 = tPoint_34.dx_0 / 0x8000; // 001DD2EE
  1395. // tFreeGoal_r0->m_tMoveInfluence_74A4[iTeamNO_r3].m_tMoveInfluencePoint_0.dy_4 = tPoint_34.dy_4 / 0x8000; // 001DD2FA
  1396. tFreeGoal_r0->m_tMoveInfluence_74A4[iTeamNO_r3].m_iMoveInfluenceDelayMin_8 = XMLGetInt(cNodeTeam_40, "MoveInfluenceDelayMin", 0, 10); // 001DD30E
  1397. tFreeGoal_r0->m_tMoveInfluence_74A4[iTeamNO_r3].m_iMoveInfluenceDelayMax_C = XMLGetInt(cNodeTeam_40, "MoveInfluenceDelayMax", 0, 25); // 001DD324
  1398. }
  1399. }
  1400. // 001DD338
  1401. FREE_SortPlayers(tFreeGoal_r0);
  1402. }
  1403. //-------------------------------------------------------------------------------------------------
  1404. // 00169A80 ^_-
  1405. //单元测试等级: 游戏运行正常
  1406. //单元测试内容: 1-10关
  1407. //单元测试结果: 正常
  1408. void PhysicsTest() {
  1409. LOGE("PhysicsTest_0"); // OK
  1410. fpointQ<PointType_18> fpointq_sp240;
  1411. fpointq_sp240.field_0 = 0;
  1412. fpointq_sp240.field_4 = 0;
  1413. fpointq_sp240.field_8 = 0;
  1414. fpointq_sp240.field_C = 0x40000;
  1415. fpoint3<PointType_18> fpoint3_sp25c;
  1416. fpoint3_sp25c.x_0 = -cBall.point3D_2C.point_0.dx_0 * 8;
  1417. fpoint3_sp25c.y_4 = cBall.point3D_2C.dz_8 * 8;
  1418. fpoint3_sp25c.z_8 = cBall.point3D_2C.point_0.dy_4 * 8;
  1419. CFTTPObject *r6_pobject = new CFTTPObject(
  1420. EPhysicsObjectType_0, EFreePropType_3, 1, fpoint3_sp25c, fpointq_sp240);
  1421. r6_pobject->fpoint3_1C.x_0 =
  1422. -((cBall.ballPosPrev_4.point_0.dx_0 - cBall.point3D_2C.point_0.dx_0) * 8);
  1423. r6_pobject->fpoint3_1C.y_4 =
  1424. (cBall.ballPosPrev_4.dz_8 - cBall.point3D_2C.dz_8) * 8;
  1425. r6_pobject->fpoint3_1C.z_8 =
  1426. (cBall.ballPosPrev_4.point_0.dy_4 - cBall.point3D_2C.point_0.dy_4) * 8;
  1427. r6_pobject->fpointQ_C.field_0 = cBall.quat_68.d3_8 * 64;
  1428. r6_pobject->fpointQ_C.field_4 = cBall.quat_68.d2_4 * 64;
  1429. r6_pobject->fpointQ_C.field_8 = cBall.quat_68.d1_0 * 64;
  1430. r6_pobject->fpointQ_C.field_C = cBall.quat_68.d4_C * 64;
  1431. r6_pobject->fpoint3_28.x_0 = cBall.point3D_1C.point_0.dx_0 * -101;
  1432. r6_pobject->fpoint3_28.y_4 = cBall.point3D_1C.dz_8 * 0x65;
  1433. r6_pobject->fpoint3_28.z_8 = cBall.point3D_1C.point_0.dy_4 * 0x65;
  1434. r6_pobject->field_34 = 0x94D65;
  1435. r6_pobject->field_38 = 0x37D2A4D;
  1436. fpoint<PointType_18> fpoint_sp23c;
  1437. fpoint3<PointType_18> fpoint3_sp230;
  1438. fpointQ<PointType_18> fpointQ_sp220;
  1439. fpointQ_sp220.field_0 = 0;
  1440. fpointQ_sp220.field_4 = 0;
  1441. fpointQ_sp220.field_8 = 0;
  1442. fpointQ_sp220.field_C = 0x40000;
  1443. fpoint3_sp230.x_0 = 0;
  1444. fpoint3_sp230.y_4 = 0;
  1445. fpoint3_sp230.z_8 = 0;
  1446. fpoint_sp23c.var_0 = 0x8000;
  1447. // check 传参是否都是用了栈
  1448. CFTTPPSphere *r0_psphere = new CFTTPPSphere(fpoint_sp23c, fpoint3_sp230,
  1449. fpointQ_sp220); //这里头文件更新
  1450. // 00169B60
  1451. r6_pobject->field_3C = 0x8000;
  1452. r0_psphere->field_64 = 0x8000;
  1453. r6_pobject->field_44 = 0x10000;
  1454. r6_pobject->field_40 = 0x40000;
  1455. r6_pobject->pprimitive_98[r6_pobject->uc_9C++] = r0_psphere;
  1456. r0_psphere->filed_4 = r6_pobject;
  1457. // sp1c=r6_pobject
  1458. CFTTPhysics physics_sp218(0x40);
  1459. fpoint3<PointType_18> *pfpoint3_sp34 = new fpoint3<PointType_18>[0x10];
  1460. // 00169B98
  1461. pfpoint3_sp34[14].z_8 = 0;
  1462. pfpoint3_sp34[15].x_0 = 0;
  1463. pfpoint3_sp34[15].y_4 = 0;
  1464. pfpoint3_sp34[15].z_8 = 0;
  1465. pfpoint3_sp34[13].z_8 = 0;
  1466. pfpoint3_sp34[14].x_0 = 0;
  1467. pfpoint3_sp34[14].y_4 = 0;
  1468. pfpoint3_sp34[14].z_8 = 0;
  1469. pfpoint3_sp34[12].y_4 = 0;
  1470. pfpoint3_sp34[12].z_8 = 0;
  1471. pfpoint3_sp34[13].x_0 = 0;
  1472. pfpoint3_sp34[13].y_4 = 0;
  1473. // 00169C06
  1474. pfpoint3_sp34[11].x_0 = 0;
  1475. pfpoint3_sp34[11].y_4 = 0;
  1476. pfpoint3_sp34[11].z_8 = 0;
  1477. pfpoint3_sp34[12].x_0 = 0;
  1478. // 00169C16
  1479. pfpoint3_sp34[1].y_4 = 0x20000;
  1480. pfpoint3_sp34[2].z_8 = 0x3333;
  1481. pfpoint3_sp34[2].x_0 = 0x18000;
  1482. pfpoint3_sp34[2].y_4 = 0x6AAAA;
  1483. // 00169C2C
  1484. pfpoint3_sp34[2].z_8 = 0x3333;
  1485. pfpoint3_sp34[3].x_0 = 0x10000;
  1486. pfpoint3_sp34[3].y_4 = 0x72AAA;
  1487. pfpoint3_sp34[3].z_8 = 0x3333;
  1488. // 00169C34
  1489. pfpoint3_sp34[4].x_0 = 0xFFFF0000;
  1490. pfpoint3_sp34[4].y_4 = 0x72AAA;
  1491. pfpoint3_sp34[4].z_8 = 0x3333;
  1492. pfpoint3_sp34[4].x_0 = 0xFFFE8000;
  1493. // 00169C3C
  1494. pfpoint3_sp34[4].y_4 = 0x6AAAA;
  1495. pfpoint3_sp34[4].z_8 = 0x3333;
  1496. pfpoint3_sp34[5].x_0 = 0xFFFE8000;
  1497. pfpoint3_sp34[5].y_4 = 0x20000;
  1498. // 00169C44
  1499. pfpoint3_sp34[5].z_8 = 0x3333;
  1500. pfpoint3_sp34[6].x_0 = 0xFFFF0000;
  1501. pfpoint3_sp34[6].y_4 = 0;
  1502. pfpoint3_sp34[6].z_8 = 0x3333;
  1503. // 00169C4C
  1504. pfpoint3_sp34[7].x_0 = 0x10000;
  1505. pfpoint3_sp34[7].y_4 = 0;
  1506. pfpoint3_sp34[7].z_8 = 0xFFFFCCCD;
  1507. pfpoint3_sp34[7].x_0 = 0x18000;
  1508. // 00169C5A
  1509. pfpoint3_sp34[7].y_4 = 0x20000;
  1510. pfpoint3_sp34[7].z_8 = 0xFFFFCCCD;
  1511. pfpoint3_sp34[8].x_0 = 0x18000;
  1512. pfpoint3_sp34[8].y_4 = 0x6AAAA;
  1513. // 00169C60
  1514. pfpoint3_sp34[0].x_0 = 0x10000;
  1515. pfpoint3_sp34[0].y_4 = 0;
  1516. pfpoint3_sp34[0].z_8 = 0x3333;
  1517. pfpoint3_sp34[1].x_0 = 0x18000;
  1518. // 00169C68
  1519. pfpoint3_sp34[14].z_8 = 0xFFFFCCCD;
  1520. pfpoint3_sp34[15].x_0 = 0xFFFF0000;
  1521. pfpoint3_sp34[15].y_4 = 0;
  1522. pfpoint3_sp34[15].z_8 = 0xFFFFCCCD;
  1523. // 00169C6C
  1524. pfpoint3_sp34[13].y_4 = 0x6AAAA;
  1525. pfpoint3_sp34[13].z_8 = 0xFFFFCCCD;
  1526. pfpoint3_sp34[14].x_0 = 0xFFFE8000;
  1527. pfpoint3_sp34[14].y_4 = 0x20000;
  1528. // 00169C74
  1529. pfpoint3_sp34[12].x_0 = 0xFFFF0000;
  1530. pfpoint3_sp34[12].y_4 = 0x72AAA;
  1531. pfpoint3_sp34[12].z_8 = 0xFFFFCCCD;
  1532. pfpoint3_sp34[13].x_0 = 0xFFFE8000;
  1533. // 00169C7C
  1534. pfpoint3_sp34[10].z_8 = 0xFFFFCCCD;
  1535. pfpoint3_sp34[11].x_0 = 0x10000;
  1536. pfpoint3_sp34[11].y_4 = 0x72AAA;
  1537. pfpoint3_sp34[11].z_8 = 0xFFFFCCCD;
  1538. // sp48=FREE_tInfo
  1539. if (FREE_tInfo.filed_0.pFREE_tGoal_1818) {
  1540. // 00169C90
  1541. // loc_16A21E
  1542. LOGE("PhysicsTest_case");
  1543. for (int r2_i = 0;
  1544. r2_i < FREE_tInfo.filed_0.pFREE_tGoal_1818->m_iPropCount_74F0;
  1545. r2_i++) {
  1546. // loc_169CC0
  1547. switch (FREE_tInfo.filed_0.pFREE_tGoal_1818->m_tFreeProp_74F4[r2_i]
  1548. .m_iType_C) {
  1549. case 0: // loc_169EC0
  1550. {
  1551. // check 手机左移
  1552. // sp4c = r2
  1553. // check 运算
  1554. LOGE("PhysicsTest_case_0");
  1555. int r0_i = FREE_tInfo.filed_0.pFREE_tGoal_1818->m_tFreeProp_74F4[r2_i]
  1556. .m_iRot_10 *
  1557. 0x40000 / 0xB4;
  1558. uint64 r3r1_ull = 0x3243F4000;
  1559. long long r1r0_ll = r3r1_ull * r0_i >> 32;
  1560. int r4_i = r1r0_ll / 2;
  1561. int i_sp1b0;
  1562. int i_sp214 = r4_i;
  1563. sub_16A57C(i_sp1b0, i_sp214);
  1564. sub_16A6CC(i_sp214, r4_i);
  1565. fpoint3<PointType_18> fpoint3_spc0;
  1566. fpointQ<PointType_18> fpointQ_spb0;
  1567. // check 乘法
  1568. fpoint3_spc0.x_0 =
  1569. -FREE_tInfo.filed_0.pFREE_tGoal_1818->m_tFreeProp_74F4[r2_i]
  1570. .m_tPoint3D_0.point_0.dx_0 *
  1571. 8;
  1572. fpoint3_spc0.y_4 =
  1573. FREE_tInfo.filed_0.pFREE_tGoal_1818->m_tFreeProp_74F4[r2_i]
  1574. .m_tPoint3D_0.dz_8 *
  1575. 8;
  1576. fpoint3_spc0.z_8 =
  1577. FREE_tInfo.filed_0.pFREE_tGoal_1818->m_tFreeProp_74F4[r2_i]
  1578. .m_tPoint3D_0.point_0.dy_4 *
  1579. 8;
  1580. fpointQ_spb0.field_0 = 0;
  1581. fpointQ_spb0.field_4 = i_sp1b0;
  1582. fpointQ_spb0.field_8 = 0;
  1583. fpointQ_spb0.field_C = i_sp214;
  1584. CFTTPObject *r4_pobject = new CFTTPObject(
  1585. EPhysicsObjectType_2,
  1586. FREE_tInfo.filed_0.pFREE_tGoal_1818->m_tFreeProp_74F4[r2_i]
  1587. .m_iType_C,
  1588. 2, fpoint3_spc0, fpointQ_spb0);
  1589. // 00169F5C
  1590. r4_pobject->field_34 = 0;
  1591. r4_pobject->field_38 = 0;
  1592. r4_pobject->field_3C = 0x40000;
  1593. r4_pobject->field_40 = 0x4000; // dword_16A448
  1594. r4_pobject->field_44 = 0x20000;
  1595. fpoint<PointType_18> fpoint_spac;
  1596. fpoint<PointType_18> fpoint_spa8;
  1597. fpoint<PointType_18> fpoint_spa4;
  1598. fpoint3<PointType_18> fpoint3_sp98;
  1599. fpointQ<PointType_18> fpointQ_sp80;
  1600. fpoint3_sp98.x_0 = 0;
  1601. fpoint_spac.var_0 = 0x3333;
  1602. fpoint_spa8.var_0 = 0x6666;
  1603. fpoint_spa4.var_0 = 0x15555;
  1604. fpointQ_sp80.field_0 = 0;
  1605. fpointQ_sp80.field_4 = 0;
  1606. fpointQ_sp80.field_8 = 0;
  1607. fpointQ_sp80.field_C = 0x40000;
  1608. fpoint3_sp98.y_4 = 0xEAAA;
  1609. fpoint3_sp98.z_8 = 0;
  1610. // fpointQ_sp80
  1611. CFTTPPCone *r5_pcone =
  1612. new CFTTPPCone(fpoint_spac, fpoint_spa8, fpoint_spa4,
  1613. fpoint3_sp98, fpointQ_sp80);
  1614. fpoint3<PointType_18> fpoint3_sp74;
  1615. fpoint3<PointType_18> fpoint3_sp68;
  1616. fpointQ<PointType_18> fpointQ_sp50;
  1617. fpoint3_sp74.x_0 = 0xCCCC;
  1618. fpointQ_sp50.field_0 = 0;
  1619. fpointQ_sp50.field_4 = 0;
  1620. fpointQ_sp50.field_8 = 0;
  1621. fpointQ_sp50.field_C = 0x40000;
  1622. fpoint3_sp74.y_4 = 0x4000;
  1623. fpoint3_sp74.z_8 = 0xCCCC;
  1624. fpoint3_sp68.x_0 = 0;
  1625. fpoint3_sp68.y_4 = 0x2000;
  1626. fpoint3_sp68.z_8 = 0;
  1627. CFTTPPBox *r0_pbox =
  1628. new CFTTPPBox(fpoint3_sp74, fpoint3_sp68, fpointQ_sp50);
  1629. r5_pcone->field_64 = 0x15555;
  1630. r0_pbox->field_64 = 0xCCCC;
  1631. r4_pobject->pprimitive_98[r4_pobject->uc_9C++] = r0_pbox;
  1632. r0_pbox->filed_4 = r4_pobject;
  1633. r4_pobject->pprimitive_98[r4_pobject->uc_9C++] = r5_pcone;
  1634. r5_pcone->filed_4 = r4_pobject;
  1635. physics_sp218.ppobject_0[physics_sp218.object_counts_4++] =
  1636. r4_pobject;
  1637. break;
  1638. }
  1639. case 2: // loc_16A030
  1640. {
  1641. LOGE("PhysicsTest_case_2");
  1642. int r0_i = FREE_tInfo.filed_0.pFREE_tGoal_1818->m_tFreeProp_74F4[r2_i]
  1643. .m_iRot_10 *
  1644. 0x40000 / 0xB4;
  1645. uint64 r3r1_ull = 0x3243F4000;
  1646. long long r1r0_ll = r3r1_ull * r0_i >> 32;
  1647. int r4_i = r1r0_ll / 2;
  1648. int i_sp214;
  1649. int i_sp1b0 = r4_i;
  1650. sub_16A57C(i_sp214, i_sp1b0);
  1651. int i_sp210;
  1652. i_sp1b0 = r4_i;
  1653. sub_16A6CC(i_sp210, i_sp1b0);
  1654. // sp40=i_sp210
  1655. // sp3c=sp214
  1656. fpoint3<PointType_18> fpoint3_sp154;
  1657. fpoint3<PointType_18> fpoint3_sp148;
  1658. fpointQ<PointType_18> fpointQ_sp138;
  1659. fpointQ<PointType_18> fpointQ_sp1b0;
  1660. fpoint3_sp154.x_0 = 0x70000;
  1661. fpoint3_sp154.y_4 = 0x20000;
  1662. fpoint3_sp154.z_8 = 0x6666;
  1663. fpointQ_sp1b0.field_0 = 0x3333;
  1664. fpointQ_sp1b0.field_4 = 0;
  1665. fpointQ_sp1b0.field_8 = 0;
  1666. fpointQ_sp1b0.field_C = 0x40000;
  1667. sub_16A88C(fpointQ_sp138, fpointQ_sp1b0);
  1668. CFTTPPBox *pbox_sp38 =
  1669. new CFTTPPBox(fpoint3_sp154, fpoint3_sp148, fpointQ_sp138);
  1670. // 0016A0DC
  1671. pbox_sp38->field_64 = 0x70000;
  1672. fpoint3<PointType_18> fpoint3_sp12c;
  1673. fpoint3<PointType_18> fpoint3_sp120;
  1674. fpointQ<PointType_18> fpointQ_sp110;
  1675. fpoint3_sp120.x_0 = 0xFFFD0000;
  1676. fpoint3_sp12c.x_0 = 0x6666;
  1677. fpoint3_sp12c.y_4 = 0x20000;
  1678. fpoint3_sp12c.z_8 = 0x15555;
  1679. fpoint3_sp120.y_4 = 0x10000;
  1680. fpoint3_sp120.z_8 = 0xAAAA;
  1681. fpointQ_sp1b0.field_0 = 0x3333;
  1682. fpointQ_sp1b0.field_4 = 0;
  1683. fpointQ_sp1b0.field_8 = 0;
  1684. fpointQ_sp1b0.field_C = 0x40000;
  1685. sub_16A88C(fpointQ_sp110, fpointQ_sp1b0);
  1686. // 0016A120
  1687. CFTTPPBox *r4_pbox =
  1688. new CFTTPPBox(fpoint3_sp12c, fpoint3_sp120, fpointQ_sp110);
  1689. // 0016A122
  1690. fpoint3<PointType_18> fpoint3_sp104;
  1691. fpoint3<PointType_18> fpoint3_spf8;
  1692. fpointQ<PointType_18> fpointQ_spe8;
  1693. fpoint3_sp104.x_0 = 0x6666;
  1694. fpoint3_sp104.y_4 = 0x20000;
  1695. fpoint3_sp104.z_8 = 0x15555;
  1696. fpoint3_spf8.x_0 = 0x30000;
  1697. fpoint3_spf8.y_4 = 0x10000;
  1698. fpoint3_spf8.z_8 = 0xAAAA;
  1699. fpointQ_sp1b0.field_0 = 0x3333;
  1700. fpointQ_sp1b0.field_4 = 0;
  1701. fpointQ_sp1b0.field_8 = 0;
  1702. fpointQ_sp1b0.field_C = 0x40000;
  1703. sub_16A88C(fpointQ_spe8, fpointQ_sp1b0);
  1704. // 0016A164
  1705. CFTTPPBox *r6_pbox =
  1706. new CFTTPPBox(fpoint3_sp104, fpoint3_spf8, fpointQ_spe8);
  1707. // 0016A166
  1708. r4_pbox->field_64 = 0x15555;
  1709. r6_pbox->field_64 = 0x15555;
  1710. fpoint3<PointType_18> fpoint3_spdc;
  1711. fpointQ<PointType_18> fpointQ_spcc;
  1712. fpointQ_spcc.field_4 = i_sp214;
  1713. fpointQ_spcc.field_C = i_sp210;
  1714. fpoint3_spdc.x_0 =
  1715. -FREE_tInfo.filed_0.pFREE_tGoal_1818->m_tFreeProp_74F4[r2_i]
  1716. .m_tPoint3D_0.point_0.dx_0 *
  1717. 8;
  1718. fpoint3_spdc.z_8 =
  1719. FREE_tInfo.filed_0.pFREE_tGoal_1818->m_tFreeProp_74F4[r2_i]
  1720. .m_tPoint3D_0.point_0.dy_4 *
  1721. 8;
  1722. fpoint3_spdc.y_4 =
  1723. FREE_tInfo.filed_0.pFREE_tGoal_1818->m_tFreeProp_74F4[r2_i]
  1724. .m_tPoint3D_0.dz_8 *
  1725. 8;
  1726. fpointQ_spcc.field_0 = 0;
  1727. fpointQ_spcc.field_8 = 0;
  1728. CFTTPObject *r0_pobject = new CFTTPObject(
  1729. EPhysicsObjectType_2,
  1730. FREE_tInfo.filed_0.pFREE_tGoal_1818->m_tFreeProp_74F4[r2_i]
  1731. .m_iType_C,
  1732. 3, fpoint3_spdc, fpointQ_spcc);
  1733. // 0016A1B0
  1734. r0_pobject->field_34 = 0;
  1735. r0_pobject->field_38 = 0;
  1736. r0_pobject->field_3C = 0x70000;
  1737. r0_pobject->field_40 = 0x30000;
  1738. r0_pobject->field_44 = 0x4000;
  1739. r0_pobject->field_A0 = 0x18;
  1740. r0_pobject->pprimitive_98[r0_pobject->uc_9C++] = pbox_sp38;
  1741. pbox_sp38->filed_4 = r0_pobject;
  1742. r0_pobject->pprimitive_98[r0_pobject->uc_9C++] = r4_pbox;
  1743. r4_pbox->filed_4 = r0_pobject;
  1744. r0_pobject->pprimitive_98[r0_pobject->uc_9C++] = r6_pbox;
  1745. r6_pbox->filed_4 = r0_pobject;
  1746. physics_sp218.ppobject_0[physics_sp218.object_counts_4++] =
  1747. r0_pobject;
  1748. break;
  1749. }
  1750. case 1: // 00169CDA
  1751. {
  1752. // sp4c = r2
  1753. // check 运算
  1754. LOGE("PhysicsTest_case_1");
  1755. int r0_i = FREE_tInfo.filed_0.pFREE_tGoal_1818->m_tFreeProp_74F4[r2_i]
  1756. .m_iRot_10 *
  1757. 0x40000 / 0xB4;
  1758. uint64 r3r1_ull = 0x3243F4000;
  1759. long long r1r0_ll = r3r1_ull * r0_i >> 32;
  1760. int r4_i = r1r0_ll / 2;
  1761. int i_sp214;
  1762. int i_sp210;
  1763. sub_16A57C(i_sp214, r4_i);
  1764. sub_16A6CC(i_sp210, r4_i);
  1765. fpoint3<PointType_18> fpoint3_sp204;
  1766. fpointQ<PointType_18> fpointQ_sp1f4;
  1767. fpointQ_sp1f4.field_0 = 0;
  1768. fpointQ_sp1f4.field_4 = i_sp214;
  1769. fpointQ_sp1f4.field_8 = 0;
  1770. fpointQ_sp1f4.field_C = i_sp210;
  1771. TPoint3D point3D =
  1772. FREE_tInfo.filed_0.pFREE_tGoal_1818->m_tFreeProp_74F4[r2_i]
  1773. .m_tPoint3D_0;
  1774. fpoint3_sp204.x_0 = -point3D.point_0.dx_0 * 8;
  1775. fpoint3_sp204.y_4 = 0x15555 + point3D.dz_8 * 8 + 0x44000;
  1776. fpoint3_sp204.z_8 = point3D.point_0.dy_4 * 8;
  1777. CFTTPObject *r11_pobject = new CFTTPObject(
  1778. EPhysicsObjectType_2,
  1779. FREE_tInfo.filed_0.pFREE_tGoal_1818->m_tFreeProp_74F4[r2_i]
  1780. .m_iType_C,
  1781. 3, fpoint3_sp204, fpointQ_sp1f4);
  1782. int i_sp1b0;
  1783. int i_sp1f0 = 0x7F1AA;
  1784. sub_16A818(&i_sp1b0, &i_sp1f0);
  1785. r11_pobject->field_34 = 0;
  1786. r11_pobject->field_38 = 0;
  1787. r11_pobject->field_3C = i_sp1b0;
  1788. r11_pobject->field_40 = 0x10000;
  1789. r11_pobject->field_44 = 0x10000;
  1790. r11_pobject->field_A0 = 0x18;
  1791. fpoint<PointType_18> fpoint_sp1ec;
  1792. fpoint<PointType_18> fpoint_sp1e8;
  1793. fpoint3<PointType_18> fpoint3_sp1dc;
  1794. fpointQ<PointType_18> fpointQ_sp1cc;
  1795. fpoint_sp1ec.var_0 = 0x10000;
  1796. fpoint3_sp1dc.x_0 = 0;
  1797. fpoint3_sp1dc.y_4 = 0x30000 + 0x15555;
  1798. fpoint3_sp1dc.z_8 = 0;
  1799. fpoint_sp1e8.var_0 = 0x6666;
  1800. fpointQ<PointType_18> fpointQ_sp1b0;
  1801. fpointQ_sp1b0.field_0 = 0x40000;
  1802. fpointQ_sp1b0.field_4 = 0;
  1803. fpointQ_sp1b0.field_8 = 0;
  1804. fpointQ_sp1b0.field_C = 0x40000;
  1805. sub_16A88C(fpointQ_sp1cc, fpointQ_sp1b0);
  1806. // check 前俩个参数传递是否使用栈
  1807. CFTTPPCylinder *r4_pcylinder = new CFTTPPCylinder(
  1808. fpoint_sp1ec, fpoint_sp1e8, fpoint3_sp1dc, fpointQ_sp1cc);
  1809. fpoint3<PointType_18> fpoint3_sp1a4;
  1810. fpoint3<PointType_18> fpoint3_sp198;
  1811. fpointQ<PointType_18> fpointQ_sp180;
  1812. fpoint3_sp1a4.z_8 = 0x6666;
  1813. // 00169DF4
  1814. fpointQ_sp180.field_0 = 0;
  1815. fpointQ_sp180.field_4 = 0;
  1816. fpointQ_sp180.field_8 = 0;
  1817. fpointQ_sp180.field_C = 0x40000;
  1818. fpoint3_sp1a4.x_0 = 0x20000;
  1819. fpoint3_sp1a4.y_4 = 0x20000;
  1820. fpoint3_sp198.x_0 = 0;
  1821. fpoint3_sp198.y_4 = 0xFFFB6AAB;
  1822. fpoint3_sp198.z_8 = 0;
  1823. CFTTPPBox *r5_pbox =
  1824. new CFTTPPBox(fpoint3_sp1a4, fpoint3_sp198, fpointQ_sp180);
  1825. // 00169E14
  1826. fpoint3<PointType_18> fpoint3_sp174;
  1827. fpointQ<PointType_18> fpointQ_sp160;
  1828. fpoint3_sp174.y_4 = 0xFFFB6AAB + 0x10000;
  1829. fpoint3_sp174.x_0 = 0;
  1830. fpoint3_sp174.z_8 = 0;
  1831. fpointQ_sp160.field_0 = 0;
  1832. fpointQ_sp160.field_4 = 0;
  1833. fpointQ_sp160.field_8 = 0;
  1834. fpointQ_sp160.field_C = 0x40000;
  1835. CFTTPPPolyhedron *r0_ppolyhedron = new CFTTPPPolyhedron(
  1836. pfpoint3_sp34, 0x10, fpoint3_sp174, fpointQ_sp160);
  1837. // 00169E32
  1838. r4_pcylinder->field_64 = 0x10000;
  1839. r5_pbox->field_64 = 0x20000;
  1840. r0_ppolyhedron->field_64 = 0xABFFF;
  1841. // 00169E42
  1842. r11_pobject->pprimitive_98[r11_pobject->uc_9C++] = r5_pbox;
  1843. r5_pbox->filed_4 = r11_pobject;
  1844. r11_pobject->pprimitive_98[r11_pobject->uc_9C++] = r0_ppolyhedron;
  1845. r0_ppolyhedron->filed_4 = r11_pobject;
  1846. r11_pobject->pprimitive_98[r11_pobject->uc_9C++] = r4_pcylinder;
  1847. r4_pcylinder->filed_4 = r11_pobject;
  1848. physics_sp218.ppobject_0[physics_sp218.object_counts_4++] =
  1849. r11_pobject;
  1850. break;
  1851. }
  1852. }
  1853. }
  1854. }
  1855. // loc_16A232
  1856. physics_sp218.ppobject_0[physics_sp218.object_counts_4++] = r6_pobject;
  1857. if (physics_sp218.Process()) {
  1858. // 0016A24E
  1859. // sp18=cBall
  1860. LOGE("PhysicsTest_1");
  1861. cBall.ballPosPrev_4.point_0.dx_0 =
  1862. r6_pobject->fpoint3_0.x_0 /
  1863. (-8); //这里fpoint3_0猜测可能为ballPosPrev_4
  1864. cBall.ballPosPrev_4.point_0.dy_4 = r6_pobject->fpoint3_0.z_8 / 8;
  1865. cBall.ballPosPrev_4.dz_8 = r6_pobject->fpoint3_0.y_4 / 8;
  1866. cBall.ballMovePrev_10.point_0.dx_0 = r6_pobject->fpoint3_1C.x_0 / (-8);
  1867. cBall.ballMovePrev_10.point_0.dy_4 = r6_pobject->fpoint3_1C.z_8 / 8;
  1868. cBall.ballMovePrev_10.dz_8 = r6_pobject->fpoint3_1C.y_4 / 8;
  1869. fpointQ<PointType_18> fpointQ_sp1b0;
  1870. sub_16A88C(fpointQ_sp1b0, r6_pobject->fpointQ_C);
  1871. // check 除法
  1872. // 0016A2AA
  1873. cBall.quat_68.d1_0 = fpointQ_sp1b0.field_0 / 64;
  1874. cBall.quat_68.d2_4 = fpointQ_sp1b0.field_4 / 64;
  1875. cBall.quat_68.d3_8 = fpointQ_sp1b0.field_8 / 64;
  1876. cBall.quat_68.d4_C = fpointQ_sp1b0.field_C / 64;
  1877. // check
  1878. cBall.point3D_1C.point_0.dx_0 = r6_pobject->fpoint3_28.x_0 / (-101);
  1879. cBall.point3D_1C.point_0.dy_4 = r6_pobject->fpoint3_28.z_8 / 101;
  1880. cBall.point3D_1C.dz_8 = r6_pobject->fpoint3_28.y_4 / 101;
  1881. // loc_16A344
  1882. for (int r5_i = 0; r5_i < physics_sp218.object_counts_4; r5_i++) {
  1883. // loc_16A30C
  1884. if (physics_sp218.ppobject_0[r5_i]->field_9E) {
  1885. if (physics_sp218.ppobject_0[r5_i]->field_90 != EFreePropType_3) {
  1886. if (FREE_tInfo.filed_0.gamestatus_1828 <= 8) {
  1887. // check
  1888. if ((1 << FREE_tInfo.filed_0.gamestatus_1828) & 0x190) {
  1889. LOGE("PhysicsTest_2");
  1890. tGame.field_6C98 = 0;
  1891. tGame.mTLogic_6678.freeproptype_74 =
  1892. physics_sp218.ppobject_0[r5_i]->field_90;
  1893. }
  1894. }
  1895. }
  1896. }
  1897. }
  1898. }
  1899. // loc_16A348
  1900. delete[] pfpoint3_sp34;
  1901. }
  1902. //-------------------------------------------------------------------------------------------------