comparison Actor.cpp @ 1874:a6276dda8804

Actor::AddBloodsplatOnDamageOverlay cleaned up
author Grumpy7
date Thu, 17 Oct 2013 07:57:01 +0200
parents a53bd0511de2
children 1d9e4b50bc7c
comparison
equal deleted inserted replaced
1873:a53bd0511de2 1874:a6276dda8804
1337 } 1337 }
1338 1338
1339 //----- (0043AE80) -------------------------------------------------------- 1339 //----- (0043AE80) --------------------------------------------------------
1340 void Actor::AddBloodsplatOnDamageOverlay(unsigned int uActorID, int a2, signed int a3) 1340 void Actor::AddBloodsplatOnDamageOverlay(unsigned int uActorID, int a2, signed int a3)
1341 { 1341 {
1342 int result; // eax@1
1343 unsigned int v4; // esi@1 1342 unsigned int v4; // esi@1
1344 int v5; // [sp-14h] [bp-18h]@3 1343
1345 unsigned int v6; // [sp-10h] [bp-14h]@3
1346 int v7; // [sp-Ch] [bp-10h]@3
1347 int v8; // [sp-8h] [bp-Ch]@3
1348 __int16 v9; // [sp-4h] [bp-8h]@3
1349
1350 result = a2 - 1;
1351 v4 = PID(OBJECT_Actor,uActorID); 1344 v4 = PID(OBJECT_Actor,uActorID);
1352 switch ( a2 ) 1345 switch ( a2 )
1353 { 1346 {
1354 case 1: 1347 case 1:
1355 if ( a3 ) 1348 if ( a3 )
1356 { 1349 {
1357 v9 = 0; 1350 pOtherOverlayList->_4418B6(904, v4, 0, (sub_43AE12(a3) * 65536.0), 0);
1358 v8 = (signed __int64)(sub_43AE12(a3) * 65536.0);
1359 v7 = 0;
1360 LOWORD(v6) = v4;
1361 v5 = 904;
1362 goto LABEL_16;
1363 } 1351 }
1364 return; 1352 return;
1365 case 2: 1353 case 2:
1366 if ( a3 ) 1354 if ( a3 )
1367 { 1355 {
1368 v9 = 0; 1356 pOtherOverlayList->_4418B6(905, v4, 0, (sub_43AE12(a3) * 65536.0), 0);
1369 v8 = (signed __int64)(sub_43AE12(a3) * 65536.0);
1370 v7 = 0;
1371 LOWORD(v6) = v4;
1372 v5 = 905;
1373 goto LABEL_16;
1374 } 1357 }
1375 return; 1358 return;
1376 case 3: 1359 case 3:
1377 if ( a3 ) 1360 if ( a3 )
1378 { 1361 {
1379 v9 = 0; 1362 pOtherOverlayList->_4418B6(906, v4, 0, (sub_43AE12(a3) * 65536.0), 0);
1380 v8 = (signed __int64)(sub_43AE12(a3) * 65536.0);
1381 v7 = 0;
1382 LOWORD(v6) = v4;
1383 v5 = 906;
1384 goto LABEL_16;
1385 } 1363 }
1386 return; 1364 return;
1387 case 4: 1365 case 4:
1388 if ( a3 ) 1366 if ( a3 )
1389 { 1367 {
1390 v9 = 0; 1368 pOtherOverlayList->_4418B6(907, v4, 0, (sub_43AE12(a3) * 65536.0), 0);
1391 v8 = (signed __int64)(sub_43AE12(a3) * 65536.0);
1392 v7 = 0;
1393 LOWORD(v6) = v4;
1394 v5 = 907;
1395 goto LABEL_16;
1396 } 1369 }
1397 return; 1370 return;
1398 case 5: 1371 case 5:
1399 v9 = 4; 1372 pOtherOverlayList->_4418B6(901, v4, 0, PID(OBJECT_Actor,uActorID), 0);
1400 v8 = 65536; 1373 return;
1401 v7 = 0;
1402 v6 = PID(OBJECT_Actor,uActorID);
1403 v5 = 901;
1404 goto LABEL_16;
1405 case 6: 1374 case 6:
1406 v9 = 4; 1375 pOtherOverlayList->_4418B6(902, v4, 0, PID(OBJECT_Actor,uActorID), 0);
1407 v8 = 65536; 1376 return;
1408 v7 = 0;
1409 v6 = PID(OBJECT_Actor,uActorID);
1410 v5 = 902;
1411 goto LABEL_16;
1412 case 7: 1377 case 7:
1413 v9 = 4; 1378 pOtherOverlayList->_4418B6(903, v4, 0, PID(OBJECT_Actor,uActorID), 0);
1414 v8 = 65536; 1379 return;
1415 v7 = 0;
1416 v6 = PID(OBJECT_Actor,uActorID);
1417 v5 = 903;
1418 goto LABEL_16;
1419 case 8: 1380 case 8:
1420 v9 = 4; 1381 pOtherOverlayList->_4418B6(900, v4, 0, PID(OBJECT_Actor,uActorID), 0);
1421 v8 = 65536; 1382 return;
1422 v7 = 0;
1423 v6 = PID(OBJECT_Actor,uActorID);
1424 v5 = 900;
1425 goto LABEL_16;
1426 case 9: 1383 case 9:
1427 v9 = 4; 1384 pOtherOverlayList->_4418B6(909, v4, 0, PID(OBJECT_Actor,uActorID), 0);
1428 v8 = 65536; 1385 return;
1429 v7 = 0;
1430 v6 = PID(OBJECT_Actor,uActorID);
1431 v5 = 909;
1432 goto LABEL_16;
1433 case 10: 1386 case 10:
1434 v9 = 4; 1387 pOtherOverlayList->_4418B6(908, v4, 0, PID(OBJECT_Actor,uActorID), 0);
1435 v8 = 65536; 1388 return;
1436 v7 = 0;
1437 v6 = PID(OBJECT_Actor,uActorID);
1438 v5 = 908;
1439 LABEL_16:
1440 result = pOtherOverlayList->_4418B6(v5, v6, v7, v8, v9);
1441 break;
1442 default: 1389 default:
1443 return; 1390 return;
1444 } 1391 }
1445 return; 1392 return;
1446 } 1393 }