-
-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* init commit basics working just needs lots of polish * add setting and base teleport time on ping now constantly monitors ping and makes the teleport try to last as long as last ping packet recived * add settings for each wepon type and work with each of them * add raycast add raycast so predicted camera can not go though walls. could use improvement this is not how it is done exactly on hypixels side * cheak the players mana before assuming they can teleport * remove un needed setting and update settings * add java docs and 3rd person check * clean * fix 3rd person check * apply suggested changes * do not allow when invalid location * fix etherwarp logic using wrong tp * add tooltips to options * fix : click too fast cause the animation break adds counter for how many teleports ahead the player is to the server so receiving a teleport for an old use will not reset the camera * fix mixin * add more disabled locations and fix for not coded disabled locations adds other suggested locations to disable but also a timer for if the go to long without the server teleporting them assuming that its disabled and not working until they are teleported again * improve raycast to be more like hypxiels still not the same but closer * add separate cameraStartPos to try and smooth combined animations * fix extra code * fix not working when clicking dirt with shovel * more clean * fix the init * fix multiple teleports when looking at a block there is still debug stuff in this commit * hopefully improve raycast and add allowed blocks still debug stuff in * do bad client side mana calculation still debug * only don't check head pos on first block still debug * improve head height test still debug * add close floor check still debug * add can teleport though fire still debug * add checking for diagonals still in debug * add new is floor check for the close floor check still debug * update allowed blocks and improve diagonal collision still debug * diagonals only work if its floor block still debug * java docs * remove debug * can teleport though pots * Update SmoothAOTE.java * Apply suggestions from code review * apply suggested changes * add check to see if smoothing is enabled * fix rebase * make the setting off by default * fix some glitchyness with changing ping by not updating the teleport duration while teleporting. this was causing the camera to jump if your ping changed mid teleport * add option to smooth teleport more give the user the option to let the annimation lag behind the game so it does not jump to the end * Clean up ClientPlayNetworkHandlerMixin * Fix camera flashing when animation finishes before server teleports player --------- Co-authored-by: viciscat <51047087+viciscat@users.noreply.github.com> Co-authored-by: Kevin <92656833+kevinthegreat1@users.noreply.github.com>
- Loading branch information
1 parent
ade16c2
commit 080aa30
Showing
8 changed files
with
625 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package de.hysky.skyblocker.mixins; | ||
|
||
import com.llamalad7.mixinextras.injector.ModifyReturnValue; | ||
import de.hysky.skyblocker.skyblock.SmoothAOTE; | ||
import net.minecraft.client.render.Camera; | ||
import net.minecraft.util.math.Vec3d; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.injection.At; | ||
|
||
@Mixin(Camera.class) | ||
public class CameraMixin { | ||
|
||
@ModifyReturnValue(method = "getPos", at = @At("RETURN")) | ||
private Vec3d skyblocker$onCameraUpdate(Vec3d original) { | ||
Vec3d pos = SmoothAOTE.getInterpolatedPos(); | ||
if (pos != null) { | ||
return pos; | ||
} | ||
|
||
return original; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.