1187 {
1190
1192 return;
1193 }
1194
1195 BattleCam_ClampPosX = TRUE;
1198 BattleCam_UseLinearInterp = FALSE;
1199 BattleCam_ExtraOffsetX = 0;
1200
1201 switch (id) {
1204 break;
1207 break;
1210 return;
1211 }
1212 BattleCam_BoomLength = 500;
1213 BattleCam_MoveTimeLeft = 30;
1215 break;
1218 return;
1219 }
1220 BattleCam_BoomLength = 480;
1221 BattleCam_BoomOffsetY = 0;
1222 BattleCam_MoveTimeLeft = 20;
1224 break;
1227 return;
1228 }
1229 BattleCam_BoomLength = 500;
1230 BattleCam_BoomOffsetY = 0;
1231 BattleCam_MoveTimeLeft = 10;
1233 break;
1237 BattleCam_BoomLength = 300;
1238 BattleCam_MoveTimeLeft = 20;
1240 break;
1244 BattleCam_BoomLength = 300;
1245 BattleCam_MoveTimeLeft = 20;
1247 break;
1249 BattleCam_BoomLength = 300;
1250 BattleCam_MoveTimeLeft = 20;
1252 break;
1256 BattleCam_BoomLength = 300;
1257 BattleCam_MoveTimeLeft = 20;
1259 break;
1262 return;
1263 }
1264 BattleCam_BoomLength = 500;
1265 BattleCam_MoveTimeLeft = 120;
1267 break;
1271 BattleCam_BoomLength = 200;
1272 BattleCam_BoomPitch = 8;
1273 BattleCam_BoomYaw = 0;
1274 BattleCam_BoomOffsetY = 15;
1275 BattleCam_MoveTimeLeft = 20;
1277 break;
1281 BattleCam_BoomLength = 300;
1282 BattleCam_BoomPitch = 8;
1283 BattleCam_BoomYaw = 0;
1284 BattleCam_BoomOffsetY = 16;
1285 BattleCam_MoveTimeLeft = 20;
1287 break;
1291 BattleCam_BoomLength = 400;
1292 BattleCam_BoomPitch = 8;
1293 BattleCam_BoomYaw = 0;
1294 BattleCam_BoomOffsetY = 30;
1295 BattleCam_MoveTimeLeft = 20;
1297 break;
1301 BattleCam_BoomLength = 200;
1302 BattleCam_BoomPitch = 8;
1303 BattleCam_BoomYaw = 0;
1304 BattleCam_BoomOffsetY = 15;
1305 BattleCam_MoveTimeLeft = 20;
1307 break;
1311 BattleCam_BoomLength = 300;
1312 BattleCam_BoomPitch = 8;
1313 BattleCam_BoomYaw = 0;
1314 BattleCam_BoomOffsetY = 16;
1315 BattleCam_MoveTimeLeft = 20;
1317 break;
1321 BattleCam_BoomLength = 400;
1322 BattleCam_BoomPitch = 8;
1323 BattleCam_BoomYaw = 0;
1324 BattleCam_BoomOffsetY = 30;
1325 BattleCam_MoveTimeLeft = 20;
1327 break;
1329 BattleCam_BoomLength = 267;
1330 BattleCam_BoomPitch = 8;
1331 BattleCam_BoomYaw = 0;
1332 BattleCam_BoomOffsetY = 23;
1333 BattleCam_MoveTimeLeft = 20;
1335 break;
1337 BattleCam_BoomLength = 300;
1338 BattleCam_BoomPitch = 8;
1339 BattleCam_BoomYaw = 0;
1340 BattleCam_BoomOffsetY = 8;
1341 BattleCam_MoveTimeLeft = 20;
1343 break;
1345 BattleCam_BoomLength = 400;
1346 BattleCam_BoomPitch = 8;
1347 BattleCam_BoomYaw = 0;
1348 BattleCam_BoomOffsetY = 0;
1349 BattleCam_MoveTimeLeft = 20;
1351 break;
1353 BattleCam_MoveTimeLeft = 20;
1355 break;
1357 BattleCam_BoomOffsetY = 0;
1358 BattleCam_MoveTimeLeft = 20;
1360 break;
1362 BattleCam_BoomOffsetY = 0;
1363 BattleCam_MoveTimeLeft = 20;
1365 break;
1368 BattleCam_BoomLength = 266;
1369 BattleCam_BoomPitch = 8;
1370 BattleCam_BoomYaw = 0;
1371 BattleCam_BoomOffsetY = 40;
1373 BattleCam_MoveTimeLeft = 20;
1375 break;
1380 BattleCam_BoomLength = 250;
1381 BattleCam_BoomPitch = 8;
1382 BattleCam_BoomYaw = 0;
1383 BattleCam_BoomOffsetY = 14;
1384 BattleCam_ClampPosX = FALSE;
1386 BattleCam_MoveTimeLeft = 20;
1388 break;
1393 BattleCam_BoomLength = 255;
1394 BattleCam_BoomPitch = 8;
1395 BattleCam_BoomYaw = 0;
1396 BattleCam_BoomOffsetY = 29;
1398 BattleCam_MoveTimeLeft = 20;
1400 break;
1403 BattleCam_BoomLength = 230;
1404 BattleCam_BoomPitch = 8;
1405 BattleCam_BoomYaw = 0;
1406 BattleCam_BoomOffsetY = 0;
1407 BattleCam_MoveTimeLeft = 20;
1409 break;
1414 BattleCam_BoomLength = 310;
1415 BattleCam_BoomPitch = 8;
1416 BattleCam_BoomYaw = 0;
1417 BattleCam_BoomOffsetY = 16;
1418 BattleCam_ClampPosX = FALSE;
1419 BattleCam_MoveTimeLeft = 30;
1421 break;
1426 BattleCam_BoomLength = 320;
1427 BattleCam_BoomPitch = 8;
1428 BattleCam_BoomYaw = 0;
1429 BattleCam_BoomOffsetY = 0;
1430 BattleCam_ClampPosX = FALSE;
1431 BattleCam_MoveTimeLeft = 5;
1433 break;
1438 BattleCam_BoomLength = 340;
1439 BattleCam_BoomPitch = 8;
1440 BattleCam_BoomYaw = 0;
1441 BattleCam_BoomOffsetY = 0;
1442 BattleCam_ClampPosX = FALSE;
1443 BattleCam_MoveTimeLeft = 5;
1445 break;
1451 BattleCam_BoomLength = 300;
1452 BattleCam_BoomPitch = 8;
1453 BattleCam_BoomYaw = 0;
1454 BattleCam_BoomOffsetY = -32;
1455 BattleCam_ExtraOffsetX = 20;
1456 BattleCam_MoveTimeLeft = 15;
1458 break;
1462 BattleCam_PosX = -65.0f;
1463 BattleCam_PosY = 30.0f;
1464 BattleCam_PosZ = 0.0f;
1465 BattleCam_BoomLength = 300;
1466 BattleCam_BoomPitch = 8;
1467 BattleCam_BoomYaw = 0;
1468 BattleCam_BoomOffsetY = 10;
1469 BattleCam_MoveTimeLeft = 10;
1471 break;
1476 BattleCam_BoomLength = 220;
1477 BattleCam_BoomPitch = 8;
1478 BattleCam_BoomYaw = 0;
1479 BattleCam_BoomOffsetY = 24;
1480 BattleCam_ClampPosX = FALSE;
1481 BattleCam_MoveTimeLeft = 30;
1483 break;
1488 BattleCam_BoomLength = 280;
1489 BattleCam_BoomPitch = 8;
1490 BattleCam_BoomYaw = 0;
1491 BattleCam_BoomOffsetY = -4;
1492 BattleCam_ClampPosX = FALSE;
1493 BattleCam_MoveTimeLeft = 30;
1495 break;
1500 BattleCam_BoomLength = 380;
1501 BattleCam_BoomPitch = 8;
1502 BattleCam_BoomYaw = 0;
1503 BattleCam_BoomOffsetY = 0;
1504 BattleCam_ClampPosX = FALSE;
1505 BattleCam_UseLinearInterp = TRUE;
1506 BattleCam_MoveTimeLeft = 60;
1508 break;
1513 BattleCam_BoomLength = 300;
1514 BattleCam_BoomPitch = 8;
1515 BattleCam_BoomYaw = 0;
1516 BattleCam_BoomOffsetY = 0;
1517 BattleCam_ClampPosX = FALSE;
1518 BattleCam_UseLinearInterp = TRUE;
1519 BattleCam_MoveTimeLeft = 60;
1521 break;
1527 BattleCam_BoomLength = 320;
1528 BattleCam_BoomPitch = 8;
1529 BattleCam_BoomYaw = 0;
1530 BattleCam_BoomOffsetY = -4;
1531 BattleCam_ClampPosX = FALSE;
1532 BattleCam_MoveTimeLeft = 30;
1534 break;
1539 BattleCam_BoomLength = 320;
1540 BattleCam_BoomPitch = 8;
1541 BattleCam_BoomYaw = 0;
1542 BattleCam_BoomOffsetY = 0;
1543 BattleCam_ClampPosX = FALSE;
1544 BattleCam_MoveTimeLeft = 30;
1546 break;
1551 BattleCam_BoomLength = 360;
1552 BattleCam_BoomPitch = 8;
1553 BattleCam_BoomYaw = 0;
1554 BattleCam_BoomOffsetY = -4;
1555 BattleCam_ClampPosX = FALSE;
1556 BattleCam_MoveTimeLeft = 20;
1558 break;
1561 BattleCam_BoomLength = 200;
1562 BattleCam_MoveTimeTotal = 7;
1563 BattleCam_DoneMoving = FALSE;
1564 BattleCam_ClampPosX = FALSE;
1565 BattleCam_MoveTimeLeft = 7;
1566 preset = BattleCam_ControlScript;
1567 break;
1572 BattleCam_BoomLength = 214;
1573 BattleCam_BoomPitch = 8;
1574 BattleCam_BoomYaw = 0;
1575 BattleCam_BoomOffsetY = 16;
1576 BattleCam_ClampPosX = FALSE;
1577 BattleCam_MoveTimeLeft = 20;
1579 break;
1584 BattleCam_BoomLength = 300;
1585 BattleCam_BoomPitch = 8;
1586 BattleCam_BoomYaw = 0;
1587 BattleCam_BoomOffsetY = 16;
1588 BattleCam_ClampPosX = FALSE;
1589 BattleCam_MoveTimeLeft = 8;
1591 break;
1596 BattleCam_PosX = 60.0f;
1597 BattleCam_PosY = 40.0f;
1598 BattleCam_PosZ = 0.0f;
1599 BattleCam_BoomLength = 430;
1600 BattleCam_BoomPitch = 8;
1601 BattleCam_BoomYaw = 0;
1602 BattleCam_BoomOffsetY = 16;
1603 BattleCam_MoveTimeLeft = 10;
1605 break;
1609 BattleCam_PosX = 60.0f;
1610 BattleCam_PosY = 40.0f;
1611 BattleCam_PosZ = 0.0f;
1612 BattleCam_BoomLength = 460;
1613 BattleCam_BoomPitch = 8;
1614 BattleCam_BoomYaw = 0;
1615 BattleCam_BoomOffsetY = 27;
1616 BattleCam_MoveTimeLeft = 10;
1618 break;
1620 BattleCam_BoomLength = 390;
1621 BattleCam_BoomPitch = 8;
1622 BattleCam_BoomYaw = 0;
1623 BattleCam_BoomOffsetY = 45;
1625 BattleCam_ClampPosX = FALSE;
1626 BattleCam_MoveTimeLeft = 10;
1628 break;
1630 BattleCam_BoomLength = 500;
1631 BattleCam_BoomPitch = 8;
1632 BattleCam_BoomYaw = 0;
1633 BattleCam_BoomOffsetY = 45;
1635 BattleCam_ClampPosX = FALSE;
1636 BattleCam_MoveTimeLeft = 40;
1638 break;
1641 BattleCam_BoomLength = 300;
1642 BattleCam_BoomPitch = 8;
1643 BattleCam_BoomYaw = 0;
1644 BattleCam_BoomOffsetY = 45;
1646 BattleCam_ClampPosX = FALSE;
1647 BattleCam_MoveTimeLeft = 20;
1649 break;
1653 BattleCam_PosX = -75.0f;
1654 BattleCam_PosY = 150.0f;
1655 BattleCam_PosZ = 0.0f;
1656 BattleCam_BoomLength = 166;
1657 BattleCam_BoomPitch = 8;
1658 BattleCam_BoomYaw = 0;
1659 BattleCam_BoomOffsetY = 17;
1660 BattleCam_MoveTimeLeft = 1;
1662 break;
1667 BattleCam_BoomLength = 310;
1668 BattleCam_BoomPitch = 8;
1669 BattleCam_BoomYaw = 0;
1670 BattleCam_BoomOffsetY = 16;
1671 BattleCam_ClampPosX = FALSE;
1672 BattleCam_MoveTimeLeft = 30;
1674 break;
1679 BattleCam_BoomLength = 250;
1680 BattleCam_BoomPitch = 8;
1681 BattleCam_BoomYaw = 0;
1682 BattleCam_BoomOffsetY = 16;
1683 BattleCam_ClampPosX = FALSE;
1684 BattleCam_UseLinearInterp = TRUE;
1685 BattleCam_MoveTimeLeft = 120;
1687 break;
1692 BattleCam_BoomLength = 300;
1693 BattleCam_BoomPitch = 8;
1694 BattleCam_BoomYaw = 0;
1695 BattleCam_BoomOffsetY = 16;
1696 BattleCam_ClampPosX = FALSE;
1697 BattleCam_UseLinearInterp = TRUE;
1698 BattleCam_MoveTimeLeft = 120;
1700 break;
1705 BattleCam_BoomLength = 320;
1706 BattleCam_BoomPitch = 8;
1707 BattleCam_BoomYaw = 0;
1708 BattleCam_BoomOffsetY = 0;
1709 BattleCam_ClampPosX = FALSE;
1710 BattleCam_MoveTimeLeft = 5;
1712 break;
1715 BattleCam_BoomLength = 500;
1716 BattleCam_BoomOffsetY = 0;
1717 BattleCam_MoveTimeLeft = 50;
1719 break;
1724 BattleCam_BoomLength = 280;
1725 BattleCam_BoomPitch = 8;
1726 BattleCam_BoomYaw = 0;
1727 BattleCam_BoomOffsetY = -4;
1728 BattleCam_ClampPosX = FALSE;
1729 BattleCam_MoveTimeLeft = 30;
1731 break;
1736 BattleCam_BoomLength = 380;
1737 BattleCam_BoomPitch = 8;
1738 BattleCam_BoomYaw = 0;
1739 BattleCam_BoomOffsetY = 0;
1740 BattleCam_ClampPosX = FALSE;
1741 BattleCam_UseLinearInterp = TRUE;
1742 BattleCam_MoveTimeLeft = 60;
1744 break;
1749 BattleCam_BoomLength = 220;
1750 BattleCam_BoomPitch = 8;
1751 BattleCam_BoomYaw = 0;
1752 BattleCam_BoomOffsetY = 24;
1753 BattleCam_ClampPosX = FALSE;
1754 BattleCam_MoveTimeLeft = 30;
1756 break;
1760 BattleCam_PosX = -95.0f;
1761 BattleCam_PosY = 22.0f;
1762 BattleCam_PosZ = 0.0f;
1763 BattleCam_BoomLength = 210;
1764 BattleCam_BoomPitch = 8;
1765 BattleCam_BoomYaw = 0;
1766 BattleCam_BoomOffsetY = 10;
1767 BattleCam_MoveTimeLeft = 20;
1769 break;
1774 BattleCam_BoomLength = 320;
1775 BattleCam_BoomPitch = 8;
1776 BattleCam_BoomYaw = 0;
1777 BattleCam_BoomOffsetY = -4;
1778 BattleCam_MoveTimeLeft = 30;
1780 break;
1785 BattleCam_BoomLength = 320;
1786 BattleCam_BoomPitch = 8;
1787 BattleCam_BoomYaw = 0;
1788 BattleCam_BoomOffsetY = 0;
1789 BattleCam_MoveTimeLeft = 30;
1791 break;
1795 BattleCam_PosX = 25.0f;
1796 BattleCam_PosY = 60.0f;
1797 BattleCam_PosZ = 0.0f;
1798 BattleCam_BoomLength = 400;
1799 BattleCam_BoomPitch = 8;
1800 BattleCam_BoomYaw = 0;
1801 BattleCam_BoomOffsetY = 10;
1802 BattleCam_MoveTimeLeft = 30;
1804 break;
1809 BattleCam_BoomLength = 200;
1810 BattleCam_BoomPitch = 8;
1811 BattleCam_BoomYaw = 0;
1812 BattleCam_BoomOffsetY = 11;
1813 BattleCam_ClampPosX = FALSE;
1814 BattleCam_UseLinearInterp = TRUE;
1815 BattleCam_MoveTimeLeft = 60;
1817 break;
1822 BattleCam_BoomLength = 300;
1823 BattleCam_BoomPitch = 8;
1824 BattleCam_BoomYaw = 0;
1825 BattleCam_BoomOffsetY = 16;
1826 BattleCam_MoveTimeLeft = 8;
1828 break;
1834 BattleCam_BoomLength = 300;
1835 BattleCam_BoomPitch = 8;
1836 BattleCam_BoomYaw = 0;
1837 BattleCam_BoomOffsetY = -32;
1838 BattleCam_ExtraOffsetX = 20;
1839 BattleCam_MoveTimeLeft = 15;
1841 break;
1845 BattleCam_BoomLength = 400;
1846 BattleCam_BoomPitch = 8;
1847 BattleCam_BoomYaw = 0;
1848 BattleCam_BoomOffsetY = 27;
1849 BattleCam_MoveTimeLeft = 20;
1851 break;
1855 BattleCam_BoomLength = 358;
1856 BattleCam_BoomPitch = 8;
1857 BattleCam_BoomYaw = 0;
1858 BattleCam_BoomOffsetY = 16;
1859 BattleCam_MoveTimeLeft = 10;
1861 break;
1863 BattleCam_BoomLength = 500;
1864 BattleCam_MoveTimeLeft = 50;
1866 break;
1870 BattleCam_BoomLength = 267;
1871 BattleCam_BoomPitch = 8;
1872 BattleCam_BoomYaw = 0;
1873 BattleCam_BoomOffsetY = 16;
1874 BattleCam_MoveTimeLeft = 20;
1876 break;
1880 BattleCam_BoomLength = 214;
1881 BattleCam_BoomPitch = 8;
1882 BattleCam_BoomYaw = 0;
1883 BattleCam_BoomOffsetY = 16;
1884 BattleCam_MoveTimeLeft = 20;
1886 break;
1890 BattleCam_BoomLength = 300;
1891 BattleCam_BoomPitch = 8;
1892 BattleCam_BoomOffsetY = 16;
1893 BattleCam_BoomYaw = 0;
1894 BattleCam_MoveTimeLeft = 4;
1896 break;
1897 }
1898
1900
1903 }
1904
1905 BattleCam_ControlScript = preset;
1909 BattleCam_DoneMoving = FALSE;
1910}
EvtScript EVS_BattleCam_FocusActorPart
EvtScript EVS_BattleCam_FocusActor
EvtScript EVS_BattleCam_Interrupt
EvtScript EVS_BattleCam_SimpleLerp_Unskippable
EvtScript EVS_BattleCam_Reset
EvtScript EVS_BattleCam_FocusMidpointA
s32 BattleCam_CurrentPresetID
EvtScript EVS_BattleCam_SimpleLerp_Skippable
EvtScript EVS_BattleCam_ResetNeutral
void btl_cam_set_target_pos(f32 x, f32 y, f32 z)
EvtScript EVS_BattleCam_FocusMidpointB
EvtScript EVS_BattleCam_ViewEnemies
EvtScript EVS_BattleCam_FollowActorY
EvtScript EVS_BattleCam_ViewEnemies_MaintainY
EvtScript EVS_BattleCam_FollowActorPos
EvtScript EVS_BattleCam_FocusGoal
@ BTL_CAM_GOOMBARIO_BONK_FOLLOWUP_2
@ BTL_CAM_MIDPOINT_NORMAL
@ BTL_CAM_ACTOR_TARGET_MIDPOINT
@ BTL_CAM_GOOMBARIO_BONK_FOLLOWUP_1
@ BTL_CAM_PLAYER_HAMMER_QUAKE
@ BTL_CAM_PRESET_UNUSED_2A
@ BTL_CAM_CLOSER_PARTNER_APPROACH
@ BTL_CAM_PARTNER_INJURED
@ BTL_CAM_PRESET_UNUSED_46
@ BTL_CAM_PLAYER_PRE_ULTRA_JUMP_FINISH
@ BTL_CAM_PRESET_UNUSED_3C
@ BTL_CAM_ACTOR_GOAL_SIMPLE
@ BTL_CAM_PLAYER_PRE_JUMP_FINISH
@ BTL_CAM_PRESET_UNUSED_2D
@ BTL_CAM_PLAYER_AIM_HAMMER
@ BTL_CAM_PLAYER_HIT_HAZARD
@ BTL_CAM_PRESET_UNUSED_43
@ BTL_CAM_PRESET_UNUSED_48
@ BTL_CAM_PRESET_UNUSED_39
@ BTL_CAM_ACTOR_GOAL_NEAR
@ BTL_CAM_PLAYER_JUMP_FINISH_CLOSE
@ BTL_CAM_PRESET_UNUSED_3A
@ BTL_CAM_PLAYER_MULTIBOUNCE
@ BTL_CAM_PLAYER_SUPER_JUMP_MIDAIR
@ BTL_CAM_PRESET_UNUSED_40
@ BTL_CAM_PLAYER_HAMMER_STRIKE
@ BTL_CAM_PLAYER_UNUSED_ULTRA_JUMP
@ BTL_CAM_PRESET_UNUSED_38
@ BTL_CAM_PRESET_UNUSED_44
@ BTL_CAM_PARTNER_HIT_SPIKE
@ BTL_CAM_FOLLOW_ACTOR_POS
@ BTL_CAM_PLAYER_JUMP_FINISH
@ BTL_CAM_PARTNER_CLOSE_UP
@ BTL_CAM_PRESET_UNUSED_31
@ BTL_CAM_PLAYER_JUMP_MIDAIR
@ BTL_CAM_PARTNER_HIT_HAZARD
@ BTL_CAM_PRESET_UNUSED_47
@ BTL_CAM_PLAYER_HIT_SPIKE
@ BTL_CAM_PLAYER_CHARGE_UP
@ BTL_CAM_PLAYER_ULTRA_JUMP_MIDAIR
@ BTL_CAM_PLAYER_ATTACK_APPROACH
@ BTL_CAM_PLAYER_STATUS_AFFLICTED
@ BTL_CAM_PARTNER_MISTAKE
@ BTL_CAM_PRESET_UNUSED_29
@ BTL_CAM_PARTNER_APPROACH
@ EVT_FLAG_RUN_IMMEDIATELY
don't wait for next update_scripts call
Evt * start_script(EvtScript *source, s32 priority, s32 initialState)
void kill_script_by_ID(s32 id)
struct Evt * camMovementScript