Go to the source code of this file.
|
s32 | entity_try_partner_interaction_trigger (s32) |
|
s32 | test_item_entity_position (f32, f32, f32, f32) |
|
void | fx_damage_stars (s32, f32, f32, f32, f32, f32, f32, s32) |
|
void | auto_collect_item_entity (s32) |
|
s32 N | lateral_hit_interactable_entity (Npc *npc) |
|
void N | vertical_hit_interactable_entity (Npc *kooper) |
|
s32 N | check_for_item_collision (Npc *kooper) |
|
void N | init (Npc *kooper) |
|
void N | try_cancel_tweester (Npc *kooper) |
|
s32 N | test_first_strike (Npc *kooper, Npc *enemy) |
|
void N | pre_battle (Npc *kooper) |
|
void N | post_battle (Npc *npc) |
|
◆ USE_STATE
#define USE_STATE functionTemp[0] |
◆ TEST_COLLISION_AT_ANGLE
Value: ( \
)
BSS s32 PopupMenu_SelectedIndex
@ COLLIDER_FLAG_IGNORE_SHELL
◆ anonymous enum
Enumerator |
---|
SHELL_TOSS_HITBOX_DISABLED | |
SHELL_TOSS_HITBOX_ENABLED | |
SHELL_TOSS_HITBOX_HIT_ENEMY | |
Definition at line 27 of file kooper.c.
27 {
31};
@ SHELL_TOSS_HITBOX_HIT_ENEMY
@ SHELL_TOSS_HITBOX_ENABLED
@ SHELL_TOSS_HITBOX_DISABLED
◆ entity_try_partner_interaction_trigger()
s32 entity_try_partner_interaction_trigger |
( |
s32 | entityIdx | ) |
|
Definition at line 677 of file entity.c.
677 {
682
683 switch (partnerID) {
685 switch (entityType) {
686 default:
705 }
706 break;
708 switch (entityType) {
709 default:
728 }
729 break;
730 }
732}
Entity * get_entity_by_index(s32 index)
u32 get_entity_type(s32 index)
@ ENTITY_TYPE_HAMMER1_BLOCK
@ ENTITY_TYPE_SINGLE_TRIGGER_BLOCK
@ ENTITY_TYPE_BOMBABLE_ROCK
@ ENTITY_TYPE_HIDDEN_RED_BLOCK
@ ENTITY_TYPE_SUPER_BLOCK
@ ENTITY_TYPE_HEALING_BLOCK
@ ENTITY_TYPE_BLUE_SWITCH
@ ENTITY_TYPE_MULTI_COIN_BRICK
@ ENTITY_TYPE_BRICK_BLOCK
@ ENTITY_TYPE_HIDDEN_YELLOW_BLOCK
@ ENTITY_TYPE_MULTI_TRIGGER_BLOCK
@ ENTITY_TYPE_HAMMER1_BLOCK_TINY
@ ENTITY_TYPE_YELLOW_BLOCK
@ ENTITY_FLAG_PARTNER_COLLISION
s8 get_current_partner_id(void)
Referenced by lateral_hit_interactable_entity(), and vertical_hit_interactable_entity().
◆ test_item_entity_position()
s32 test_item_entity_position |
( |
f32 | x, |
|
|
f32 | y, |
|
|
f32 | z, |
|
|
f32 | dist ) |
Definition at line 1482 of file item_entity.c.
1482 {
1485 s32 i;
1486
1489 {
1490 return -1;
1491 }
1492
1495
1497 continue;
1498 }
1499
1500 if (item->
flags == 0) {
1501 continue;
1502 }
1503
1505 continue;
1506 }
1507
1509 continue;
1510 }
1511
1513 continue;
1514 }
1515
1517 continue;
1518 }
1519
1524 return i;
1525 }
1526 }
1527 return -1;
1528}
@ ITEM_ENTITY_FLAG_CANT_COLLECT
@ ITEM_ENTITY_FLAG_HIDDEN
@ ITEM_SPAWN_MODE_DECORATION
@ ITEM_SPAWN_MODE_INVISIBLE
@ GLOBAL_OVERRIDES_CANT_PICK_UP_ITEMS
s32 is_starting_conversation(void)
s32 get_time_freeze_mode(void)
#define MAX_ITEM_ENTITIES
BSS ItemEntity ** gCurrentItemEntities
Referenced by check_for_item_collision().
◆ fx_damage_stars()
◆ auto_collect_item_entity()
void auto_collect_item_entity |
( |
s32 | index | ) |
|
Definition at line 1547 of file item_entity.c.
1547 {
1551}
@ ITEM_ENTITY_FLAG_AUTO_COLLECT
◆ lateral_hit_interactable_entity()
s32 N lateral_hit_interactable_entity |
( |
Npc * | npc | ) |
|
Definition at line 35 of file kooper.c.
35 {
38 }
39
42 }
43
45}
#define COLLISION_WITH_ENTITY_BIT
s32 NpcHitQueryColliderID
s32 entity_try_partner_interaction_trigger(s32)
◆ vertical_hit_interactable_entity()
void N vertical_hit_interactable_entity |
( |
Npc * | kooper | ) |
|
Definition at line 47 of file kooper.c.
47 {
49 return;
50 }
51
53 return;
54 }
55
57}
◆ check_for_item_collision()
s32 N check_for_item_collision |
( |
Npc * | kooper | ) |
|
Definition at line 59 of file kooper.c.
59 {
61
64 }
65
70}
void set_item_entity_flags(s32 itemEntityIndex, s32 flag)
ApiStatus HasItem(Evt *script, b32 isInitialCall)
s32 test_item_entity_position(f32, f32, f32, f32)
◆ init()
Definition at line 72 of file kooper.c.
72 {
73 kooper->collisionHeight = 37;
74 kooper->collisionDiameter = 24;
77}
@ COLLIDER_FLAG_IGNORE_PLAYER
◆ try_cancel_tweester()
void N try_cancel_tweester |
( |
Npc * | kooper | ) |
|
Definition at line 185 of file kooper.c.
185 {
191 }
192}
void partner_clear_player_tracking(Npc *partner)
Entity * TweesterTouchingPartner
◆ test_first_strike()
s32 N test_first_strike |
( |
Npc * | kooper, |
|
|
Npc * | enemy ) |
Definition at line 669 of file kooper.c.
669 {
681
686
690
693
696
699
703
706 ) {
708 }
709
712 }
713
716 }
717
721
725 }
726 }
728}
f32 dist2D(f32 ax, f32 ay, f32 bx, f32 by)
b32 npc_test_move_taller_with_slipping(s32, f32 *, f32 *, f32 *, f32, f32, f32, f32)
◆ pre_battle()
Definition at line 730 of file kooper.c.
730 {
734
738 }
739
743 }
744
747
751
756
759 }
760}
@ PARTNER_ACTION_KOOPER_TOSS
@ SOUND_KOOPER_SHELL_SWIRL
void disable_npc_blur(Npc *npc)
s32 enable_player_input(void)
void set_action_state(s32 actionState)
void sfx_stop_sound(s32 soundID)
PartnerStatus gPartnerStatus
PlayerStatus gPlayerStatus
◆ post_battle()
Definition at line 762 of file kooper.c.
762 {
766 }
767}
s32 partner_use_ability(void)
◆ D_802BEC7C
◆ ShellTossHitboxState
◆ EVS_WorldKooper_TakeOut
Initial value:= {
}
#define End
Signals the end of EVT script data. A script missing this will likely crash on load.
#define Call(FUNC, ARGS...)
Calls a given C EVT API function with any number of arguments.
#define Return
Kills the current EVT thread.
Definition at line 93 of file kooper.c.
◆ EVS_WorldKooper_Update
Initial value:
Definition at line 194 of file kooper.c.
◆ EVS_WorldKooper_UseAbility
Initial value:
Definition at line 647 of file kooper.c.
◆ EVS_WorldKooper_PutAway
Initial value:
Definition at line 663 of file kooper.c.