mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2025-10-30 08:01:01 +00:00
Prevented vanish cap players from interacting with other players
This commit is contained in:
parent
cfd559bc74
commit
8750198750
1 changed files with 9 additions and 0 deletions
|
|
@ -1280,6 +1280,15 @@ u32 interact_player(struct MarioState* m, UNUSED u32 interactType, struct Object
|
||||||
if (m2 == NULL) { return FALSE; }
|
if (m2 == NULL) { return FALSE; }
|
||||||
if (m2->action == ACT_JUMBO_STAR_CUTSCENE) { return FALSE; }
|
if (m2->action == ACT_JUMBO_STAR_CUTSCENE) { return FALSE; }
|
||||||
|
|
||||||
|
// vanish cap players can't interact
|
||||||
|
u32 vanishFlags = (MARIO_VANISH_CAP | MARIO_CAP_ON_HEAD);
|
||||||
|
if ((m->flags & vanishFlags) == vanishFlags) {
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
if ((m2->flags & vanishFlags) == vanishFlags) {
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
// don't do further interactions if we've hopped on top
|
// don't do further interactions if we've hopped on top
|
||||||
if (resolve_player_collision(m, m2)) {
|
if (resolve_player_collision(m, m2)) {
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue