warp.inc.c (943B)
1 // warp.inc.c 2 3 void bhv_warp_loop(void) { 4 if (o->oTimer == 0) { 5 u16 bhvParams1stByte = (o->oBhvParams >> 24) & 0xFF; 6 7 if (bhvParams1stByte == 0x00) { 8 o->hitboxRadius = 50.0f; 9 } else if (bhvParams1stByte == 0xFF) { 10 o->hitboxRadius = 10000.0f; 11 } else { 12 o->hitboxRadius = bhvParams1stByte * 10.0; 13 } 14 o->hitboxHeight = 50.0f; 15 } 16 17 o->oInteractStatus = 0; 18 } 19 20 // identical to the above function except for o->hitboxRadius 21 void bhv_fading_warp_loop() { 22 if (o->oTimer == 0) { 23 u16 bhvParams1stByte = (o->oBhvParams >> 24) & 0xFF; 24 25 if (bhvParams1stByte == 0x00) { 26 o->hitboxRadius = 85.0f; 27 } else if (bhvParams1stByte == 0xFF) { 28 o->hitboxRadius = 10000.0f; 29 } else { 30 o->hitboxRadius = bhvParams1stByte * 10.0; 31 } 32 o->hitboxHeight = 50.0f; 33 } 34 35 o->oInteractStatus = 0; 36 }