Login
Create

Visualisation of many projectiles and hitscan hitboxes

EZRCJ

This code is not complete, and may not be correct in all situations. But it serves as a solid base.

With this code you can visualise the size of projectiles and hitscan do check how and when something would hit a player. This helps you determine the size of not only the projectile, but also the hitbox of heroes. Supports multiple players at once

A sphere follows the projectile and lands where the projectile hit. All projectiles are sphere and thus we can determine where exactly they hit a heroes hitbox.

Notes:

  • Dummy bots are frozen in place so their idle animation does not mess with the results.
  • Up to 10 effects are shown at once, this can be lowered in the Workshop Settings.
  • Some additional things are shown as well, such as the radius of a Pharah rocket explosion.
  • I plan on adding visualisations for damage fall off as well.
  • Heroes with multiple projectiles per shot (eg. Genji and Baptiste) only show the first projectile.
  • This is mostly for primary or secondary fire, but also for some abilities (Reinhardt Firestrike).
  • By default on the map Workshop Chamber is enabled, but it works on any map.
  • Projectiles that are affect by gravity have their gravity disabled.

Some controls;

  • Press [Ability 1] + [Interact] to remove all effects created by you.
  • Press [Crouch] + [Reload] + [Jump] to change hero.
  • Press [Crouch] + [Interact] to spawn a random dummy bot infront of you (max 6).
  • Press [Crouch] + [Ultimate] to toggle whether you deal damage.
  • Press [Ability 1] + [Ability 2] to show a visualisation of the path the projectile would have taken. Can be buggy because of effects limit.

This code uses data from https://workshop.codes/wiki/articles/projectile+size+of+all+weapons+and+abilities to determine she size of projectiles.

Code Snippet

Loading...
Fullscreen
Copy to clipboard

0 Comments

Log in or Sign up to place a comment.

Update Log (7)

  • Added in-world location to change hero
  • Added toggle for controls HUD
  • Changed copy of controls
  • Add a in-world button to re-shuffle the 3 initial dummy bots.
  • Respawn the dummy bots where they died
  • Fix several errors introduced by the latest Workshop update.
  • Simplify a lot of code with new Workshop values.
  • Add additional Workshop Settings.
  • Spawn 3 random bots at the start.
View all updates
Elo Hell Logo_H-M-Dark
Join the Elo Hell Workshops Discord
Workshop.codes - Background image