Hey there,
I'm sure some of you encountered such spam in your console
(maybe instead of 'func_rotating' you see entity targetname)Bad SetLocalAngles(<some big numbers here>) on func_rotating
Not only does this spam your console, but the guilty func_rotating also stops working. In case of cs_assault, the fans in vents stop rotating. While it's not critical on cs_assault (besides spamming), some minigames or other custom maps can rely on func_rotating's very heavily.
This bug happens when func_rotating rotates for too long but the bug resets with the round start. But the faster entity rotates, the sooner this glitch will happen.
So I decided to fix it. Not just suppress the warning spam, but to fix the bug itself.
Here's the script:
Save it <mod dir>/addons/source-python/plugins/badlocalanglesfix/badlocalanglesfix.py and add the following line to your autoexec.cfg:
Code: Select all
sp plugin load badlocalanglesfix
Tested on
- Windows CS:S server
- Windows CS:GO server
Not tested on
- Linux CS:S server
- Linux CS:GO server
- Linux/Windows TF2 server - need feedback
- Other OB games
Cheers.