garrynewman/garrysmod — pull request #579 by HandsomeMatt (2014-01-27 20:53:06+00:00)
Title: Updated Hook System

- Updated hook.lua so the hook system is no longer restricted to 6 return values. ( This was changed before but seems to of changed back last year? )

- hook.Call( "PlayerSpawn", nil, ... ) would still call GAMEMODE functions, it never used to do this and it's not documented to do this, so made hook.Run use hook.Call with the gamemode table instead of assuming hook.Call will always want to use the gamemode.

- Localized undocumented Hooks table; people should be using hook.GetTable() anyway.