ldesgoui / tf2-comp-fixes

Various TF2 tweaks catered towards competitive play

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hitscan still partially uses collision hulls

sapphonie opened this issue · comments

Is this just a sniper rifle thing?

no, afaik it's all hitscan weapons

For ray intersection to actually work with a broad phase, the models have to fit in their bounding volumes, this is not the case for these examples, which is why this bug happens.
There are ways to fix this:

  • Force ray intersection tests against models rather than their AABB, this is not acceptable because of the performance regression it would incur
  • Re-align the model within the AABB, or grow the AABB, this is not acceptable because it would change the feel of collisions and physics significantly
  • Attach another AABB to player models that would only trigger in hitscan detection, this is a lot of vphysics trickery and patching, basically hardly feasible with SourceMod

It's probably not going to get fixed