2019-08-25 04:46:40 +00:00
|
|
|
// warp.c.inc
|
|
|
|
|
|
|
|
void bhv_warp_loop(void) {
|
|
|
|
u16 sp6;
|
|
|
|
if (o->oTimer == 0) {
|
|
|
|
sp6 = (o->oBehParams >> 24) & 0xFF;
|
|
|
|
if (sp6 == 0)
|
|
|
|
o->hitboxRadius = 50.0f;
|
|
|
|
else if (sp6 == 0xFF)
|
|
|
|
o->hitboxRadius = 10000.0f;
|
|
|
|
else
|
|
|
|
o->hitboxRadius = sp6 * 10.0;
|
|
|
|
o->hitboxHeight = 50.0f;
|
|
|
|
}
|
|
|
|
o->oInteractStatus = 0;
|
|
|
|
}
|
|
|
|
|
2020-03-02 03:42:52 +00:00
|
|
|
void bhv_fading_warp_loop() // identical to the above function except for o->hitboxRadius
|
2019-08-25 04:46:40 +00:00
|
|
|
{
|
|
|
|
u16 sp6;
|
|
|
|
if (o->oTimer == 0) {
|
|
|
|
sp6 = (o->oBehParams >> 24) & 0xFF;
|
|
|
|
if (sp6 == 0)
|
|
|
|
o->hitboxRadius = 85.0f;
|
|
|
|
else if (sp6 == 0xFF)
|
|
|
|
o->hitboxRadius = 10000.0f;
|
|
|
|
else
|
|
|
|
o->hitboxRadius = sp6 * 10.0;
|
|
|
|
o->hitboxHeight = 50.0f;
|
|
|
|
}
|
|
|
|
o->oInteractStatus = 0;
|
|
|
|
}
|