mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-12-22 16:18:50 -05:00
Cheat: shield with two-handed weapons (#487)
This commit is contained in:
parent
93e69c924d
commit
ac8acaeba4
@ -1083,6 +1083,8 @@ namespace SohImGui {
|
||||
Tooltip("Drops from enemies, grass, etc. don't disappear after a set amount of time");
|
||||
EnhancementCheckbox("Fireproof Deku Shield", "gFireproofDekuShield");
|
||||
Tooltip("Prevents the Deku Shield from burning on contact with fire");
|
||||
EnhancementCheckbox("Shield with Two-Handed Weapons", "gShieldTwoHanded");
|
||||
Tooltip("Allows Link to shield normally with two-handed swords and the Megaton Hammer");
|
||||
|
||||
ImGui::EndMenu();
|
||||
}
|
||||
|
@ -360,7 +360,8 @@ s32 Player_ActionToModelGroup(Player* this, s32 actionParam) {
|
||||
void Player_SetModelsForHoldingShield(Player* this) {
|
||||
if ((this->stateFlags1 & 0x400000) &&
|
||||
((this->itemActionParam < 0) || (this->itemActionParam == this->heldItemActionParam))) {
|
||||
if (!Player_HoldsTwoHandedWeapon(this) && !Player_IsChildWithHylianShield(this)) {
|
||||
if ((CVar_GetS32("gShieldTwoHanded", 0) && (this->heldItemActionParam != PLAYER_AP_STICK) ||
|
||||
!Player_HoldsTwoHandedWeapon(this)) && !Player_IsChildWithHylianShield(this)) {
|
||||
this->rightHandType = 10;
|
||||
this->rightHandDLists = &sPlayerDListGroups[10][(void)0, gSaveContext.linkAge];
|
||||
if (this->sheathType == 18) {
|
||||
|
@ -2106,10 +2106,10 @@ LinkAnimationHeader* func_808346C4(GlobalContext* globalCtx, Player* this) {
|
||||
func_808323B4(globalCtx, this);
|
||||
|
||||
if (this->unk_870 < 0.5f) {
|
||||
return D_808543A4[Player_HoldsTwoHandedWeapon(this)];
|
||||
return D_808543A4[Player_HoldsTwoHandedWeapon(this) && !(CVar_GetS32("gShieldTwoHanded", 0) && (this->heldItemActionParam != PLAYER_AP_STICK))];
|
||||
}
|
||||
else {
|
||||
return D_808543AC[Player_HoldsTwoHandedWeapon(this)];
|
||||
return D_808543AC[Player_HoldsTwoHandedWeapon(this) && !(CVar_GetS32("gShieldTwoHanded", 0) && (this->heldItemActionParam != PLAYER_AP_STICK))];
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user