CVAR_ENHANCEMENT
This commit is contained in:
parent
6a90cc8969
commit
e0fc23762f
|
@ -270,6 +270,7 @@ const std::vector<const char*> enhancementsCvars = {
|
|||
CVAR_ENHANCEMENT("BetterAmmoRendering"),
|
||||
CVAR_ENHANCEMENT("EquimentAlwaysVisible"),
|
||||
CVAR_ENHANCEMENT("ChildHoldsHylianShield"),
|
||||
CVAR_ENHANCEMENT("RotateScaleChildHylianShield"),
|
||||
CVAR_ENHANCEMENT("FixDaruniaDanceSpeed"),
|
||||
CVAR_ENHANCEMENT("OpenAllHours"),
|
||||
CVAR_ENHANCEMENT("ResetNaviTimer"),
|
||||
|
|
|
@ -580,7 +580,7 @@ s32 func_8008E9C4(Player* this) {
|
|||
}
|
||||
|
||||
s32 Player_IsChildWithHylianShield(Player* this) {
|
||||
if (CVarGetInteger("gEnhancements.ChildHoldsHylianShield", 0)) {
|
||||
if (CVarGetInteger(CVAR_ENHANCEMENT("ChildHoldsHylianShield", 0)) {
|
||||
return false; // Skip vanilla check for making child Link have the Hylian Shield on his back, allowing for it to be used in hand
|
||||
} else {
|
||||
return gSaveContext.linkAge != 0 && (this->currentShield == PLAYER_SHIELD_HYLIAN);
|
||||
|
@ -604,12 +604,12 @@ void Player_SetModelsForHoldingShield(Player* this) {
|
|||
if ((CVarGetInteger(CVAR_CHEAT("ShieldTwoHanded"), 0) && (this->heldItemAction != PLAYER_IA_DEKU_STICK) ||
|
||||
!Player_HoldsTwoHandedWeapon(this)) && !Player_IsChildWithHylianShield(this)) {
|
||||
this->rightHandType = PLAYER_MODELTYPE_RH_SHIELD;
|
||||
if (LINK_IS_CHILD && CVarGetInteger("gEnhancements.ChildHoldsHylianShield", 0) &&
|
||||
if (LINK_IS_CHILD && CVarGetInteger(CVAR_ENHANCEMENT("ChildHoldsHylianShield", 0) &&
|
||||
this->currentShield == PLAYER_SHIELD_HYLIAN) {
|
||||
this->rightHandDLists = &sPlayerDListGroups[PLAYER_MODELTYPE_RH_SHIELD][LINK_AGE_ADULT];
|
||||
} else if (LINK_IS_CHILD && (CVarGetInteger("gEnhancements.EquimentAlwaysVisible", 0)) && (this->currentShield == PLAYER_SHIELD_MIRROR)) {
|
||||
} else if (LINK_IS_CHILD && (CVarGetInteger(CVAR_ENHANCEMENT("EquimentAlwaysVisible", 0)) && (this->currentShield == PLAYER_SHIELD_MIRROR)) {
|
||||
this->rightHandDLists = &sPlayerDListGroups[PLAYER_MODELTYPE_RH_SHIELD][0];
|
||||
} else if (LINK_IS_ADULT && (CVarGetInteger("gEnhancements.EquimentAlwaysVisible", 0)) && (this->currentShield == PLAYER_SHIELD_DEKU)) {
|
||||
} else if (LINK_IS_ADULT && (CVarGetInteger(CVAR_ENHANCEMENT("EquimentAlwaysVisible", 0)) && (this->currentShield == PLAYER_SHIELD_DEKU)) {
|
||||
this->rightHandDLists = &sPlayerDListGroups[PLAYER_MODELTYPE_RH_SHIELD][1];
|
||||
} else {
|
||||
this->rightHandDLists = &sPlayerDListGroups[PLAYER_MODELTYPE_RH_SHIELD][gSaveContext.linkAge];
|
||||
|
@ -653,7 +653,7 @@ void Player_SetModels(Player* this, s32 modelGroup) {
|
|||
this->rightHandType = gPlayerModelTypes[modelGroup][PLAYER_MODELGROUPENTRY_RIGHT_HAND];
|
||||
this->rightHandDLists = &sPlayerDListGroups[this->rightHandType][gSaveContext.linkAge];
|
||||
|
||||
if (LINK_IS_CHILD && CVarGetInteger("gEnhancements.ChildHoldsHylianShield", 0) &&
|
||||
if (LINK_IS_CHILD && CVarGetInteger(CVAR_ENHANCEMENT("ChildHoldsHylianShield", 0) &&
|
||||
this->rightHandType == PLAYER_MODELTYPE_RH_SHIELD && this->currentShield == PLAYER_SHIELD_HYLIAN) {
|
||||
this->rightHandDLists = &sPlayerDListGroups[this->rightHandType][LINK_AGE_ADULT];
|
||||
}
|
||||
|
@ -677,7 +677,7 @@ void Player_SetModels(Player* this, s32 modelGroup) {
|
|||
this->sheathType = gPlayerModelTypes[modelGroup][PLAYER_MODELGROUPENTRY_SHEATH];
|
||||
this->sheathDLists = &sPlayerDListGroups[this->sheathType][gSaveContext.linkAge];
|
||||
|
||||
if (CVarGetInteger("gEnhancements.RotateScaleChildHylianShield", 0)) {
|
||||
if (CVarGetInteger(CVAR_ENHANCEMENT("RotateScaleChildHylianShield", 0)) {
|
||||
if (LINK_IS_CHILD && this->sheathType == PLAYER_MODELTYPE_SHEATH_18 && this->currentShield == PLAYER_SHIELD_HYLIAN) {
|
||||
this->sheathDLists = &sPlayerDListGroups[this->sheathType][LINK_AGE_ADULT];
|
||||
}
|
||||
|
@ -1294,7 +1294,7 @@ s32 Player_OverrideLimbDrawGameplayCommon(PlayState* play, s32 limbIndex, Gfx**
|
|||
}
|
||||
}
|
||||
|
||||
if (CVarGetInteger("gEnhancements.ChildHoldsHylianShield", 0) && CVarGetInteger("gEnhancements.RotateScaleChildHylianShield", 0) &&
|
||||
if (CVarGetInteger(CVAR_ENHANCEMENT("ChildHoldsHylianShield", 0) && CVarGetInteger(CVAR_ENHANCEMENT("RotateScaleChildHylianShield", 0) &&
|
||||
LINK_IS_CHILD) {
|
||||
if (limbIndex == PLAYER_LIMB_SHEATH) {
|
||||
if (this->currentShield == PLAYER_SHIELD_HYLIAN &&
|
||||
|
|
Loading…
Reference in New Issue