Source-1-Games icon indicating copy to clipboard operation
Source-1-Games copied to clipboard

[TF2] Exploit: Players can remove the sniper scope with custom huds

Open Ashetf2 opened this issue 3 years ago • 4 comments

You can completely disable the black overlay that appears when you're scoped in as sniper with a tiny bit of hud editing. Simply copy-paste the below into HudAnimations_TF.txt in your scripts folder.

event ScopeRemoval
{
Animate HudScope Position	"9999 9999" Linear 0.0 0.0
}

Then ctrl+f for the event "DamagedPlayer" and, if it already exists, edit it so it looks like the below. If it doesn't exist just copy paste the whole thing.

event DamagedPlayer
{
RunEvent ScopeRemoval 0.0
}

It's alright if there was already stuff in the event and you can leave it if there was. This is the event that would animate your crosshair to be a different color when you hit an enemy.

Then paste the following into your autoexec:

alias remove_scope "sv_cheats 1; testhudanim scoperemoval"
remove_scope

image

Ashetf2 avatar Nov 20 '22 23:11 Ashetf2

i tried this to test it how do i undo it?

raventhecat333 avatar Sep 22 '24 20:09 raventhecat333

This exact same issue was reported at https://github.com/mastercomfig/tf2-patches/issues/574 and he fixed it over a year ago and the game patch code fix was submitted to Valve. When can we anticipate this fix being included in an update?

aussyspitz avatar Oct 17 '24 01:10 aussyspitz

i use mastercomfig and it still worked

raventhecat333 avatar Oct 17 '24 18:10 raventhecat333

i use mastercomfig and it still worked

You are talking apples and oranges of course you can use mastercomfg that has absolutely nothing to do with this. He coded a game level code patch for team comtress2 (not misspelled) to fix this exploit which will also work for team fortress 2 all Valve has to do is implement it and include it in an update and you would think as this is a pretty significant exploit it should get high priorty. Yet here we are still waiting

aussyspitz avatar Oct 17 '24 18:10 aussyspitz

This should no longer be possible with the May 12, 2025 patch, closing.

Ashetf2 avatar May 24 '25 22:05 Ashetf2