mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-26 14:03:01 +00:00
Prevent King Bobomb from grabbing while thrown
This commit is contained in:
parent
e4c1640c56
commit
ff1b19e2ee
2 changed files with 10 additions and 3 deletions
|
@ -362,7 +362,9 @@ void king_bobomb_move(void) {
|
|||
#endif
|
||||
}
|
||||
|
||||
u8 king_bobomb_ignore_if_true(void) { return o->oAction == 8; }
|
||||
u8 king_bobomb_ignore_if_true(void) {
|
||||
return o->oAction == 8;
|
||||
}
|
||||
|
||||
void bhv_king_bobomb_loop(void) {
|
||||
if (!network_sync_object_initialized(o)) {
|
||||
|
@ -377,7 +379,12 @@ void bhv_king_bobomb_loop(void) {
|
|||
f32 sp34 = 20.0f;
|
||||
f32 sp30 = 50.0f;
|
||||
UNUSED u8 pad[8];
|
||||
o->oInteractionSubtype |= INT_SUBTYPE_GRABS_MARIO;
|
||||
|
||||
if (o->oAction == 4) {
|
||||
o->oInteractionSubtype &= ~INT_SUBTYPE_GRABS_MARIO;
|
||||
} else {
|
||||
o->oInteractionSubtype |= INT_SUBTYPE_GRABS_MARIO;
|
||||
}
|
||||
switch (o->oHeldState) {
|
||||
case HELD_FREE:
|
||||
king_bobomb_move();
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
#ifdef DEBUG
|
||||
|
||||
static u8 warpToLevel = LEVEL_BITFS;
|
||||
static u8 warpToLevel = LEVEL_BOB;
|
||||
|
||||
#define SCANCODE_0 0x0B
|
||||
#define SCANCODE_1 0x02
|
||||
|
|
Loading…
Reference in a new issue