mirror of
https://github.com/HarbourMasters/Starship.git
synced 2025-02-02 16:23:57 +03:00
new cheat: Unbreakable wings.
This commit is contained in:
parent
16f4c15952
commit
29fb86f92d
@ -935,6 +935,7 @@ void Player_DamageWings(Player* player, s32 side, s32 damage) {
|
||||
gRightWingFlashTimer[player->num] = 30;
|
||||
if (player->arwing.rightWingState == WINGSTATE_INTACT) {
|
||||
gRightWingHealth[player->num] -= damage;
|
||||
if (CVarGetInteger("gUnbreakableWings", 0) == 0) {
|
||||
if (gRightWingHealth[player->num] <= 0) {
|
||||
Play_SpawnDebris(1, player->hit1.x, player->hit1.y, player->hit1.z);
|
||||
player->arwing.rightWingState = WINGSTATE_BROKEN;
|
||||
@ -946,10 +947,12 @@ void Player_DamageWings(Player* player, s32 side, s32 damage) {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
} else if (side == 2) {
|
||||
gLeftWingFlashTimer[player->num] = 30;
|
||||
if (player->arwing.leftWingState == WINGSTATE_INTACT) {
|
||||
gLeftWingHealth[player->num] -= damage;
|
||||
if (CVarGetInteger("gUnbreakableWings", 0) == 0) {
|
||||
if (gLeftWingHealth[player->num] <= 0) {
|
||||
Play_SpawnDebris(0, player->hit2.x, player->hit2.y, player->hit2.z);
|
||||
player->arwing.leftWingState = WINGSTATE_BROKEN;
|
||||
@ -964,6 +967,7 @@ void Player_DamageWings(Player* player, s32 side, s32 damage) {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void Player_ApplyDamage(Player* player, s32 direction, s32 damage) {
|
||||
Vec3f sp44;
|
||||
|
@ -425,7 +425,12 @@ void DrawEnhancementsMenu() {
|
||||
|
||||
if (UIWidgets::BeginMenu("Gameplay")) {
|
||||
UIWidgets::CVarCheckbox("No Level of Detail (LOD)", "gDisableLOD", {
|
||||
.tooltip = "Disable Level of Detail (LOD) to avoid models using lower poly versions at a distance"
|
||||
.tooltip = "Disable Level of Detail (LOD) to avoid models using lower poly versions at a distance",
|
||||
.defaultValue = true
|
||||
});
|
||||
UIWidgets::CVarCheckbox("Character heads inside Arwings at all times", "gTeamFaces", {
|
||||
.tooltip = "Character heads are displayed inside Arwings in all cutscenes",
|
||||
.defaultValue = true
|
||||
});
|
||||
|
||||
ImGui::EndMenu();
|
||||
@ -454,6 +459,7 @@ void DrawEnhancementsMenu() {
|
||||
void DrawCheatsMenu() {
|
||||
if (UIWidgets::BeginMenu("Cheats")) {
|
||||
UIWidgets::CVarCheckbox("Infinite Lives", "gInfiniteLives");
|
||||
UIWidgets::CVarCheckbox("Unbreakable Wings", "gUnbreakableWings");
|
||||
UIWidgets::CVarCheckbox("Infinite Bombs", "gInfiniteBombs");
|
||||
UIWidgets::CVarCheckbox("Hyper Laser", "gHyperLaser");
|
||||
|
||||
@ -475,8 +481,6 @@ void DrawHit64Menu() {
|
||||
UIWidgets::CVarCheckbox("Start with Peppy dead", "gHit64PeppyDead", {
|
||||
.tooltip = "Start the level with with Peppy dead."
|
||||
});
|
||||
// UIWidgets::CVarCheckbox("Infinite Bombs", "gInfiniteBombs");
|
||||
// UIWidgets::CVarCheckbox("Hyper Laser", "gHyperLaser");
|
||||
|
||||
ImGui::EndMenu();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user