Is there a way to detect coming projectiles to the player?


DuM
 Share

Recommended Posts

i'm gonna go out on a limb here and say that if you can't think of a way to detect inbound projectiles you won't be able to make a useful anti aim either...

anyways:

iterate through loaded entities and check names (arrow, egg, armor stand, whatever entity type the projectile is)

assuming that the projectiles travel in a straight line you can simply calculate their vector by calculating the current to previous position delta.

then scale the vector to your position and check if it intersects with your bounding box/head.

this will obviously be harder if you're checking for plain arrow shots as you will have to account for gravity, launch angle and so forth (sometimes this changes by server). 5kr made a good script for that though.

honestly i'd be surprised if you can make an anti aim that can successfully dodge projectiles without accounting for ping and/or falsing horribly...

good luck

Share this post


Link to post
Share on other sites

15 hours ago, Idle said:

i'm gonna go out on a limb here and say that if you can't think of a way to detect inbound projectiles you won't be able to make a useful anti aim either...

anyways:

iterate through loaded entities and check names (arrow, egg, armor stand, whatever entity type the projectile is)

assuming that the projectiles travel in a straight line you can simply calculate their vector by calculating the current to previous position delta.

then scale the vector to your position and check if it intersects with your bounding box/head.

this will obviously be harder if you're checking for plain arrow shots as you will have to account for gravity, launch angle and so forth (sometimes this changes by server). 5kr made a good script for that though.

honestly i'd be surprised if you can make an anti aim that can successfully dodge projectiles without accounting for ping and/or falsing horribly...

good luck

thank for your advice

Share this post


Link to post
Share on other sites

  • 3 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share