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 2 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