TTT-2 / TTT2

Trouble in Terrorist Town 2 for Garry's Mod (gmod)
https://steamcommunity.com/sharedfiles/filedetails/?id=1357204556
178 stars 74 forks source link

The weapon TargetID not displayed after throw weapon as far. #1038

Closed Racpy closed 4 weeks ago

Racpy commented 1 year ago

Your version of TTT2 (mandatory)

Workshop version from Steam ( v0.11.6b )

Describe the bug (mandatory)

Video

https://github.com/TTT-2/TTT2/assets/59442552/34327257-1bea-4d7b-b399-56673d71d455

To reproduce

Steps to reproduce the behaviour:

  1. Pick up any weapon
  2. Try to throw your weapon as far as possible
  3. Go to the weapon you dropped and check it again

Expected behaviour

The weapon TargetID should be displayed on the weapon anyway. If you encounter this problem when a special weapon is dropped, and the weapon does not have an automatic pickup function, some players will not be able to use [pickup key] to pick up the weapon.

Context (please provide as much as you can)

There is no error with the server and client console.

mexikoedi commented 1 year ago

This is the wrong repository for this issue. Here is the correct one: https://github.com/TTT-2/ttt2-weaponstats

(Also try to check your collection/addon folder/... on your server. There might be an addon or something else which causes this issue. I couldn't reproduce this issue on my server.)

Racpy commented 1 year ago

I try to test without weapon stats still can reproduce this issue.

Here is my collection: https://steamcommunity.com/sharedfiles/filedetails/?id=3001672099 addon folder same as collection, do some change on roles and translation.

Racpy commented 1 year ago

If you try to move the weapon back to the first point in time when it was dropped, the TargetID may display normal again, the actual position is not known every time, because you have no idea at which point it stopped tracking these entity.

Histalek commented 1 year ago

It would be interesting to know if this happens in vanilla TTT as well. At least this sounds more like a gmod issue than a TTT2 issue.

TimGoll commented 1 year ago

This is an issue we tried to fix for the last two years. I don't think we are able to do so, it seems like it is an issue with the game engine itself

EntranceJew commented 10 months ago

I was able to trigger this myself but I don't believe that distance is the sole factor, because I can also trigger this by exclusively swapping weapons. As observed, the autopickup still functions so its hitbox is still existing. Something about it is failing a trace, however, even though it can be queried for every time the player tries to USE and detected in a radius of the trace result.

TimGoll commented 4 weeks ago

Maybe this is fixed with the changes introduced with 0.14.0. If the issues reappear, then please reopen the issue