Laser range cheat (#112)

* Add Laser Range cheat

* Change range cheat to be a multiplier instead

* Address bomb weirdness

* Move cheat to Hooks system
This commit is contained in:
Kiloku
2025-01-04 00:32:59 -03:00
committed by GitHub
parent b4457a03a9
commit 97e63d6b06
5 changed files with 12 additions and 4 deletions
+3 -2
View File
@@ -3081,6 +3081,7 @@ void Player_SetupArwingShot(Player* player, PlayerShot* shot, f32 arg2, f32 arg3
shot->timer = 30;
}
}
shot->sourceId = player->num;
}
@@ -3156,7 +3157,7 @@ void Player_TankCannon(Player* player) {
}
}
if (!PlayerActionPreShootEvent_.event.cancelled){
CALL_EVENT(PlayerActionPostShootEvent, player, gLaserStrength[gPlayerNum]);
CALL_EVENT(PlayerActionPostShootEvent, player, &gPlayerShots[i]);
}
}
@@ -3205,7 +3206,7 @@ void Player_ArwingLaser(Player* player) {
}
break;
}
CALL_EVENT(PlayerActionPostShootEvent, player, laser);
CALL_EVENT(PlayerActionPostShootEvent, player, &gPlayerShots[i]);
}
void Player_SmartBomb(Player* player) {