Quote:
Originally Posted by cjsrk
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.
__________________