amxmodx/public
Arkshine a445e806ea Cstrike: Refactor - Simplify forwards logic, fix and improve few things
- The logic around CS_OnBuy forward has been simplified. Since there is no way to have a consistent way to hook/block for all items, the new logic is to have as less as possible code, especially in blocking mode where we want to avoid to do extra stuffs (e.g blocking sound, event, etc).

  * All guns + shield -> CanBuyThis()
  * Nvgs and Fefuser only -> CanPlayerBuy()
  * The others items -> GiveNamedItem() + AddAccount()
  * Ammos -> -> BuyGunAmmo() + GiveNamedItem() + AddAccount()

- Fixed missing buyzone check when alias from console are used (CS_OnBUy* were incorrectly fired).
- Fixed an infinite loop when buying of ammos are blocked. Sorted by hooking BuyGunAmmo().
- Fixed blocking mode for some items. Some game behaviors were not blocked (e.g. weapon drop).
- Fixed forwards being triggered even though errors were found. Detours are now a destroyed and associated variables resetted when necessary. Toggling forwards state is now based on detours state.
- Moved things in its own functions (game functions to execute, class members retrieval)
- Renamed CommandAliases -> ItemInfos (more generic)
2015-11-21 00:13:06 +01:00
..
amtl@c35532ced5 Update AMTL to latest revision 2015-10-02 23:22:20 +02:00
licenses Updating hahsers INC files and Acknowledgements 2015-02-16 16:30:45 +02:00
memtools Fix linux compilation with gcc-4.8 and higher. 2015-10-13 20:25:09 +02:00
sdk Remove UTIL_Format() and UTIL_VarArgs() 2015-10-05 19:12:08 +02:00
amxmodx_version.h Update versioning 2014-12-08 01:39:10 +01:00
auto-string.h Fix AMTL internal paths 2015-10-02 23:22:21 +02:00
engine_strucs.h Fix wrong buffer length 2015-07-17 19:12:02 +02:00
HLTypeConversion.h Cstrike: Refactor - Simplify forwards logic, fix and improve few things 2015-11-21 00:13:06 +01:00
IGameConfigs.h Modify game config parser to support more offset datas (type, size, etc.) 2015-08-10 18:05:59 +02:00
ITextParsers.h Gameconfig: Add game configs natives 2015-07-11 13:16:45 +02:00
sh_list.h Update nvault module project files and use AMTL. 2014-08-10 18:29:19 +02:00
sh_stack.h Update fakemeta module project files and use AMTL. 2014-08-09 20:50:45 +02:00
sh_string.h Update nvault module project files and use AMTL. 2014-08-10 18:29:19 +02:00
sm_memtable.h Cstrike: Import some memory tools from SourceMod 2014-05-28 22:51:14 +02:00
sm_namehashset.h Fix AMTL internal paths 2015-10-02 23:22:21 +02:00
sm_queue.h Update nvault module project files and use AMTL. 2014-08-10 18:29:19 +02:00
sm_stringhashmap.h Fix AMTL internal paths 2015-10-02 23:22:21 +02:00
sm_symtable.h Cstrike: Import some memory tools from SourceMod 2014-05-28 22:51:14 +02:00