Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CREDITS.md
Original file line number Diff line number Diff line change
Expand Up @@ -738,6 +738,7 @@ This page lists all the individual contributions to the project by their author.
- Remove the restriction that prohibits InfantryTypes from using the InitialPayload logic
- Add `ammo`, `health`, `mission`, `landtype` and `sequence` conditions to `DiscardOn`
- Disable AlphaImage during Buildup
- Allow `SW.ShowCameo` and `SW.ManualFire` to work independently of `SW.AutoFire`
- **Ollerus**:
- Build limit group enhancement
- Customizable rocker amplitude
Expand Down
1 change: 1 addition & 0 deletions docs/Fixed-or-Improved-Logics.md
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,7 @@ This page describes all ingame logics that are fixed or improved in Phobos witho
- Fixed the issue of Ares' EMP not suspending the production of AI factories.
- Removed the restriction that prohibits InfantryTypes from using the InitialPayload logic.
- `ProjectileRange` now has weapon range modifiers applied to it if greater than 0 and unless `ProjectileRange.ApplyModifiers` is set to false on the WeaponType.
- Allowed `SW.ShowCameo` and `SW.ManualFire` to work independently of `SW.AutoFire`.

## Newly added global settings

Expand Down
1 change: 1 addition & 0 deletions docs/Whats-New.md
Original file line number Diff line number Diff line change
Expand Up @@ -826,6 +826,7 @@ HideShakeEffects=false ; boolean
- Fixed the issue of Ares' EMP not suspending the production of AI factories (by CrimRecya)
- Removed the restriction that prohibits InfantryTypes from using the InitialPayload logic (by Noble_Fish)
- `ProjectileRange` now has weapon range modifiers applied to it if greater than 0 and unless `ProjectileRange.ApplyModifiers` is set to false on the WeaponType (by Starkku)
- Allowed `SW.ShowCameo` and `SW.ManualFire` to work independently of `SW.AutoFire` (by Noble_Fish)
```

### 0.4.0.3
Expand Down
2 changes: 1 addition & 1 deletion src/Ext/Sidebar/SWSidebar/SWButtonClass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ bool SWButtonClass::LaunchSuper() const
const auto pSuper = pCurrent->Supers[this->SuperIndex];
const auto pType = pSuper->Type;
const auto pSWExt = SWTypeExt::Fetch(pType);
const bool manual = !pSWExt->SW_ManualFire && pSWExt->SW_AutoFire;
const bool manual = !pSWExt->SW_ManualFire;
const bool unstoppable = pType->UseChargeDrain && pSuper->ChargeDrainState == ChargeDrainState::Draining && pSWExt->SW_Unstoppable;

if (!pSuper->CanFire() && !manual)
Expand Down
2 changes: 1 addition & 1 deletion src/Ext/Sidebar/SWSidebar/SWSidebarClass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ bool SWSidebarClass::AddButton(int superIdx)

const auto pSWExt = SWTypeExt::Fetch(pSWType);

if (!pSWExt->SW_ShowCameo && pSWExt->SW_AutoFire)
if (!pSWExt->SW_ShowCameo)
return false;

if (!pSWExt->SuperWeaponSidebar_Allow.Get(RulesExt::Global()->SuperWeaponSidebar_AllowByDefault))
Expand Down
12 changes: 11 additions & 1 deletion src/Misc/Hooks.Ares.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <Utilities/AresHelper.h>
#include <Utilities/AresHelper.h>
#include <Utilities/AresFunctions.h>
#include <Utilities/Helpers.Alex.h>

Expand Down Expand Up @@ -292,6 +292,11 @@ void Apply_Ares3_0_Patches()
Patch::Apply_CALL(AresHelper::AresBaseAddress + 0x13FA7, &BuildingExt::UpdateFactoryQueues);
Patch::Apply_CALL(AresHelper::AresBaseAddress + 0x4CD9E, &BuildingExt::UpdateFactoryQueues);
Patch::Apply_CALL(AresHelper::AresBaseAddress + 0x4CE84, &BuildingExt::UpdateFactoryQueues);

// Decouple SW.ShowCameo from SW.AutoFire - Ares' HouseClass_UpdateSuperWeaponsUnavailable
Patch::Apply_LJMP(AresHelper::AresBaseAddress + 0x39635, AresHelper::AresBaseAddress + 0x39664);
// Decouple SW.ManualFire from SW.AutoFire - Ares' SidebarClass_ProcessCameoClick_SuperWeapons
Patch::Apply_LJMP(AresHelper::AresBaseAddress + 0x34DD0, AresHelper::AresBaseAddress + 0x34DD9);
}

void Apply_Ares3_0p1_Patches()
Expand Down Expand Up @@ -403,4 +408,9 @@ void Apply_Ares3_0p1_Patches()
Patch::Apply_CALL(AresHelper::AresBaseAddress + 0x14537, &BuildingExt::UpdateFactoryQueues);
Patch::Apply_CALL(AresHelper::AresBaseAddress + 0x4DA0E, &BuildingExt::UpdateFactoryQueues);
Patch::Apply_CALL(AresHelper::AresBaseAddress + 0x4DAF4, &BuildingExt::UpdateFactoryQueues);

// Decouple SW.ShowCameo from SW.AutoFire - Ares' HouseClass_UpdateSuperWeaponsUnavailable
Patch::Apply_LJMP(AresHelper::AresBaseAddress + 0x3A0B5, AresHelper::AresBaseAddress + 0x3A0E4);
// Decouple SW.ManualFire from SW.AutoFire - Ares' SidebarClass_ProcessCameoClick_SuperWeapons
Patch::Apply_LJMP(AresHelper::AresBaseAddress + 0x35810, AresHelper::AresBaseAddress + 0x35819);
}
Loading