mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-25 07:35:34 -07:00
Slow mweep
This commit is contained in:
parent
e8e8997fd8
commit
9088f0c38d
1 changed files with 2 additions and 2 deletions
|
@ -301,7 +301,7 @@ s32 EnKz_FollowPath(EnKz* this, PlayState* play) {
|
||||||
pathDiffZ = pointPos->z - this->actor.world.pos.z;
|
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);
|
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("gMweepSpeed", 1)) {
|
if ((SQ(pathDiffX) + SQ(pathDiffZ)) < 10.0f * 0.2f) {
|
||||||
this->waypoint++;
|
this->waypoint++;
|
||||||
if (this->waypoint >= path->count) {
|
if (this->waypoint >= path->count) {
|
||||||
this->waypoint = 0;
|
this->waypoint = 0;
|
||||||
|
@ -413,7 +413,7 @@ void EnKz_SetupMweep(EnKz* this, PlayState* play) {
|
||||||
initPos.z += 260.0f;
|
initPos.z += 260.0f;
|
||||||
Play_CameraSetAtEye(play, this->cutsceneCamera, &pos, &initPos);
|
Play_CameraSetAtEye(play, this->cutsceneCamera, &pos, &initPos);
|
||||||
func_8002DF54(play, &this->actor, 8);
|
func_8002DF54(play, &this->actor, 8);
|
||||||
this->actor.speedXZ = 0.1f * CVarGetInteger("gMweepSpeed", 1);
|
this->actor.speedXZ = 0.1f * 0.2f;
|
||||||
this->actionFunc = EnKz_Mweep;
|
this->actionFunc = EnKz_Mweep;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue