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
[x] None of the open or closed issues document this problem.
[x] This is a bug, not a new idea.
[x] This is objectively a bug, and not something that people commonly disagree on.
[x] This issue occurs on the latest Team Comtress release, or the master branch.
[x] This issue occurs on the latest vanilla TF2 update.
[ ] This bug is in the code of the game, not in the textures, sounds, or other resources.
[ ] This issue occurs when using no custom content.
[x] This issue occurs when using start_tf2.bat (or start_server.bat) with no custom launch options.
[x] This issue occurs when using a listen server (using the map command ingame).
[x] This issue occurs when using a dedicated server.
[ ] This bug is in the internal procedures or tooling (e.g. the build process).
Reproduction
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 -->
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
master
branch.start_tf2.bat
(orstart_server.bat
) with no custom launch options.map
command ingame).Reproduction
event DamagedPlayer { RunEvent ScopeRemoval 0.0 }
alias remove_scope "sv_cheats 1; testhudanim scoperemoval" remove_scope