View Single Post
Author Message
Grey83
Veteran Member
Join Date: Dec 2014
Location: Ukraine
Old 07-30-2016 , 01:32   [ANY] Fix angles 1.0.4 [2019/05/02]
Reply With Quote #1

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
Attached Files
File Type: sp Get Plugin or Get Source (fix_angles 1.0.1.sp - 2028 views - 2.2 KB)
File Type: sp Get Plugin or Get Source (fix_angles 1.0.2.sp - 1636 views - 3.1 KB)
File Type: sp Get Plugin or Get Source (fix_angles 1.0.4.sp - 2108 views - 3.2 KB)
__________________

Last edited by Grey83; 05-06-2019 at 15:25. Reason: Updated plugin: reuploaded version 1.0.4
Grey83 is offline