Merge branch 'coop' of github.com:sm64ex-coop-dev/sm64ex-coop into coop

This commit is contained in:
MysterD 2023-04-02 21:19:04 -07:00
commit dbde7dc22e
2 changed files with 11 additions and 11 deletions

View File

@ -2007,17 +2007,17 @@ s32 execute_mario_action(UNUSED struct Object *o) {
np->fadeOpacity += 2; np->fadeOpacity += 2;
gMarioState->fadeWarpOpacity = np->fadeOpacity << 3; gMarioState->fadeWarpOpacity = np->fadeOpacity << 3;
} }
}
if (gServerSettings.enableCheats) { if (gServerSettings.enableCheats) {
if (gCheats.godMode) { if (gCheats.godMode) {
gMarioState->health = 0x880; gMarioState->health = 0x880;
gMarioState->healCounter = 0; gMarioState->healCounter = 0;
gMarioState->hurtCounter = 0; gMarioState->hurtCounter = 0;
} }
if (gCheats.infiniteLives && gMarioState->numLives < 100) { if (gCheats.infiniteLives && gMarioState->numLives < 100) {
gMarioState->numLives = 100; gMarioState->numLives = 100;
}
} }
} }

View File

@ -338,7 +338,7 @@ s32 perform_ground_step(struct MarioState *m) {
smlua_call_event_hooks_mario_param(HOOK_BEFORE_PHYS_STEP, m); smlua_call_event_hooks_mario_param(HOOK_BEFORE_PHYS_STEP, m);
if (gServerSettings.enableCheats && gCheats.superSpeed && m->playerIndex == 0) { if (gServerSettings.enableCheats && gCheats.superSpeed && m->playerIndex == 0 && m->action != ACT_BUBBLED) {
m->vel[0] *= SUPER_SPEED_MULTIPLIER; m->vel[0] *= SUPER_SPEED_MULTIPLIER;
m->vel[2] *= SUPER_SPEED_MULTIPLIER; m->vel[2] *= SUPER_SPEED_MULTIPLIER;
} }
@ -689,7 +689,7 @@ s32 perform_air_step(struct MarioState *m, u32 stepArg) {
smlua_call_event_hooks_mario_param(HOOK_BEFORE_PHYS_STEP, m); smlua_call_event_hooks_mario_param(HOOK_BEFORE_PHYS_STEP, m);
if (gServerSettings.enableCheats && gCheats.superSpeed && m->playerIndex == 0) { if (gServerSettings.enableCheats && gCheats.superSpeed && m->playerIndex == 0 && m->action != ACT_BUBBLED) {
m->vel[0] *= SUPER_SPEED_MULTIPLIER; m->vel[0] *= SUPER_SPEED_MULTIPLIER;
m->vel[2] *= SUPER_SPEED_MULTIPLIER; m->vel[2] *= SUPER_SPEED_MULTIPLIER;
} }