|
73 | 73 |
|
74 | 74 | // Float version required for matching |
75 | 75 | #ifdef VERSION_EU |
76 | | -#define COURSE_TIMER_ITER 0.020041665999999999 // 1 / 50 |
77 | | - #ifdef AVOID_UB |
78 | | - #define COURSE_TIMER_ITER_f 0.020041665999999999f // 1 / 50 |
79 | | - #else |
80 | | - #define COURSE_TIMER_ITER_f 0.01666666f //! 1 / 60 - Float unchanged in EU |
81 | | - #endif |
| 76 | +#define COURSE_TIMER_ITER 0.020041665999999999 // 1 / 50 |
| 77 | +#ifdef AVOID_UB |
| 78 | +#define COURSE_TIMER_ITER_f 0.020041665999999999f // 1 / 50 |
| 79 | +#else |
| 80 | +#define COURSE_TIMER_ITER_f 0.01666666f //! 1 / 60 - Float unchanged in EU |
| 81 | +#endif |
82 | 82 | #else |
83 | 83 | #define COURSE_TIMER_ITER 0.01666666 // 1 / 60 |
84 | 84 | #define COURSE_TIMER_ITER_f 0.01666666f // 1 / 60 |
@@ -331,37 +331,39 @@ enum PLACE { FIRST_PLACE, SECOND_PLACE, THIRD_PLACE, FOURTH_PLACE }; |
331 | 331 | /* |
332 | 332 | * @brief triggers indicating that an effect should be applied to a kart |
333 | 333 | */ |
334 | | -#define HIT_BANANA_TRIGGER 0x1 // hits a banana |
335 | | -#define HIGH_TUMBLE_TRIGGER 0x2 // hit by a red shell, blue shell, or hit a mole |
336 | | -#define LOW_TUMBLE_TRIGGER 0x4 // hit by a green shell |
337 | | -#define DRIVING_SPINOUT_TRIGGER 0x80 // spinning out from erratic driving |
338 | | -#define THWOMP_SQUISH_TRIGGER 0x100 // stomped by thwomp |
339 | | -#define SHROOM_TRIGGER 0x200 // being boosted by trigger a mushroom |
340 | | -#define BOO_TRIGGER 0x800 // being a boo |
341 | | -#define UNUSED_TRIGGER_0x1000 0x1000 // Unused |
342 | | -#define STAR_TRIGGER 0x2000 // Starting a star |
343 | | -#define LIGHTNING_STRIKE_TRIGGER 0x4000 // Struck by lightning |
344 | | -#define BOOST_RAMP_WOOD_TRIGGER 0x8000 // being boosted by a ramp |
345 | | -#define UNUSED_TRIGGER_0x20000 0x20000 // Unused |
346 | | -#define DRAG_ITEM_EFFECT 0x40000 // holding a non-shell item behind you |
347 | | -#define HIT_PADDLE_BOAT_TRIGGER 0x80000 // hit paddle boat |
348 | | -#define UNUSED_TRIGGER_0x10000 0x100000 // Unused |
349 | | -#define SPINOUT_TRIGGER 0x200000 // hit crab or spiny spinout or losing versus race |
350 | | -#define VERTICAL_TUMBLE_TRIGGER 0x400000 // hitting a fake item / bomb / snowman / car / train |
| 334 | +#define HIT_BANANA_TRIGGER 0x1 // hits a banana |
| 335 | +#define HIGH_TUMBLE_TRIGGER 0x2 // hit by a red shell, blue shell, or hit a mole |
| 336 | +#define LOW_TUMBLE_TRIGGER 0x4 // hit by a green shell |
| 337 | +#define DRIVING_SPINOUT_TRIGGER 0x80 // spinning out from erratic driving |
| 338 | +#define THWOMP_SQUISH_TRIGGER 0x100 // stomped by thwomp |
| 339 | +#define SHROOM_TRIGGER 0x200 // being boosted by trigger a mushroom |
| 340 | +#define BOO_TRIGGER 0x800 // being a boo |
| 341 | +#define UNUSED_TRIGGER_0x1000 0x1000 // Unused |
| 342 | +#define STAR_TRIGGER 0x2000 // Starting a star |
| 343 | +#define LIGHTNING_STRIKE_TRIGGER 0x4000 // Struck by lightning |
| 344 | +#define BOOST_RAMP_WOOD_TRIGGER 0x8000 // being boosted by a ramp |
| 345 | +#define UNUSED_TRIGGER_0x20000 0x20000 // Unused |
| 346 | +#define DRAG_ITEM_EFFECT 0x40000 // holding a non-shell item behind you |
| 347 | +#define HIT_PADDLE_BOAT_TRIGGER 0x80000 // hit paddle boat |
| 348 | +#define UNUSED_TRIGGER_0x10000 0x100000 // Unused |
| 349 | +#define SPINOUT_TRIGGER 0x200000 // hit crab or spiny spinout or losing versus race |
| 350 | +#define VERTICAL_TUMBLE_TRIGGER 0x400000 // hitting a fake item / bomb / snowman / car / train |
351 | 351 | #define BOOST_RAMP_ASPHALT_TRIGGER 0x800000 // being boosted by a boost pad |
352 | | -#define HIT_BY_STAR_TRIGGER 0x1000000 // being hit by a star |
353 | | -#define START_BOOST_TRIGGER 0x2000000 // Start boost |
354 | | -#define LOSE_BATTLE_EFFECT 0x4000000 // When losing battle mode |
355 | | -#define BECOME_BOMB_EFFECT 0x8000000 // When becoming a bomb in battle mode |
356 | | -#define START_SPINOUT_TRIGGER 0x10000000 // Spinning out by holding gas at start of race |
| 352 | +#define HIT_BY_STAR_TRIGGER 0x1000000 // being hit by a star |
| 353 | +#define START_BOOST_TRIGGER 0x2000000 // Start boost |
| 354 | +#define LOSE_BATTLE_EFFECT 0x4000000 // When losing battle mode |
| 355 | +#define BECOME_BOMB_EFFECT 0x8000000 // When becoming a bomb in battle mode |
| 356 | +#define START_SPINOUT_TRIGGER 0x10000000 // Spinning out by holding gas at start of race |
357 | 357 |
|
358 | 358 | #define ALL_TRIGGERS (0xFFFFFFFF) |
359 | 359 | #define RACING_SPINOUT_TRIGGERS (SPINOUT_TRIGGER | DRIVING_SPINOUT_TRIGGER | HIT_BANANA_TRIGGER) // 0x200081 |
360 | | -#define RAMP_BOOST_TRIGGERS (BOOST_RAMP_ASPHALT_TRIGGER | BOOST_RAMP_WOOD_TRIGGER) // 0x00808000 |
361 | | -#define ANY_BOOST_TRIGGERS (RAMP_BOOST_TRIGGERS | SHROOM_TRIGGER) // 0x00808200 |
362 | | -#define STATE_TRANSITION_TRIGGERS (STAR_TRIGGER | BOO_TRIGGER | UNUSED_TRIGGER_0x1000 | UNUSED_TRIGGER_0x20000)// 0x00023800 |
363 | | -#define HIT_TRIGGERS (HIT_BY_STAR_TRIGGER | VERTICAL_TUMBLE_TRIGGER | \ |
364 | | - LIGHTNING_STRIKE_TRIGGER | LOW_TUMBLE_TRIGGER | HIGH_TUMBLE_TRIGGER | THWOMP_SQUISH_TRIGGER) // 0x01404106 |
| 360 | +#define RAMP_BOOST_TRIGGERS (BOOST_RAMP_ASPHALT_TRIGGER | BOOST_RAMP_WOOD_TRIGGER) // 0x00808000 |
| 361 | +#define ANY_BOOST_TRIGGERS (RAMP_BOOST_TRIGGERS | SHROOM_TRIGGER) // 0x00808200 |
| 362 | +#define STATE_TRANSITION_TRIGGERS \ |
| 363 | + (STAR_TRIGGER | BOO_TRIGGER | UNUSED_TRIGGER_0x1000 | UNUSED_TRIGGER_0x20000) // 0x00023800 |
| 364 | +#define HIT_TRIGGERS \ |
| 365 | + (HIT_BY_STAR_TRIGGER | VERTICAL_TUMBLE_TRIGGER | LIGHTNING_STRIKE_TRIGGER | LOW_TUMBLE_TRIGGER | \ |
| 366 | + HIGH_TUMBLE_TRIGGER | THWOMP_SQUISH_TRIGGER) // 0x01404106 |
365 | 367 |
|
366 | 368 | /** |
367 | 369 | * @brief effect of player's |
|
0 commit comments