Open wgetJane opened 2 months ago
Doesn't the dragon's fury also use a Sphere function?
UTIL_EntitiesInSphere
should set up an iterator that checks the radius itself -- the spatial partition query EnumerateElementsInSphere
is only meant to serve as a broadphase, with the iterator serving as the actual radius check for narrowphase.
I will also admit, I am scared as to what fixing that would break...
Seems like a good portion of the code is actually aware of this, so we should probably just keep fixing this for the select few areas.
Doesn't the dragon's fury also use a Sphere function?
can't tell without decompilation since the dragon's fury is missing from the leaked 2018 source code
i do know that it definitely uses a cube currently: https://youtube.com/watch?v=FfumM6hzar0
the existence of the tf_fireball_radius
cvar does imply that it might've been intended to be a sphere
I will also admit, I am scared as to what fixing that would break...
imo should be fixed individually if it's deemed likely enough that a certain mechanic is intended to be using a sphere
also i should've mentioned that explosive blast damage already correctly uses a sphere
the source engine's
UTIL_EntitiesInSphere
function that is often used by tf2 actually uses a cube rather than a sphereexamples of mechanics that are affected by this:
jarate and mad milk: https://youtube.com/watch?v=1hYZbyUK170
airblast: https://github.com/ValveSoftware/Source-1-Games/issues/5522#issuecomment-2074381306
dispenser
explosive headshot
deflector minigun
halloween spells
etc
it is unknown if this is intentional or not for any of these mechanics