#CPS/Combo

1 messages · Page 1 of 1 (latest)

dull zodiac
#

You’ll just need to use the entity hit entity event and have variables for the cps, combo and reach

Reach is hard to calculate sometimes but I’m thinking you’ll just need to cast a ray from the player view direction and calculate how far they are hitting from

iron tree
#

@rain granite

#

Here's the script for CPS / reach/combo counter

fiery forum
wary loom
#

it'll give you the right locations

#

it's just the calculation that's hard

fiery forum
wary loom
#

it's obvious

#

you're not gonna get two different time frame locations

#

its either:

  • location after the hit
  • location on the hit
#

after event just means the evnet is called after it happens

iron tree
#

I promise my script will working

fiery forum
# wary loom its either: - location after the hit - location on the hit

Location after the hit.

If player A hits Player B and Player B remains still, the distance between A and B will not be accurate if A is moving during combat. The distance between the two will not properly reflect the true distance at the time of the hit. Instead you will get the distance between the two after the hit. Both are not the same.

#

To put it more simply, you could assume they are the same, but I assure you that if you used that same logic to prevent hackers from over reaching for what is allowed in a vanilla setting, you would have numerous false flags as a result of it.

fiery forum
#

Written on Mobile but should work out of the box 🤪

iron tree
#

It should be work

fiery forum
# iron tree It should be work

Your code should be fine. The reach will have inconsistency from non stationary players though. Since the value is purely for display only it's a matter of whether or not that's a concern. If it's being used for Moderation then it will lead to problems. Vyse will need to make that determination.