mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-12-22 16:30:23 +00:00
Make PVP hitboxes a little more small
This commit is contained in:
parent
237753e63b
commit
ec876b2017
2 changed files with 2 additions and 2 deletions
|
@ -209,7 +209,7 @@ static u32 determine_interaction_internal(struct MarioState *m, struct Object *o
|
|||
interaction = INT_KICK;
|
||||
}
|
||||
}
|
||||
if (m->flags & MARIO_TRIPPING) {
|
||||
if (m->flags & MARIO_TRIPPING && gCoopCompatibility) {
|
||||
// 180 degrees total, or 90 each way
|
||||
if (-0x4000 <= dYawToObject && dYawToObject <= 0x4000) {
|
||||
interaction = INT_TRIP;
|
||||
|
|
|
@ -39,7 +39,7 @@ int detect_player_hitbox_overlap(struct MarioState* local, struct MarioState* re
|
|||
f32 dx = aTorso[0] - bTorso[0];
|
||||
UNUSED f32 sp30 = sp3C - sp38;
|
||||
f32 dz = aTorso[2] - bTorso[2];
|
||||
f32 collisionRadius = (a->hitboxRadius + b->hitboxRadius) * (gCoopCompatibility ? 2.25f : 1.75f); // 1.5f before
|
||||
f32 collisionRadius = (a->hitboxRadius + b->hitboxRadius) * (gCoopCompatibility ? 2.25f : 1.6f); // 1.5f before
|
||||
f32 distance = sqrtf(dx * dx + dz * dz);
|
||||
|
||||
if (collisionRadius * scale > distance) {
|
||||
|
|
Loading…
Reference in a new issue