[Raw: 2/2] Airblast-vs-Players: Vectors + Cone (essay in description) @sigsegv-mvm
[Raw: 2/2] Airblast-vs-Players: Vectors + Cone (essay in description)  @sigsegv-mvm
Uploaded September 2016 | Updated November 2026, 23 hours ago
This is some raw footage from a visualization mod I coded up and was messing around with the other day. It draws the vectors related to player airblast detection and the impulse imparted, plus the detection cone. (Read the rest of this video description for much more detailed info.)

For airblast versus enemy players to occur, the pyro's aim/crosshair vector (cyan) must point within ~37 degrees of the vector pointing from the pyro's WSC (hull middle) to the victim's WSC (magenta). It's actually slightly more complicated than this due to the fact that the pyro's "aim" vector is treated as if it comes out of his WSC rather than his head (where you'd expect your aim to come from), but effectively it boils down to "you must aim in a direction within 37 degrees of the middle of the enemy's bounding box".

Why 37 degrees in particular? Because that's the arccosine of 0.8, and what the game actually does in mathematical terms is to check whether the dot product of the cyan and magenta vectors is greater than or equal to 0.8.

The mod shown in this video draws a cone 37 degrees wide, which represents the valid set of directions that the magenta vector can point where the airblast-push will be allowed to happen. The depth of the cone drawn does not accurately depict the effective range of player airblast; the actual limits are determined by the box shown in my projectile airblast detection box video: youtu.be/W1g2x4b_Byg

"Impulse" is a physics term that refers to a change in momentum; basically, for objects with constant mass, it's just a change in velocity (speed and/or direction); and mathematically, it's the integral of force with respect to time. As far as the Source engine is concerned, impulse is essentially just an instantaneous change to the velocity vector of the entity in question.

It's important to note that the way airblast modifies the velocity of the players it affects is very unrealistic: instead of adding the impulse vector to the entity's existing momentum vector, resulting in a *relative* change in motion that preserves some aspects of the entity's previous motion, the game instead first *completely zeroes out* the affected player's velocity vector (cancelling all of their velocity, no matter how fast or in what direction), and then applies the airblast push impulse. This zeroing-of-velocity before the push impulse is applied gives the pyro increased "control" over the airblasted player, which can be a good thing for the pyro; however it also tends to result in an infuriating feeling for the airblast victim, whose movement is suddenly interrupted and then adjusted in an unrealistic manner that they don't have *any* control over.

In most normal situations, the pyro will be aiming somewhat horizontally at a player next to them, so the red vector will accordingly be horizontal as well. When combined with the vertical green vector, this will result in a diagonal yellow total force vector, at roughly a 45 degree angle upward.

At 2:45, you can see what happens when you airblast a player directly above you: the red vector now points straight up, since that's the direction from the pyro to the victim, and it has the same magnitude as before. And the green vector still points straight up with the same magnitude it had before (completely unchanged). So when these vectors are added, you get a total force vector that points upward, but which has in the neighborhood of ~1.4 times the magnitude of the regular diagonal airblast.

And at 3:00, you can see what happens when you airblast a player directly below you: the red vector now points straight down with the same magnitude as before. And the green vector still points straight up with the same magnitude it had before. Since these vectors point in opposite directions with approximately equal magnitude, their sum (the yellow vector) is very small, almost to the point that they cancel out. However, you probably noticed in the video that the airblast victim still gets pushed up a bit. There's a reason for this, and it has to do with Valve's fix for the groundstall situation that once affected the game. (See comments for explanation of this.)
[Raw: 2/2] Airblast-vs-Players: Vectors + Cone (essay in description)Iron Bomber fuse time reduction in MYM makes jumping easierFlamethrower Mojo Investigation: Part 4 of 4Why its occasionally possible to outright kill Sentry BustersServer mod: custom engiebot AI behavior for WranglerMedic bot shields screw up bot pathingLazy engiebotsMod: enable bots to use Wrap Assassin alt-firePyro, get on the tank! IIThat pyro healing debuff thing added in MYM is very screwed upAttribute class airblast_dashesBugginess involving abandoned MvM engiebot buildings
sigsegv |

[Raw: 2/2] Airblast-vs-Players: Vectors + Cone (essay in description)

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER