mastercomfig / tf2-patches

Team Fortress 2, but with a lot of fixes, QoL improvements and performance optimizations!
Other
221 stars 27 forks source link

Sniper scope overlay can be removed with a HUD #647

Closed RicochetYT closed 1 year ago

RicochetYT commented 1 year ago

Description

As the title says, using some modifications to a custom HUD, you can make the sniper scope disappear, giving you an advantage. To my knowledge, this still occurs on TC2, but I haven't been able to test it due to the lack of HUDs on the old version and laziness.

Checklist

Reproduction

  1. Add the following to "hudanimations.txt"
    
    // Break Sniper scope border.
    event ScopeRemoval
    {
    Animate HudScope Position   "9999 9999" Linear 0.0 0.0
    }

event DamagedPlayer { RunEvent ScopeRemoval 0.0 }

2. Add the following to autoexec.cfg or execute it manually:

alias remove_scope "sv_cheats 1; testhudanim scoperemoval" remove_scope


3. Damage a player on any server, the sniper scope will be invisible for the rest of the time TF2 is running.

### Screenshots
<!-- Add screenshots or videos to help explain your problem -->
![image](https://user-images.githubusercontent.com/36606403/224580198-b19b176d-b98b-4c59-9fd2-90fdc2a40049.png)

### Setup Details
#### Client Settings
<!-- Fill this out for all issues -->
- *Server or client:* Client <!-- Did you observe this issue from the game client, or by running a dedicated server? -->
- *Operating system:* Any <!-- Specify a version e.g. Windows 10, Mac OS X Catalina, or `uname -rv` output -->
- *Team Comtress version:* Any <!-- Release version number or commit id -->
- *Custom content:* HUD, nothing else really matters <!-- Any 3rd-party content, including config files -->
- *Launch options:* N/A <!-- If not using start_tf2.bat, specify a list of options -->
mastercoms commented 1 year ago

Duplicate