mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2025-01-22 07:32:07 -05:00
Prevent trades against dives with slidekicks
This commit is contained in:
parent
1d666b41db
commit
2a2c3266a7
1 changed files with 1 additions and 0 deletions
|
@ -1472,6 +1472,7 @@ u32 interact_player_pvp(struct MarioState* attacker, struct MarioState* victim)
|
|||
|
||||
// if the victim is going faster, do not attack
|
||||
// However if the victim is diving and the attacker is slidekicking, do not check speed
|
||||
if (attacker->action == ACT_DIVE && cVictim->action == ACT_SLIDE_KICK) { return FALSE; } // Make slidekicks immune to dives altogether
|
||||
if (!(attacker->action == ACT_SLIDE_KICK && cVictim->action == ACT_DIVE) && vec3f_length(cVictim->vel) > vec3f_length(attacker->vel)) { return FALSE; }
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue