Name: Fix angles
Description: Fixes error 'Bad SetLocalAngles' in server console.
Installation: Place compiled plugin (
fix_angles.smx) into the plugins folder (
../addons/sourcemod/plugins/).
Set value '
1' for variable '
sm_fix_angles_enable' in
server.cfg or in the config for the problematic map (
for plugin Map configs with prefix support).
CVars:- sm_fix_angles_version - Version of this plugin
- sm_fix_angles_enable - Enables/disables the plugin (def. '0'; You must set the value of this variable in the server config file)
- sm_fix_angles_msg - Enables/disables messages in the server console (def. '0'; value is stored in the file fix_angles.cfg)
E.g.
Code:
> Wrong angles of the prop 'func_rotating' (#74, 'huey_blade'):
0.00, 20916.54, 0.00 (fixed to: 0.00, 36.54, 0.00)
> Wrong angles of the prop 'func_rotating' (#75, 'huey_blade'):
20916.54, 0.00, 0.00 (fixed to: 36.54, 0.00, 0.00)
- sm_fix_angles_time - The time between inspections of entities angles (def. '30', min 10sec, max 120sec; value is stored in the file fix_angles.cfg)
Changes in 1.0.4 [2019/05/02]:- Fixed error
Code:
Bad SetLocalAngles(0.000000,0.000000,-1.#QNAN0) on func_rotating
> Wrong angles of the prop 'func_rotating': 0.00, 0.00, Na
- Small fixes and optimization
Changes in 1.0.2 [2017/09/10]:- Added CVar sm_fix_angles_msg
- Small optimization of a code
Changes in 1.0.1 [2016/07/31]:- Added CVar sm_fix_angles_enable in order to enable the plugin only for those maps (using a plugin Map configs with prefix support), where you see this error.
- Small fixes