Add Katina Friendly Fire Penalty tweak

This commit is contained in:
Kiloku 2024-12-26 20:57:55 -03:00
parent fbc101958b
commit 7e53e72246
2 changed files with 7 additions and 0 deletions

View File

@ -993,6 +993,9 @@ void ActorAllRange_ApplyDamage(ActorAllRange* this) {
if (gKaAllyKillCount < 2) {
ActorAllRange_PlayMessage(gMsg_ID_18018, RCID_BILL);
}
if (CVarGetInteger("gKatinaPunishFF", 0) == 1 && gHitCount > 0) {
gHitCount--;
}
gKaAllyKillCount++;
}
switch (this->aiType) {

View File

@ -446,6 +446,10 @@ void DrawEnhancementsMenu() {
.tooltip = "Character heads are displayed inside Arwings in all cutscenes",
.defaultValue = true
});
UIWidgets::CVarCheckbox("Score penalty on Katina Friendly Fire", "gKatinaPunishFF", {
.tooltip = "Shooting down a friendly fighter on Katina reduces your score.",
.defaultValue = false
});
ImGui::EndMenu();
}