Skip to content

Commit

Permalink
give a slight forwards boost to regular jetpack mode, so the player c…
Browse files Browse the repository at this point in the history
…an move faster than normal sprint speed
  • Loading branch information
thiakil committed Mar 11, 2024
1 parent 87f63f9 commit 7402f3f
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -136,7 +136,8 @@ static boolean handleJetpackMotion(Player player, JetpackMode mode, double thrus
player.addDeltaMovement(delta);
return false;
} else if (mode == JetpackMode.NORMAL) {
Vec3 delta = new Vec3(0, thrust * getVerticalCoefficient(motion.y()), 0);
Vec3 thrustVec = motion.scale(thrust * .75);
Vec3 delta = new Vec3(thrustVec.x, thrust * getVerticalCoefficient(motion.y()), thrustVec.z);
player.addDeltaMovement(delta);
} else if (mode == JetpackMode.VECTOR) {
Vec3 thrustVec = player.getUpVector(1F).scale(thrust);
Expand Down

0 comments on commit 7402f3f

Please sign in to comment.