mirror of
https://github.com/HarbourMasters/Shipwright
synced 2026-09-12 21:15:58 -04:00
More Mweep (#4192)
* More Mweep Adjusted the "King Zora Speed" timesaver enhancement to allow for slowing the animation down. * [Fixed] Crashing when applying preset settings Adjusted presets.h to expect a float instead of an integer for the "MweepSpeed" timesaver enhancement setting. * Cleaning some things up Deleted an unnecessary line, and switched the "King Zora Speed" option back to multiplier display instead of a percentage. * Update SohMenuBar.cpp Switched back to multiplier display --------- Co-authored-by: Malkierian <malkierian@gmail.com>
This commit is contained in:
@@ -350,7 +350,7 @@ s32 EnKz_FollowPath(EnKz* this, PlayState* play) {
|
||||
pathDiffZ = pointPos->z - this->actor.world.pos.z;
|
||||
Math_SmoothStepToS(&this->actor.world.rot.y, (Math_FAtan2F(pathDiffX, pathDiffZ) * (0x8000 / M_PI)), 0xA, 0x3E8, 1);
|
||||
|
||||
if ((SQ(pathDiffX) + SQ(pathDiffZ)) < 10.0f * CVarGetInteger(CVAR_ENHANCEMENT("MweepSpeed"), 1)) {
|
||||
if ((SQ(pathDiffX) + SQ(pathDiffZ)) < 10.0f * CVarGetFloat(CVAR_ENHANCEMENT("MweepSpeed"), 1.0f)) {
|
||||
this->waypoint++;
|
||||
if (this->waypoint >= path->count) {
|
||||
this->waypoint = 0;
|
||||
@@ -445,7 +445,7 @@ void EnKz_SetupMweep(EnKz* this, PlayState* play) {
|
||||
initPos.z += 260.0f;
|
||||
Play_CameraSetAtEye(play, this->cutsceneCamera, &pos, &initPos);
|
||||
Player_SetCsActionWithHaltedActors(play, &this->actor, 8);
|
||||
this->actor.speedXZ = 0.1f * CVarGetInteger(CVAR_ENHANCEMENT("MweepSpeed"), 1);
|
||||
this->actor.speedXZ = 0.1f * CVarGetFloat(CVAR_ENHANCEMENT("MweepSpeed"), 1.0f);
|
||||
this->actionFunc = EnKz_Mweep;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user