amxmodx/plugins/include
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
..
amxconst.inc Cstrike: Move CSW_* constants from amxconst.inc to cstrike_const.inc 2015-11-03 10:45:49 +01:00
amxmisc.inc inc-doc2 nits/finishing touches 2015-03-09 19:41:21 +01:00
amxmodx_version.inc inc-doc2 nits/finishing touches 2015-03-09 19:41:21 +01:00
amxmodx.inc Fix typo 2015-09-05 08:42:31 +02:00
cellarray.inc cellarray/celltrie/cellstack: Documentation fixes and consistency updates 2015-03-09 19:41:16 +01:00
cellstack.inc cellarray/celltrie/cellstack: Documentation fixes and consistency updates 2015-03-09 19:41:16 +01:00
celltrie.inc inc-doc2 nits/finishing touches 2015-03-09 19:41:21 +01:00
core.inc inc-doc2 nits/finishing touches 2015-03-09 19:41:21 +01:00
csstats.inc inc-doc2 nits/finishing touches 2015-03-09 19:41:21 +01:00
cstrike_const.inc Cstrike: Refactor - Simplify forwards logic, fix and improve few things 2015-11-21 00:13:06 +01:00
cstrike.inc Cstrike: Remove CS_OnGetItemPrice forward (reverted from commit 33a7d74b6da2ca4dcb621e9b306c386ba040571e) 2015-11-03 10:45:50 +01:00
csx.inc Merge pull request #215 from xPaw/no-version-check 2015-03-10 01:02:05 +01:00
cvars.inc inc-doc2 nits/finishing touches 2015-03-09 19:41:21 +01:00
datapack.inc Merge pull request #239 from Nextra/inc-doc3 2015-05-10 17:12:50 +02:00
dbi.inc Make spcomp2 cry less 2015-03-11 15:19:27 +02:00
dodconst.inc Update license headers for plugins and includes. 2014-08-04 13:18:41 -05:00
dodfun.inc Remove version checks from all include files 2015-02-25 00:56:17 +02:00
dodstats.inc Update license headers for plugins and includes. 2014-08-04 13:18:41 -05:00
dodx.inc Remove version checks from all include files 2015-02-25 00:56:17 +02:00
engine_const.inc engine_const: Add sections and comments 2015-05-10 14:37:36 +02:00
engine_stocks.inc Update engine_stocks.inc 2014-10-05 16:19:47 +06:00
engine.inc Engine: Add error path for remove_entity() and unsafe entity ids 2015-05-11 16:15:43 +02:00
esf_const.inc Update license headers for plugins and includes. 2014-08-04 13:18:41 -05:00
esf.inc Added Corona Byte's EvolutionX core 2005-08-24 06:13:55 +00:00
fakemeta_const.inc Add new natives to read/write on entity's private data based off class/member name available from gamedata files 2015-09-19 20:07:48 +02:00
fakemeta_stocks.inc Make spcomp2 cry less 2015-03-11 15:19:27 +02:00
fakemeta_util.inc Fix for amb1647: brush origin retrieval was wrong 2008-05-07 05:17:21 +00:00
fakemeta.inc Refactor 2 - Duplicate get_member_* for each set of natives for consistency 2015-11-02 20:10:38 +01:00
file.inc VFS: Fix various things 2015-03-25 13:50:07 +01:00
float.inc Backed out changeset: 2bc36c43b15f 2013-09-10 09:04:52 +02:00
fun.inc Remove version checks from all include files 2015-02-25 00:56:17 +02:00
gameconfig.inc Gameconfig: Add game configs natives 2015-07-11 13:16:45 +02:00
geoip.inc Remove version checks from all include files 2015-02-25 00:56:17 +02:00
ham_const.inc Add basic kvd doc to fakemeta.inc and fix ham_const.inc lies 2015-05-05 11:16:26 +02:00
hamsandwich.inc Make spcomp2 cry less 2015-03-11 15:19:27 +02:00
hlsdk_const.inc Cstrike: Add more known constants from game 2015-11-03 10:45:44 +01:00
lang.inc Add %l format specifier and SetTranslationTarget() native 2015-03-26 22:42:55 +01:00
message_const.inc Update message_const.inc 2015-03-12 22:50:49 +05:00
message_stocks.inc Make spcomp2 cry less 2015-03-11 15:19:27 +02:00
messages.inc Update license headers for plugins and includes. 2014-08-04 13:18:41 -05:00
newmenus.inc Normalize all the line endings 2015-03-10 16:51:45 +01:00
ns_const.inc Update license headers for plugins and includes. 2014-08-04 13:18:41 -05:00
ns.inc Remove version checks from all include files 2015-02-25 00:56:17 +02:00
nvault.inc Make spcomp2 cry less 2015-03-11 15:19:27 +02:00
regex.inc Remove version checks from all include files 2015-02-25 00:56:17 +02:00
sockets.inc Remove version checks from all include files 2015-02-25 00:56:17 +02:00
sorting.inc Normalize all the line endings 2015-03-10 16:51:45 +01:00
sqlx.inc Fix missing SQL_SetCharset native in SQLite 2015-04-12 21:08:03 +02:00
string.inc Compiler: Add #pragma deprecated. 2014-08-26 09:04:36 +02:00
textparse_ini.inc Add a data argument in INI/SMC_ParseFile() to pass through to callbacks (bug 6228) 2015-07-29 22:23:13 +02:00
textparse_smc.inc Add a data argument in INI/SMC_ParseFile() to pass through to callbacks (bug 6228) 2015-07-29 22:23:13 +02:00
tfcconst.inc Update license headers for plugins and includes. 2014-08-04 13:18:41 -05:00
tfcstats.inc Update license headers for plugins and includes. 2014-08-04 13:18:41 -05:00
tfcx.inc Remove version checks from all include files 2015-02-25 00:56:17 +02:00
time.inc Update license headers for plugins and includes. 2014-08-04 13:18:41 -05:00
tsconst.inc Update license headers for plugins and includes. 2014-08-04 13:18:41 -05:00
tsfun.inc Make spcomp2 cry less 2015-03-11 15:19:27 +02:00
tsstats.inc Update license headers for plugins and includes. 2014-08-04 13:18:41 -05:00
tsx.inc Remove version checks from all include files 2015-02-25 00:56:17 +02:00
vault.inc Update license headers for plugins and includes. 2014-08-04 13:18:41 -05:00
vector.inc Update license headers for plugins and includes. 2014-08-04 13:18:41 -05:00
xs.inc Make spcomp2 cry less 2015-03-11 15:19:27 +02:00