View Single Post
Grey83
Veteran Member
Join Date: Dec 2014
Location: Ukraine
Old 03-19-2023 , 12:25   Re: [CSS] Sniper rifle crosshair with no scope v1.0
Reply With Quote #4

Quote:
Originally Posted by cjsrk View Post
May I ask what improvements have been made?
Changes:
  • Only new syntax.
  • Removed deprecated flag FCVAR_PLUGIN in convars.
  • Changed name of config from plugin.crosshair_with_noscope.cfg to crosshair_with_noscope.cfg.
  • The plugin looks for "m_iFOV" offset before OnPluginStart() (and stops working if it can't be found).
  • Optimized work with console variables (and crosshair type is now bool).
  • Removed unneeded hook SDKHook_WeaponEquipPost (and hook SDKHook_WeaponSwitchPost don't used for bots).
    And the callback for SDKHook_*Post hooks is void, not Action!
  • The crosshair_switch and crosshair_type commands only switch modes for the player who used them, not for the entire server.
  • When the plugin is turned off by the console variable disables event hooks and SDKHook_WeaponSwitchPost.
  • Determining whether a player's current weapon has a scope has been moved to a separate function and slightly optimized.
  • Messages translated from Chinese to English.
However, I think that using an overlay as a crosshair is not a very good idea due to a possible conflict with all other plugins that also use overlays.
__________________

Last edited by Grey83; 03-19-2023 at 12:25.
Grey83 is offline