Add toggle for Link's sword trail (#6112)

This commit is contained in:
Garrett Cox
2026-01-07 23:53:36 -06:00
committed by GitHub
parent f72ee2b814
commit 4839e575b1
2 changed files with 7 additions and 1 deletions

View File

@@ -1564,7 +1564,8 @@ void func_800906D4(PlayState* play, Player* this, Vec3f* newTipPos) {
Matrix_MultVec3f(&D_801260A4[2], &newBasePos[2]);
if (func_80090480(play, NULL, &this->meleeWeaponInfo[0], &newTipPos[0], &newBasePos[0]) &&
!(this->stateFlags1 & PLAYER_STATE1_SHIELDING)) {
!(this->stateFlags1 & PLAYER_STATE1_SHIELDING) &&
!CVarGetInteger(CVAR_ENHANCEMENT("DisableLinkSwordTrail"), 0)) {
EffectBlure_AddVertex(Effect_GetByIndex(this->meleeWeaponEffectIndex), &this->meleeWeaponInfo[0].tip,
&this->meleeWeaponInfo[0].base);
}