TTT-2 / TTT2

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

Hitboxes Do Not Sync With Radio Gestures #1036

Open BDJslime-UnaverageJoe opened 1 year ago

BDJslime-UnaverageJoe commented 1 year ago

Your version of TTT2 (mandatory)

v0.9.2b (Modified)

Video

https://cdn.discordapp.com/attachments/739992631685283850/1106467819165581363/Desktop_2023.05.12_-_02.27.17.10.DVR_Trim.mp4 https://medal.tv/games/garrys-mod/clips/13tCwvGMxeaAbs/d13371UPnSz5?invite=cr-MSxjaUosMjUzNjQwOTEs

Describe the bug (mandatory)

Gestures played from radio commands are not syncing with the hitbox. This can result in misleading models as the hitbox does not follow the animation.

To reproduce

Requires multiple players

  1. One player uses a radio command to perform a gesture, preferably while looking down and holding a gun.
  2. Another player shoots the first player in the head while they are gesturing.
  3. Shots will either miss or not be registered as headshots.

Expected behaviour

The player's hitbox should follow the animated gesture.

Additional context

It is possible that this is due to the gestures only being played on client side, and thus does not affect the server which manages the hitboxes. The gesture played when dropping items is on serverside but I did not test if it affects the hitbox.

wgetJane commented 1 year ago

you can reproduce this on your own with a bot:

lua_run concommand.Run(Entity(2), "_ttt_radio_send", {"quick_see",1})
stale[bot] commented 8 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.