halflife icon indicating copy to clipboard operation
halflife copied to clipboard

[GoldSrc] onlyClientDraw freezes sound listener position

Open Meetem opened this issue 1 year ago • 1 comments

If the mod is using onlyClientDraw = 1, then sound playback origin will "freeze" in the last place where onlyClientDraw was 0. Probably it is related to the fast exit in the engine rendering code, where check for onlyClientDraw elliminates not only the rendering, but sound setup too.

Setting onlyClientDraw to 0 will catch up new player origin, but will freeze again if onlyClientDraw becomes 1.

Meetem avatar Sep 14 '24 06:09 Meetem

Apparently viewmodel animations are broken too, seems that they are not transferred from engine to the view entity. Since engine doesn't render a viewmodel, it just skips the animation setup, which is incorrect, since custom renderer needs them. Reproducable with r_norefresh = 1, or r_drawentities = 0, or r_drawviewmodel = 0, or onlyClientDraw = 1

Meetem avatar Sep 19 '24 05:09 Meetem