alliedmodders/sourcemod — pull request #182 by powerlord (2014-11-05 21:13:17+00:00)
Title: New-style ConVar support

OK, so I was going to rewrite one of the core plugins in 1.7's new-style syntax... but it occurred to me that I should probably rewrite the various bits it uses first.

So, here's an updated console.inc that adds a new ConVar methodmap. It also updates the ConVarChanged callback to allow you to use new-style ConVar syntax there. The old-style ConVarChanged also seems to work.

All the functions here were only compile-checked (by compiling [this plugin](https://github.com/powerlord/sourcemod-snippets/blob/master/scripting/1.7/convar_test.sp)) and not checked at runtime.

The functions themselves are still defined as taking Handle arguments. This appears to be the norm, as per menus.inc. I assumed this was for compatibility reasons and thus left them be.