ValveSoftware / Source-1-Games

Source 1 based games such as TF2 and Counter-Strike: Source
660 stars 76 forks source link

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

Open Ashetf2 opened 2 years ago

Ashetf2 commented 2 years ago

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

raventhecat333 commented 2 months ago

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

aussyspitz commented 1 month ago

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?

raventhecat333 commented 1 month ago

i use mastercomfig and it still worked

aussyspitz commented 1 month ago

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