protonscr

[GoldSource] func_rotating/func_train rotating visually breaks after a while

steamclosed duplicateMOVED: Half-Life 1
ValveSoftware/steam-for-linux#1104 · opened 2013-01-31 by xPaw · updated 2013-01-31 · 2 comments · github
XxPaw 2013-01-31 github

Angles are not clamped within -360/360, and at some point entity will just stop visually rotating (will stay at same spot).

Found that those entities stop rotation (only visual) when some angle value is above 32768 or below -32768 on linux, and -16777216/16777216 (=32768*512) on windows, at least on my computer and on my dediacted server.

Here is an example code of how it's fixed in amxmodx:
http://forums.alliedmods.net/showpost.php?p=881654&postcount=23

Jjohndrinkwater 2013-01-31 github

probable duplicate of #862.

Aalfred-valve maintainer 2013-01-31 github

Thanks xPaw, I was wondering WTF was causing this.

Nothing extracted yet.