#Weapon recoil

1 messages · Page 1 of 1 (latest)

gritty prairie
#
set {_loc} to player's location
add -20 to {_loc}'s pitch
teleport player to {_loc}
#

this is what i got

#

you could use packets maybe?

spice estuary
#

do u have reflect?

gritty prairie
#

yes

spice estuary
#

can u try:
set player.getHandle().yaw to 45

And see if it has any effect not shure if this is a thing

gritty prairie
spice estuary
#

u shure u have reflect?

gritty prairie
#

i only had the config....

spice estuary
#

xd

gritty prairie
#

no other way in vanilla?

spice estuary
#

don't think so not without teleporting or position packets

gritty prairie
#

Bec with teleport you can shoot just before you hit the ground and your vel resets

spice estuary
#

U got an packet addon?

#

If u get this translated to skript it might will do the trick:

private void resetPitch(Player player) {
PacketPlayOutPosition posPacket = new            PacketPlayOutPosition(0,0,0,0,45,  Set.of(PacketPlayOutPosition.EnumPlayerTeleportFlags.a, PacketPlayOutPosition.EnumPlayerTeleportFlags.b, PacketPlayOutPosition.EnumPlayerTeleportFlags.c, PacketPlayOutPosition.EnumPlayerTeleportFlags.d), 1, true);
((CraftPlayer) player).getHandle().b.sendPacket(posPacket);​
}
gritty prairie