[TF2] wallbugs / pixelwalks / other mechanics broken cuz of update
can't do wallbugs, broke again cuz of the update or something, im pretty sure i seen this happen before
What's a wallbug?
If you're talking about what I think you're talking about, then this issue directly contradicts issue #2466, a physics related bug that cancelled vertical velocity entirely.
~~If this kind of bug was fixed, then it was fixed. I don't see any issue~~.
Yeah, maybe this should be investigated.
What's a wallbug?
hi, made an account to post here so I apologize.
Wallbugging is movement tech where you wiggle yourself into an angled wall/clipbrush in order to either reset your vertical velocity or get stuck to the wall itself. (more detailed explanation) They've seen no shortage of usage in higher-tier jump maps and competitive play.
I don't think this was intentional by Valve as there was no issue about it (apart from one from nearly seven years ago, not marked at fixed) nor line in the patch notes. But regardless, whether you think it's wrong or right because it is a "bug", it's been a staple in the technical side of the TF2 (and souirce) community for years, similar to edgebugs or ctapping. Thus they'd be doing a great disservice to the community if you were to slowly patch out one and every bit of movement tech like this.
This is a huge deal for the essentially the entire rocket jumping community. Wallbugs have always been a fundamental part of rocket jumping mechanics and are used extensively across countless maps and techniques. Removing them would fundamentally change how rocket jumping works and invalidate a massive amount of existing content and knowledge built around these mechanics.
For the rocket jumping community, this is not a minor change, it’s a deal breaker! Please revert this change!
I concur with that. I'm not seeing anything in the SDK that could have altered it, though, so it might be worth investigating further and Valve checking what might have caused it.
I concur with that. I'm not seeing anything in the SDK that could have altered it
I don't believe the SDK is updated with the most recent update, I saw some conditions were changed (removing some staging ones and added two new ones) but they don't function in-game yet which to me seems like it was an external file being accidentally pushed. Likely means there was something non-SDK changed. Similarly, nothing was changed in the SDK lately that indicates the achievement announcements being fixed, but they were.
Anyway, sounds like this can be quite easily abused in real gameplay so it being removed is probably a good thing. Rocket jump maps breaking is not good and completely harmless to have it exist there, I'm not sure if it's possible but a ConVar always seems like the best solution for this in my opinion so that Casual can not have this behaviour possibly be exploited while rocket jump maps stay intact. If that isn't possible, I think a full revert is the best option.
I'd also like to point out the issue seems to be brigaded (not necessarily a negative) based on some of the reactions.
In regular gameplay this is a contentious issue as it can lead to advantages. Points where you halt momentum for a surprise attack or a vantage point that lets you see players across the map (also a problem with maps not handling their visleafs properly, but I digress)
There is also brigading, yeah, and I think it shows just how reliant some communities were on this physics bug. As such I'd say it's just as contentious to keep this bug fixed. There's arguments for both here, and the tried and true approach of "keep it to a ConVar" doesn't seem to be an answer here. Not to mention that this fix might also have served to affect another physics issue, with wallbug patching being a side effect.
Seeing the above links in that comment and how some jump maps could be made redundant by this does bring light to the brigading-- this is affecting a dedicated subset of rocket jump users.
TL;DR: No simple answer for this one, although I wouldn't be opposed to reverting the change ONLY if the bug patching in question wasn't a side-effect of a different, entirely unrelated physics change. That'd muddy the waters a bit. While it is an advantageous exploit, it isn't anywhere near the level of pl_frontier's out of bounds glitch or other widely abused exploits.
If there was some change to patch wall/edge bugs, don't just revert it. Make a convar if possible. Even recently Terraria added a whole new item that reverts a patch to movement that broke a lot of parkour maps. There were Scout's pants, there was canceling voice lines by jumping into water, and there was stomp without jetpack. Please don't add this to the pile of reverted patches.
I have tracked it down to being a silent change to CGameMovement::ClipVelocity.
I have decompiled the changes and made it resemble the linked public version with the changes marked using the !!! comments:
int CGameMovement::ClipVelocity( Vector& in, Vector& normal, Vector& out, float overbounce, float flRedirectCoeff /* = 0.f */ )
{
float backoff;
float change;
float angle;
int i, blocked;
angle = normal[ 2 ];
blocked = 0x00; // Assume unblocked.
if (angle > 0) // If the plane that is blocking us has a positive z component, then assume it's a floor.
blocked |= 0x01; //
if (!angle) // If the plane has no Z, it is vertical (wall/step)
blocked |= 0x02; //
// Determine how far along plane to slide based on incoming direction.
float flBlocked = DotProduct (in, normal);
backoff = flBlocked * overbounce;
// !!!
if (backoff >= 0.0)
backoff = 0.0;
// bounce player away from surface at 0.03125 hu/s speed
// sidenote: backoff is in [hu/s] and DIST_EPSILON is meant to be [hu]
backoff = backoff - DIST_EPSILON;
// !!!
for (i=0 ; i<3 ; i++)
{
change = normal[i]*backoff;
out[i] = in[i] - change;
}
// iterate once to make sure we aren't still moving through the plane
float adjust = DotProduct( out, normal );
if( adjust < 0.0f )
{
out -= ( normal * adjust );
// Msg( "Adjustment = %lf\n", adjust );
}
if ( flRedirectCoeff > 0.f )
{
// Redirect clipped velocity along angle of movement
float flLen = out.Length();
out *= ( -1.f * flBlocked * flRedirectCoeff + flLen ) / flLen;
}
// Return blocking flags.
return blocked;
}
The backoff = backoff - DIST_EPSILON line adds DIST_EPSILON hu/s = 0.03125 hu/s speed to the player pointing away from the collided surface. Below is a video demonstrating this where I set host_timescale 100 after the collision to make the bounced off velocity noticeable. If you zoom in you can see that the speed is 0.05 hu/s = sqrt(0.03125^2 + 0.03125^2 + 0.03125^2) hu/s because I collided with all 3 surfaces in the corner.
Edit: Apparently this change is also ineffective at coordinate values greater than 2^13 hu = 8192 hu because the game will try to displace you by (0.03125 hu/s) * (0.015 s/tick) = 0.00046875 hu/tick every tick (0.015 s/tick is the tick interval, inverse of the 66.666 tick/s tickrate). However this distance is simply too short to change a coordinate value above 8192 hu when dealing with floating point computer maths as there just isn't enough precision inside a number that big to store a change that small.
https://github.com/user-attachments/assets/9ddfe5bf-11be-44c1-ae1c-8b0de3ab2574
🐒
can't do wallbugs, broke again cuz of the update or something, im pretty sure i seen this happen before
To my knowledge, wallbugs have never been patched or changed before. They’ve been in the game since release (~20 years).
There are, however, other significantly more niche versions of wallbugs, such as “coordinate bugs” and “Linux wallbugs,” that have changed over time. Unlike regular wallbugs, these depend heavily on floating-point behavior. Because of that, changes such as compiler updates can cause some of them to disappear or behave differently.
In particular, Linux wallbugs were completely removed, very likely unintentionally, by the 64-bit update. So there is precedent for updates that accidentally break or remove some niche bugs, but as far as I know, wallbugs themselves have never been changed before this.
@chrb22 Well done. I was afraid this was some sort of compiler/optimization change, but since it's an intentional change in game code, it should be trivial to add a replicated cvar to disable it (if Valve cares enough to do so, one can only hope).
It would seem they have been partially(?) fixed in the new update. However, instead of getting stuck against the wall, your vertical speed will constantly reset.
https://github.com/user-attachments/assets/5b1d9e5b-f1c8-4b25-9149-775993cf8643
I have tracked it down to being a silent change to CGameMovement::ClipVelocity.
@chrb22 It’s worth noting that this part of the code is shared across all Source 1 games. That means whenever another Source 1 game receives a new patch after today, there’s a good chance that game could receive the same change as well.
So this issue may not remain a TF2-specific issue. If the change isn’t reverted or addressed, it could potentially affect movement mechanics across the wider Source 1 ecosystem in the future.
This makes me wonder if this change was even made intended TF2 in the first place. If it wasn't, then that would kind of explain why there’s no mentioning of the change in the TF2 patch notes.
It would seem they have been partially(?) fixed in the new update.
To be clear, the October 1st patch didn’t completely remove wallbugs. Instead, it made them much more inconsistent and heavily dependent on the magnitude of the player’s coordinates. Depending on where you are in the map, wallbugs may still work as expected, or may fail entirely.
As @chrb22 notes, the newly added push you get from the wall is extremely small. In fact, due to how floating-point numbers work, if your X or Y coordinate is large enough in absolute value, you can still perform wallbugs normally.
As for the mini-patch released on October 2nd, I don’t believe it changed anything related to wallbugs, at least from what I can tell. It did not revert the changes.
As for what you’re showing in the video, my guess is that you are successfully wallbugging, but then immediately getting pushed away from the wall as a consequence of the changes introduced in the October 1st patch.
These changes should definitely be convar gated if they are intentional.
After more testing from me and my fellow rocket jumpers, we have realized that the October 1st patch affects more than just wallbugs.
In rocket jumping, there’s a technique called a “headsmash.” It’s a fairly common mechanic used across a lot of rocket jumping maps. In short, a headsmash involves slamming into the ceiling to get a perfectly aligned z coordinate to be able to perform another technique, such as a bounce, bhop, jumpbug, edgebug or texture bug.
It turns out that the small push introduced by the October 1st patch can interfere with this alignment.
For example, the final jump in jump_repente2_fix (video) is no longer possible. The additional push leaves your Z coordinate slightly too low, causing you to not be able to hit the intended bhop after the headsmash. So the jump is simply broken now.
One final remark is the push is quite small, so my guess is that most headsmashes are unaffected. But there are some cases, like the jump on jump_repente2, that broke because of the patch.
#bringBackWallBug
these changes seem to also affect pixelwalks (the act of wiggling into the surface extension so u can stand on something, usually the top of a ramp that is clipped into the wall). need some people that are better at empirical tests than me to figure this out but it seems like the pixelwalks only work if u dont wiggle too far into the wall, if u do then the game pushes u off. like some part of the surface extention is fine, but going 'deeper into the wall' than that and u get booted off
in the clip i show a very well known pixelwalk on mointainlab (using r_drawclipbrushes u can see the ramp im attempting to stand ontop of) and you can see the game 'randomly' pushes me off (its not actually random, it seems like it's to do with going to far into the surface extension. but i need wizards to come test this and confirm)
it's just to show an example of things beyond wallbugs that this has ended up affecting, i heard this also affects pixelsurfs ( https://www.youtube.com/watch?v=StF-uD34YDA i will let someone else test these cuz i think pixelsurfs are stupid) and some other pieces of more niche movement tech
https://github.com/user-attachments/assets/d5029f63-928f-4b4c-981e-dc091aa36565
tested one on badwater, that pixelwalk also very hard to do now
As much as I dislike maps that ignore the duck test (If it looks like a duck, swims like a duck and quacks like a duck then it probably is a duck) for buggy/unintended behavior.
Yeah, this could theoretically be locked behind a console variable.
Historically buggy behavior like players being able to do +use, sliding out of a taunt by dropping off a ledge, and able to switch out their weapon used in a taunt have been put behind a tf_allow_* convar.
I really don't think it belongs in gameplay, mappers have for more than a decade been avoiding creating powerful perching spots where someone can get an unfair advantage. Slanted walls is one of those things mappers just have to throw in the towel.