You've already forked HackerSM64
mirror of
https://github.com/HackerN64/HackerSM64.git
synced 2026-01-21 10:35:32 -08:00
* Move level script to bank 0x1A * Decouple vanilla objects in a separate bank * Rollback group level scripts move, fixed nits * Move actors_vanilla to actors/vanilla_actors * Make EU translation segment last, remove vanilla objects segments copypaste * Added LOAD_VANILLA_OBJECTS segment id stub
207 lines
24 KiB
C
207 lines
24 KiB
C
#include <ultra64.h>
|
|
#include "sm64.h"
|
|
#include "behavior_data.h"
|
|
#include "model_ids.h"
|
|
#include "seq_ids.h"
|
|
#include "dialog_ids.h"
|
|
#include "segment_symbols.h"
|
|
#include "level_commands.h"
|
|
|
|
#include "game/level_update.h"
|
|
|
|
#include "levels/scripts.h"
|
|
|
|
#include "actors/common1.h"
|
|
|
|
#include "make_const_nonconst.h"
|
|
#include "levels/bob/header.h"
|
|
|
|
|
|
static const LevelScript script_bob_macro_objects[] = {
|
|
// Macro objects
|
|
OBJECT(/*model*/ MODEL_CHAIN_CHOMP, /*pos*/ 260, 735, 1920, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvChainChomp),
|
|
OBJECT(/*model*/ MODEL_BREAKABLE_BOX, /*pos*/ -3979, 0, 6827, /*angle*/ 0, 0, 0, /*behParam*/ (BREAKABLE_BOX_BP_NO_COINS << 16), /*beh*/ bhvBreakableBox),
|
|
OBJECT(/*model*/ MODEL_GOOMBA, /*pos*/ -2713, 152, 5778, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvGoomba),
|
|
OBJECT(/*model*/ MODEL_GOOMBA, /*pos*/ -342, 400, 5433, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvGoomba),
|
|
OBJECT(/*model*/ MODEL_NONE, /*pos*/ 3620, 4000, 4800, /*angle*/ 0, 0, 0, /*behParam*/ (15 << 16), /*beh*/ bhvWaterBombSpawner),
|
|
OBJECT(/*model*/ MODEL_NONE, /*pos*/ -5141, 3764, -743, /*angle*/ 0, 0, 0, /*behParam*/ (25 << 16), /*beh*/ bhvWaterBombSpawner),
|
|
OBJECT(/*model*/ MODEL_NONE, /*pos*/ -4208, 3769, -2036, /*angle*/ 0, 0, 0, /*behParam*/ (10 << 16), /*beh*/ bhvWaterBombSpawner),
|
|
OBJECT(/*model*/ MODEL_CANNON_BASE, /*pos*/ 1388, 2918, -2383, /*angle*/ 0, 315, 0, /*behParam*/ 0x00000000, /*beh*/ bhvWaterBombCannon),
|
|
OBJECT(/*model*/ MODEL_WOODEN_POST, /*pos*/ -6500, 768, 1800, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvWoodenPost),
|
|
OBJECT(/*model*/ MODEL_WOODEN_POST, /*pos*/ -5500, 768, 1800, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvWoodenPost),
|
|
OBJECT(/*model*/ MODEL_WOODEN_POST, /*pos*/ -6500, 768, 3000, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvWoodenPost),
|
|
OBJECT(/*model*/ MODEL_WOODEN_POST, /*pos*/ -5500, 768, 3000, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvWoodenPost),
|
|
OBJECT(/*model*/ MODEL_WOODEN_SIGNPOST, /*pos*/ -4000, 0, 6050, /*angle*/ 0, 270, 0, /*behParam*/ (DIALOG_015 << 16), /*beh*/ bhvMessagePanel),
|
|
OBJECT(/*model*/ MODEL_WOODEN_SIGNPOST, /*pos*/ 1230, 768, 3258, /*angle*/ 0, 0, 0, /*behParam*/ (DIALOG_008 << 16), /*beh*/ bhvMessagePanel),
|
|
OBJECT(/*model*/ MODEL_DL_CANNON_LID, /*pos*/ -5018, 1332, -3533, /*angle*/ 0, 0, 0, /*behParam*/ (0x00 << 16), /*beh*/ bhvCannonClosed),
|
|
OBJECT(/*model*/ MODEL_DL_CANNON_LID, /*pos*/ 6349, 2080, -7066, /*angle*/ 0, 0, 0, /*behParam*/ (0xC0 << 16), /*beh*/ bhvCannonClosed),
|
|
OBJECT(/*model*/ MODEL_DL_CANNON_LID, /*pos*/ 4243, 3071, -2451, /*angle*/ 0, 0, 0, /*behParam*/ (0xC0 << 16), /*beh*/ bhvCannonClosed),
|
|
OBJECT(/*model*/ MODEL_DL_CANNON_LID, /*pos*/ 4352, 3072, 1229, /*angle*/ 0, 0, 0, /*behParam*/ (0x80 << 16), /*beh*/ bhvCannonClosed),
|
|
OBJECT(/*model*/ MODEL_DL_CANNON_LID, /*pos*/ 5376, 1537, 4610, /*angle*/ 0, 0, 0, /*behParam*/ (0x40 << 16), /*beh*/ bhvCannonClosed),
|
|
OBJECT(/*model*/ MODEL_BLACK_BOBOMB, /*pos*/ -3080, 0, -5200, /*angle*/ 0, 0, 0, /*behParam*/ (BOBOMB_BP_STYPE_GENERIC << 16), /*beh*/ bhvBobomb),
|
|
OBJECT(/*model*/ MODEL_BLACK_BOBOMB, /*pos*/ -3688, 885, -3813, /*angle*/ 0, 0, 0, /*behParam*/ (BOBOMB_BP_STYPE_GENERIC << 16), /*beh*/ bhvBobomb),
|
|
OBJECT(/*model*/ MODEL_BLACK_BOBOMB, /*pos*/ -4629, 1024, -1772, /*angle*/ 0, 0, 0, /*behParam*/ (BOBOMB_BP_STYPE_GENERIC << 16), /*beh*/ bhvBobomb),
|
|
OBJECT(/*model*/ MODEL_BLACK_BOBOMB, /*pos*/ -3480, 891, -2120, /*angle*/ 0, 0, 0, /*behParam*/ (BOBOMB_BP_STYPE_GENERIC << 16), /*beh*/ bhvBobomb),
|
|
OBJECT(/*model*/ MODEL_BLACK_BOBOMB, /*pos*/ -3800, 1024, -460, /*angle*/ 0, 0, 0, /*behParam*/ (BOBOMB_BP_STYPE_GENERIC << 16), /*beh*/ bhvBobomb),
|
|
OBJECT(/*model*/ MODEL_BLACK_BOBOMB, /*pos*/ 6888, 2002, -5608, /*angle*/ 0, 0, 0, /*behParam*/ (BOBOMB_BP_STYPE_GENERIC << 16), /*beh*/ bhvBobomb),
|
|
OBJECT(/*model*/ MODEL_HEART, /*pos*/ 3603, 3659, -7070, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvRecoveryHeart),
|
|
OBJECT(/*model*/ MODEL_NONE, /*pos*/ -6060, 1060, -5340, /*angle*/ 0, 0, 0, /*behParam*/ ((COIN_FORMATION_FLAG_RING) << 16), /*beh*/ bhvCoinFormation),
|
|
OBJECT(/*model*/ MODEL_NONE, /*pos*/ -129, 0, 5668, /*angle*/ 0, 90, 0, /*behParam*/ ((COIN_FORMATION_FLAG_NONE) << 16), /*beh*/ bhvCoinFormation),
|
|
OBJECT(/*model*/ MODEL_NONE, /*pos*/ 1851, 2917, -2234, /*angle*/ 0, 75, 0, /*behParam*/ ((COIN_FORMATION_FLAG_NONE) << 16), /*beh*/ bhvCoinFormation),
|
|
OBJECT(/*model*/ MODEL_RED_COIN, /*pos*/ -5500, 768, 2400, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvRedCoin),
|
|
OBJECT(/*model*/ MODEL_RED_COIN, /*pos*/ -6500, 768, 2400, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvRedCoin),
|
|
OBJECT(/*model*/ MODEL_RED_COIN, /*pos*/ 1135, 1920, -7161, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvRedCoin),
|
|
OBJECT(/*model*/ MODEL_RED_COIN, /*pos*/ 250, 1000, 1920, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvRedCoin),
|
|
OBJECT(/*model*/ MODEL_RED_COIN, /*pos*/ 1600, 980, 4440, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvRedCoin),
|
|
OBJECT(/*model*/ MODEL_RED_COIN, /*pos*/ -2755, 0, -4083, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvRedCoin),
|
|
OBJECT(/*model*/ MODEL_RED_COIN, /*pos*/ 4934, 1352, 861, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvRedCoin),
|
|
OBJECT(/*model*/ MODEL_RED_COIN, /*pos*/ 4100, 3672, 1629, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvRedCoin),
|
|
OBJECT(/*model*/ MODEL_EXCLAMATION_BOX, /*pos*/ -6710, 1300, -2170, /*angle*/ 0, 0, 0, /*behParam*/ (EXCLAMATION_BOX_BP_WING_CAP << 16), /*beh*/ bhvExclamationBox),
|
|
OBJECT(/*model*/ MODEL_BREAKABLE_BOX, /*pos*/ -3740, 0, 6180, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvBreakableBoxSmall),
|
|
OBJECT(/*model*/ MODEL_WOODEN_SIGNPOST, /*pos*/ -4000, 0, 6300, /*angle*/ 0, 270, 0, /*behParam*/ (DIALOG_095 << 16), /*beh*/ bhvMessagePanel),
|
|
OBJECT(/*model*/ MODEL_1UP, /*pos*/ -6060, 1060, -5340, /*angle*/ 0, 0, 0, /*behParam*/ (4 << 16), /*beh*/ bhvHidden1up),
|
|
OBJECT(/*model*/ MODEL_NONE, /*pos*/ -5760, 1060, -5340, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvHidden1upTrigger),
|
|
OBJECT(/*model*/ MODEL_NONE, /*pos*/ -6360, 1060, -5340, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvHidden1upTrigger),
|
|
OBJECT(/*model*/ MODEL_NONE, /*pos*/ -6060, 1060, -5640, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvHidden1upTrigger),
|
|
OBJECT(/*model*/ MODEL_NONE, /*pos*/ -6060, 1040, -5040, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvHidden1upTrigger),
|
|
OBJECT(/*model*/ MODEL_EXCLAMATION_BOX, /*pos*/ 3789, 3340, 1818, /*angle*/ 0, 0, 0, /*behParam*/ (EXCLAMATION_BOX_BP_WING_CAP << 16), /*beh*/ bhvExclamationBox),
|
|
OBJECT(/*model*/ MODEL_BLACK_BOBOMB, /*pos*/ 2350, 757, 3700, /*angle*/ 0, 0, 0, /*behParam*/ (BOBOMB_BP_STYPE_GENERIC << 16), /*beh*/ bhvBobomb),
|
|
OBJECT(/*model*/ MODEL_BLACK_BOBOMB, /*pos*/ -1750, 0, -2800, /*angle*/ 0, 0, 0, /*behParam*/ (BOBOMB_BP_STYPE_GENERIC << 16), /*beh*/ bhvBobomb),
|
|
OBJECT(/*model*/ MODEL_BLACK_BOBOMB, /*pos*/ -1400, 0, -950, /*angle*/ 0, 0, 0, /*behParam*/ (BOBOMB_BP_STYPE_GENERIC << 16), /*beh*/ bhvBobomb),
|
|
OBJECT(/*model*/ MODEL_BLACK_BOBOMB, /*pos*/ -2650, 0, 1750, /*angle*/ 0, 0, 0, /*behParam*/ (BOBOMB_BP_STYPE_GENERIC << 16), /*beh*/ bhvBobomb),
|
|
OBJECT(/*model*/ MODEL_BLACK_BOBOMB, /*pos*/ -1900, 0, 3450, /*angle*/ 0, 0, 0, /*behParam*/ (BOBOMB_BP_STYPE_GENERIC << 16), /*beh*/ bhvBobomb),
|
|
OBJECT(/*model*/ MODEL_1UP, /*pos*/ -2531, 0, -4201, /*angle*/ 0, 0, 0, /*behParam*/ (MUSHROOM_BP_REQUIRES_NONE << 16), /*beh*/ bhv1Up),
|
|
OBJECT(/*model*/ MODEL_NONE, /*pos*/ 5444, 1400, 6016, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvHidden1upInPoleSpawner),
|
|
OBJECT(/*model*/ MODEL_NONE, /*pos*/ 3640, 768, 6280, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvGoombaTripletSpawner),
|
|
OBJECT(/*model*/ MODEL_NONE, /*pos*/ 6060, 877, 2000, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvGoombaTripletSpawner),
|
|
OBJECT(/*model*/ MODEL_NONE, /*pos*/ -6050, 768, 1250, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvGoombaTripletSpawner),
|
|
OBJECT(/*model*/ MODEL_EXCLAMATION_BOX, /*pos*/ 400, 350, 6500, /*angle*/ 0, 0, 0, /*behParam*/ (EXCLAMATION_BOX_BP_WING_CAP << 16), /*beh*/ bhvExclamationBox),
|
|
OBJECT(/*model*/ MODEL_WOODEN_SIGNPOST, /*pos*/ 66, 0, 6977, /*angle*/ 0, 270, 0, /*behParam*/ (DIALOG_113 << 16), /*beh*/ bhvMessagePanel),
|
|
OBJECT(/*model*/ MODEL_WOODEN_SIGNPOST, /*pos*/ 3394, 3072, 1846, /*angle*/ 0, 0, 0, /*behParam*/ (DIALOG_064 << 16), /*beh*/ bhvMessagePanel),
|
|
OBJECT(/*model*/ MODEL_WOODEN_SIGNPOST, /*pos*/ -3110, 104, 5064, /*angle*/ 0, 270, 0, /*behParam*/ (DIALOG_035 << 16), /*beh*/ bhvMessagePanel),
|
|
OBJECT(/*model*/ MODEL_WOODEN_SIGNPOST, /*pos*/ 6860, 2041, -6640, /*angle*/ 0, 0, 0, /*behParam*/ (DIALOG_074 << 16), /*beh*/ bhvMessagePanel),
|
|
OBJECT(/*model*/ MODEL_WOODEN_SIGNPOST, /*pos*/ -6020, 768, 2957, /*angle*/ 0, 0, 0, /*behParam*/ (DIALOG_104 << 16), /*beh*/ bhvMessagePanel),
|
|
OBJECT(/*model*/ MODEL_NONE, /*pos*/ -1506, 5317, 1250, /*angle*/ 0, 90, 0, /*behParam*/ ((COIN_FORMATION_FLAG_FLYING | COIN_FORMATION_FLAG_RING | COIN_FORMATION_FLAG_VERTICAL) << 16), /*beh*/ bhvCoinFormation),
|
|
OBJECT(/*model*/ MODEL_NONE, /*pos*/ -1506, 5517, 1250, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvHiddenStarTrigger),
|
|
OBJECT(/*model*/ MODEL_BREAKABLE_BOX, /*pos*/ 7157, 2027, -6714, /*angle*/ 0, 0, 0, /*behParam*/ (BREAKABLE_BOX_BP_NO_COINS << 16), /*beh*/ bhvBreakableBox),
|
|
OBJECT(/*model*/ MODEL_NONE, /*pos*/ 1000, 3400, 1250, /*angle*/ 0, 90, 0, /*behParam*/ ((COIN_FORMATION_FLAG_FLYING | COIN_FORMATION_FLAG_RING | COIN_FORMATION_FLAG_VERTICAL) << 16), /*beh*/ bhvCoinFormation),
|
|
OBJECT(/*model*/ MODEL_NONE, /*pos*/ 2000, 3400, 1250, /*angle*/ 0, 90, 0, /*behParam*/ ((COIN_FORMATION_FLAG_FLYING | COIN_FORMATION_FLAG_RING | COIN_FORMATION_FLAG_VERTICAL) << 16), /*beh*/ bhvCoinFormation),
|
|
OBJECT(/*model*/ MODEL_NONE, /*pos*/ 3000, 3400, 1250, /*angle*/ 0, 90, 0, /*behParam*/ ((COIN_FORMATION_FLAG_FLYING | COIN_FORMATION_FLAG_RING | COIN_FORMATION_FLAG_VERTICAL) << 16), /*beh*/ bhvCoinFormation),
|
|
OBJECT(/*model*/ MODEL_NONE, /*pos*/ 1000, 3600, 1250, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvHiddenStarTrigger),
|
|
OBJECT(/*model*/ MODEL_NONE, /*pos*/ 2000, 3600, 1250, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvHiddenStarTrigger),
|
|
OBJECT(/*model*/ MODEL_NONE, /*pos*/ 3000, 3600, 1250, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvHiddenStarTrigger),
|
|
OBJECT(/*model*/ MODEL_BLACK_BOBOMB, /*pos*/ 1127, 2897, -2495, /*angle*/ 0, 0, 0, /*behParam*/ (BOBOMB_BP_STYPE_STATIONARY << 16), /*beh*/ bhvBobomb),
|
|
OBJECT(/*model*/ MODEL_NONE, /*pos*/ 4836, 3079, -2707, /*angle*/ 0, 120, 0, /*behParam*/ ((COIN_FORMATION_FLAG_NONE ) << 16), /*beh*/ bhvCoinFormation),
|
|
OBJECT(/*model*/ MODEL_WOODEN_SIGNPOST, /*pos*/ -3530, 1415, 430, /*angle*/ 0, 45, 0, /*behParam*/ (DIALOG_050 << 16), /*beh*/ bhvMessagePanel),
|
|
OBJECT(/*model*/ MODEL_WOODEN_SIGNPOST, /*pos*/ 5053, 3073, 2180, /*angle*/ 0, 0, 0, /*behParam*/ (DIALOG_053 << 16), /*beh*/ bhvMessagePanel),
|
|
OBJECT(/*model*/ MODEL_YELLOW_COIN, /*pos*/ -1506, 5517, 1250, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvYellowCoin),
|
|
OBJECT(/*model*/ MODEL_YELLOW_COIN, /*pos*/ 1000, 3600, 1250, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvYellowCoin),
|
|
OBJECT(/*model*/ MODEL_YELLOW_COIN, /*pos*/ 2000, 3600, 1250, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvYellowCoin),
|
|
OBJECT(/*model*/ MODEL_YELLOW_COIN, /*pos*/ 3000, 3600, 1250, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvYellowCoin),
|
|
OBJECT(/*model*/ MODEL_NONE, /*pos*/ -300, 4200, 1250, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvHiddenStarTrigger),
|
|
OBJECT(/*model*/ MODEL_WOODEN_SIGNPOST, /*pos*/ -2224, 990, -4359, /*angle*/ 0, 270, 0, /*behParam*/ (DIALOG_039 << 16), /*beh*/ bhvMessagePanel),
|
|
OBJECT(/*model*/ MODEL_WOODEN_SIGNPOST, /*pos*/ 3911, 3529, -7081, /*angle*/ 0, 60, 0, /*behParam*/ (DIALOG_112 << 16), /*beh*/ bhvMessagePanel),
|
|
OBJECT(/*model*/ MODEL_WOODEN_SIGNPOST, /*pos*/ -7000, 1024, -2099, /*angle*/ 0, 0, 0, /*behParam*/ (DIALOG_032 << 16), /*beh*/ bhvMessagePanel),
|
|
OBJECT(/*model*/ MODEL_BREAKABLE_BOX, /*pos*/ -3979, 0, 6627, /*angle*/ 0, 0, 0, /*behParam*/ (BREAKABLE_BOX_BP_3_COINS << 16), /*beh*/ bhvBreakableBox),
|
|
OBJECT(/*model*/ MODEL_EXCLAMATION_BOX, /*pos*/ 5540, 3350, 1200, /*angle*/ 0, 0, 0, /*behParam*/ (EXCLAMATION_BOX_BP_STAR_3 << 16), /*beh*/ bhvExclamationBox),
|
|
OBJECT(/*model*/ MODEL_NONE, /*pos*/ -300, 4000, 1250, /*angle*/ 0, 90, 0, /*behParam*/ ((COIN_FORMATION_FLAG_FLYING | COIN_FORMATION_FLAG_RING | COIN_FORMATION_FLAG_VERTICAL) << 16), /*beh*/ bhvCoinFormation),
|
|
OBJECT(/*model*/ MODEL_YELLOW_COIN, /*pos*/ -300, 4200, 1250, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvYellowCoin),
|
|
OBJECT(/*model*/ MODEL_BREAKABLE_BOX, /*pos*/ -6800, 1024, 40, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvBreakableBoxSmall),
|
|
// Special objects
|
|
OBJECT(/*model*/ MODEL_BOB_BUBBLY_TREE, /*pos*/ -5792, 1024, -4654, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvTree),
|
|
OBJECT(/*model*/ MODEL_BOB_BUBBLY_TREE, /*pos*/ -1509, 144, 5094, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvTree),
|
|
OBJECT(/*model*/ MODEL_BOB_BUBBLY_TREE, /*pos*/ -4095, 768, 3072, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvTree),
|
|
OBJECT(/*model*/ MODEL_BOB_BUBBLY_TREE, /*pos*/ -5119, 768, 2048, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvTree),
|
|
OBJECT(/*model*/ MODEL_BOB_BUBBLY_TREE, /*pos*/ 5444, 863, 6016, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvTree),
|
|
OBJECT(/*model*/ MODEL_BOB_BUBBLY_TREE, /*pos*/ -6655, 768, 3584, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvTree),
|
|
OBJECT(/*model*/ MODEL_BOB_BUBBLY_TREE, /*pos*/ -6130, 900, -6507, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvTree),
|
|
OBJECT(/*model*/ MODEL_BOB_BUBBLY_TREE, /*pos*/ -6804, 1024, -4866, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvTree),
|
|
OBJECT(/*model*/ MODEL_BOB_BUBBLY_TREE, /*pos*/ 6033, 2194, -7660, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvTree),
|
|
OBJECT(/*model*/ MODEL_BOB_BUBBLY_TREE, /*pos*/ -4095, 768, 1536, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvTree),
|
|
OBJECT(/*model*/ MODEL_BOB_BUBBLY_TREE, /*pos*/ -4268, 0, 4768, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvTree),
|
|
OBJECT(/*model*/ MODEL_BOB_BUBBLY_TREE, /*pos*/ -3583, 768, 2560, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvTree),
|
|
OBJECT(/*model*/ MODEL_BOB_BUBBLY_TREE, /*pos*/ -6172, 1024, -430, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvTree),
|
|
OBJECT(/*model*/ MODEL_BOB_BUBBLY_TREE, /*pos*/ 4096, 3072, 1638, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvTree),
|
|
OBJECT(/*model*/ MODEL_BOB_BUBBLY_TREE, /*pos*/ 6799, 2008, -5587, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvTree),
|
|
OBJECT(/*model*/ MODEL_BOB_BUBBLY_TREE, /*pos*/ 2911, 768, 5917, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvTree),
|
|
OBJECT(/*model*/ MODEL_BOB_BUBBLY_TREE, /*pos*/ 4208, 927, 3772, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvTree),
|
|
RETURN(),
|
|
};
|
|
|
|
static const LevelScript script_bob_objects_1[] = {
|
|
OBJECT(/*model*/ MODEL_BOB_CHAIN_CHOMP_GATE, /*pos*/ 1456, 768, 446, /*angle*/ 0, 326, 0, /*behParam*/ 0x00000000, /*beh*/ bhvChainChompGate),
|
|
OBJECT(/*model*/ MODEL_BOB_SEESAW_PLATFORM, /*pos*/ -2303, 717, 1024, /*angle*/ 0, 45, 0, /*behParam*/ 0x00030000, /*beh*/ bhvSeesawPlatform),
|
|
OBJECT(/*model*/ MODEL_NONE, /*pos*/ -2050, 0, -3069, /*angle*/ 0, 25, 0, /*behParam*/ 0x00000000, /*beh*/ bhvOpenableGrill),
|
|
OBJECT(/*model*/ MODEL_PURPLE_SWITCH, /*pos*/ -2283, 0, -3682, /*angle*/ 0, 27, 0, /*behParam*/ 0x00000000, /*beh*/ bhvFloorSwitchGrills),
|
|
OBJECT(/*model*/ MODEL_CHECKERBOARD_PLATFORM, /*pos*/ 1612, 300, 4611, /*angle*/ 0, 0, 0, /*behParam*/ 0x00280000, /*beh*/ bhvCheckerboardElevatorGroup),
|
|
RETURN(),
|
|
};
|
|
|
|
static const LevelScript script_bob_objects_2[] = {
|
|
OBJECT_WITH_ACTS(/*model*/ MODEL_NONE, /*pos*/ 1535, 3840, -5561, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvBobBowlingBallSpawner, /*acts*/ ACT_1 | ACT_2),
|
|
OBJECT_WITH_ACTS(/*model*/ MODEL_NONE, /*pos*/ 1535, 3840, -5561, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvTtmBowlingBallSpawner, /*acts*/ ACT_3 | ACT_4 | ACT_5 | ACT_6),
|
|
OBJECT_WITH_ACTS(/*model*/ MODEL_NONE, /*pos*/ 524, 2825, -5400, /*angle*/ 0, 0, 0, /*behParam*/ 0x00020000, /*beh*/ bhvBobBowlingBallSpawner, /*acts*/ ACT_1 | ACT_2),
|
|
OBJECT_WITH_ACTS(/*model*/ MODEL_NONE, /*pos*/ 524, 2825, -5400, /*angle*/ 0, 0, 0, /*behParam*/ 0x00020000, /*beh*/ bhvTtmBowlingBallSpawner, /*acts*/ ACT_3 | ACT_4 | ACT_5 | ACT_6),
|
|
OBJECT (/*model*/ MODEL_BOWLING_BALL, /*pos*/ -993, 886, -3565, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvPitBowlingBall),
|
|
OBJECT (/*model*/ MODEL_BOWLING_BALL, /*pos*/ -785, 886, -4301, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvPitBowlingBall),
|
|
OBJECT_WITH_ACTS(/*model*/ MODEL_BOWLING_BALL, /*pos*/ -93, 886, -3414, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvPitBowlingBall, /*acts*/ ACT_2 | ACT_3 | ACT_4 | ACT_5 | ACT_6),
|
|
OBJECT_WITH_ACTS(/*model*/ MODEL_BOBOMB_BUDDY, /*pos*/ -5723, 140, 6017, /*angle*/ 0, 0, 0, /*behParam*/ DIALOG_002 << 16, /*beh*/ bhvBobombBuddy, /*acts*/ ACT_1),
|
|
OBJECT_WITH_ACTS(/*model*/ MODEL_BOBOMB_BUDDY, /*pos*/ -6250, 0, 6680, /*angle*/ 0, 0, 0, /*behParam*/ DIALOG_001 << 16, /*beh*/ bhvBobombBuddy, /*acts*/ ACT_1),
|
|
OBJECT_WITH_ACTS(/*model*/ MODEL_BOBOMB_BUDDY, /*pos*/ -5723, 140, 6017, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvBobombBuddyOpensCannon, /*acts*/ ACT_2 | ACT_3 | ACT_4 | ACT_5 | ACT_6),
|
|
OBJECT_WITH_ACTS(/*model*/ MODEL_BOBOMB_BUDDY, /*pos*/ -6250, 0, 6680, /*angle*/ 0, 0, 0, /*behParam*/ DIALOG_003 << 16, /*beh*/ bhvBobombBuddy, /*acts*/ ACT_2 | ACT_3 | ACT_4 | ACT_5 | ACT_6),
|
|
OBJECT_WITH_ACTS(/*model*/ MODEL_CANNON_BASE, /*pos*/ -5694, 128, 5600, /*angle*/ 0, 135, 0, /*behParam*/ 0x00010000, /*beh*/ bhvWaterBombCannon, /*acts*/ ACT_1),
|
|
OBJECT_WITH_ACTS(/*model*/ MODEL_DL_CANNON_LID, /*pos*/ -5694, 128, 5600, /*angle*/ 0, 180, 0, /*behParam*/ 0x00000000, /*beh*/ bhvCannonClosed, /*acts*/ ACT_2 | ACT_3 | ACT_4 | ACT_5 | ACT_6),
|
|
OBJECT_WITH_ACTS(/*model*/ MODEL_NONE, /*pos*/ 3304, 4242, -4603, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvKoopaRaceEndpoint, /*acts*/ ACT_2),
|
|
OBJECT_WITH_ACTS(/*model*/ MODEL_KOOPA_WITH_SHELL, /*pos*/ 3400, 770, 6500, /*angle*/ 0, 0, 0, /*behParam*/ 0x00010000, /*beh*/ bhvKoopa, /*acts*/ ACT_3 | ACT_4 | ACT_5 | ACT_6),
|
|
RETURN(),
|
|
};
|
|
|
|
static const LevelScript script_bob_objects_3[] = {
|
|
OBJECT_WITH_ACTS(/*model*/ MODEL_KING_BOBOMB, /*pos*/ 1636, 4242, -5567, /*angle*/ 0, -147, 0, /*behParam*/ 0x00000000, /*beh*/ bhvKingBobomb, /*acts*/ ACT_1),
|
|
OBJECT_WITH_ACTS(/*model*/ MODEL_KOOPA_WITH_SHELL, /*pos*/ -4004, 0, 5221, /*angle*/ 0, 0, 0, /*behParam*/ 0x01020000, /*beh*/ bhvKoopa, /*acts*/ ACT_2),
|
|
OBJECT_WITH_ACTS(/*model*/ MODEL_NONE, /*pos*/ -6000, 1000, 2400, /*angle*/ 0, 0, 0, /*behParam*/ 0x03000000, /*beh*/ bhvHiddenRedCoinStar, /*acts*/ ALL_ACTS),
|
|
OBJECT_WITH_ACTS(/*model*/ MODEL_NONE, /*pos*/ -6600, 1000, 1250, /*angle*/ 0, 0, 0, /*behParam*/ 0x04040000, /*beh*/ bhvHiddenStar, /*acts*/ ALL_ACTS),
|
|
OBJECT_WITH_ACTS(/*model*/ MODEL_STAR, /*pos*/ 1550, 1200, 300, /*angle*/ 0, 0, 0, /*behParam*/ 0x05000000, /*beh*/ bhvStar, /*acts*/ ALL_ACTS),
|
|
RETURN(),
|
|
};
|
|
|
|
const LevelScript level_bob_entry[] = {
|
|
INIT_LEVEL(),
|
|
LOAD_YAY0( /*seg*/ 0x07, _bob_segment_7SegmentRomStart, _bob_segment_7SegmentRomEnd),
|
|
#include "levels/bob/areas/script_vanilla_load.inc.c"
|
|
ALLOC_LEVEL_POOL(),
|
|
MARIO(/*model*/ MODEL_MARIO, /*behParam*/ 0x00000001, /*beh*/ bhvMario),
|
|
#include "levels/bob/areas/script_vanilla.inc.c"
|
|
|
|
AREA(/*index*/ 1, bob_geo_000488),
|
|
JUMP_LINK(script_bob_objects_1),
|
|
JUMP_LINK(script_bob_objects_2),
|
|
JUMP_LINK(script_bob_objects_3),
|
|
OBJECT(/*model*/ MODEL_NONE, /*pos*/ -6558, 1000, 6464, /*angle*/ 0, 135, 0, /*behParam*/ 0x000A0000, /*beh*/ bhvSpinAirborneWarp),
|
|
OBJECT(/*model*/ MODEL_NONE, /*pos*/ 583, 2683, -5387, /*angle*/ 0, -154, 0, /*behParam*/ 0x000B0000, /*beh*/ bhvFadingWarp),
|
|
OBJECT(/*model*/ MODEL_NONE, /*pos*/ 1680, 3835, -5523, /*angle*/ 0, -153, 0, /*behParam*/ 0x000C0000, /*beh*/ bhvFadingWarp),
|
|
OBJECT(/*model*/ MODEL_NONE, /*pos*/ -6612, 1024, -3351, /*angle*/ 0, 107, 0, /*behParam*/ 0x000D0000, /*beh*/ bhvFadingWarp),
|
|
OBJECT(/*model*/ MODEL_NONE, /*pos*/ 1980, 768, 6618, /*angle*/ 0, -151, 0, /*behParam*/ 0x000E0000, /*beh*/ bhvFadingWarp),
|
|
WARP_NODE(/*id*/ 0x0A, /*destLevel*/ LEVEL_BOB, /*destArea*/ 0x01, /*destNode*/ 0x0A, /*flags*/ WARP_NO_CHECKPOINT),
|
|
WARP_NODE(/*id*/ 0x0B, /*destLevel*/ LEVEL_BOB, /*destArea*/ 0x01, /*destNode*/ 0x0C, /*flags*/ WARP_NO_CHECKPOINT),
|
|
WARP_NODE(/*id*/ 0x0C, /*destLevel*/ LEVEL_BOB, /*destArea*/ 0x01, /*destNode*/ 0x0B, /*flags*/ WARP_NO_CHECKPOINT),
|
|
WARP_NODE(/*id*/ 0x0D, /*destLevel*/ LEVEL_BOB, /*destArea*/ 0x01, /*destNode*/ 0x0E, /*flags*/ WARP_NO_CHECKPOINT),
|
|
WARP_NODE(/*id*/ 0x0E, /*destLevel*/ LEVEL_BOB, /*destArea*/ 0x01, /*destNode*/ 0x0D, /*flags*/ WARP_NO_CHECKPOINT),
|
|
WARP_NODE(/*id*/ 0xF0, /*destLevel*/ LEVEL_CASTLE, /*destArea*/ 0x01, /*destNode*/ 0x32, /*flags*/ WARP_NO_CHECKPOINT),
|
|
WARP_NODE(/*id*/ 0xF1, /*destLevel*/ LEVEL_CASTLE, /*destArea*/ 0x01, /*destNode*/ 0x64, /*flags*/ WARP_NO_CHECKPOINT),
|
|
TERRAIN(/*terrainData*/ bob_seg7_collision_level),
|
|
JUMP_LINK(script_bob_macro_objects),
|
|
SHOW_DIALOG(/*index*/ 0x00, DIALOG_000),
|
|
SET_BACKGROUND_MUSIC(/*settingsPreset*/ 0x0000, /*seq*/ SEQ_LEVEL_GRASS),
|
|
TERRAIN_TYPE(/*terrainType*/ TERRAIN_GRASS),
|
|
END_AREA(),
|
|
|
|
FREE_LEVEL_POOL(),
|
|
MARIO_POS(/*area*/ 1, /*yaw*/ 135, /*pos*/ -6558, 0, 6464),
|
|
CALL(/*arg*/ 0, /*func*/ lvl_init_or_update),
|
|
CALL_LOOP(/*arg*/ 1, /*func*/ lvl_init_or_update),
|
|
CLEAR_LEVEL(),
|
|
SLEEP_BEFORE_EXIT(/*frames*/ 1),
|
|
EXIT(),
|
|
};
|