狗屎Minimax坏我代码

This commit is contained in:
SoulliesOfficial
2026-04-18 13:57:19 -04:00
parent 41140a2017
commit 7379583165
473 changed files with 34480 additions and 8069 deletions

View File

@@ -1,4 +1,4 @@
using MoreMountains.FeedbacksForThirdParty;
using Cielonos.MainGame.Effects.Feedback;
using SLSUtilities.General;
using UnityEngine;
@@ -11,24 +11,20 @@ namespace Cielonos.MainGame.Characters
if (player.movementSc.canDash && player.movementSc.canDodge && fullBodyFuncAnimSm.Play("Dash"))
{
length = length < 0 ? player.attributeSm["DashLength"] : length;
//Debug.Log($"Dash length: {length}");
float dashMultiplier = length / fullBodyFuncAnimSm.collection["Dash"].variableCollection.GetVariable<float>("RootMoveZ");
player.landMovementSc.dashMoveMultiplier = dashMultiplier;
Vector3 cameraForward = player.viewSc.playerCamera.transform.forward.Flatten();
Vector3 dashCameraRotation;
if (isInputDirection)
{
player.landMovementSc.TurnToInputDirection(direction);
Vector3 playerForward = player.transform.forward.Flatten();
dashCameraRotation = CalculateDashAngles(playerForward, cameraForward);
}
else
{
player.landMovementSc.TurnToDirection(direction, 0f);
dashCameraRotation = CalculateDashAngles(direction, cameraForward);
}
player.feedbackSc["Dash"].feedback.GetFeedbackOfType<MMF_CinemachineRotation>().RotationAmplitude = dashCameraRotation;
player.feedbackSc["Dash"].feedback.GetFeedbackOfType<MMF_RadialBlur>().TargetCenter = player.GetNormalizedScreenPosition();
// 计算冲刺方向用于相机震动方向设置
// Dash反馈的方向设置将在DashStart中通过新Feedback系统统一处理
}
}
@@ -36,7 +32,10 @@ namespace Cielonos.MainGame.Characters
{
player.landMovementSc.isDashing = true;
player.audioSc.PlayDashSound();
player.feedbackSc["Dash"]?.Play();
// 使用新Feedback系统播放Dash反馈
player.feedbackSc.PlayFeedback("Dash");
//player.renderSc.dashTrails.ForEach(ds => ds.active = true);
//player.renderSc.dashTrails.ForEach(ds => ds.Restart());
@@ -70,11 +69,8 @@ namespace Cielonos.MainGame.Characters
length = length < 0 ? player.attributeSm["DodgeLength"] : length;
float dashMultiplier = length / fullBodyFuncAnimSm.collection["Dodge"].variableCollection.GetVariable<float>("RootMoveZ");
player.landMovementSc.dashMoveMultiplier = dashMultiplier;
Vector3 playerBackward = -player.transform.forward.Flatten();
Vector3 cameraForward = player.viewSc.playerCamera.transform.forward.Flatten();
Vector3 dodgeCameraRotation = CalculateDashAngles(playerBackward, cameraForward);
player.feedbackSc["Dodge"].feedback.GetFeedbackOfType<MMF_CinemachineRotation>().RotationAmplitude = dodgeCameraRotation;
player.feedbackSc["Dodge"].feedback.GetFeedbackOfType<MMF_RadialBlur>().TargetCenter = player.GetNormalizedScreenPosition();
// Dodge反馈将在DodgeStart中通过新Feedback系统统一处理
}
}
@@ -82,7 +78,10 @@ namespace Cielonos.MainGame.Characters
{
player.landMovementSc.isDashing = true;
player.audioSc.PlayDashSound();
player.feedbackSc["Dodge"]?.Play();
// 使用新Feedback系统播放Dodge反馈
player.feedbackSc.PlayFeedback("Dodge");
//player.renderSc.dashTrails.ForEach(ds => ds.active = true);
//player.renderSc.dashTrails.ForEach(ds => ds.Restart());