amxmodx/modules
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
..
cstrike Cstrike: Refactor - Simplify forwards logic, fix and improve few things 2015-11-21 00:13:06 +01:00
dod Fix some natives relying on a known engine bug related to last player's edict being invalid 2015-10-06 17:19:01 +02:00
engine Consistency: Replace INDEXENT2 with HLTypeConversion in engine module 2015-10-07 23:27:57 +02:00
fakemeta Refactor 5 - Rename original file/var for gamerules 2015-11-02 20:10:40 +01:00
fun Consistency: Replace GETEDICT, INDEXENT2 and others things with HLTypeConversion in hamsandwich module 2015-10-08 19:24:49 +02:00
geoip Fix max length inconsistencies + typo 2015-10-05 19:12:30 +02:00
hamsandwich Consistency: Replace GETEDICT, INDEXENT2 and others things with HLTypeConversion in hamsandwich module 2015-10-08 19:24:49 +02:00
mysqlx Remove UTIL_Format() and UTIL_VarArgs() 2015-10-05 19:12:08 +02:00
ns Fix max length inconsistencies + typo 2015-10-05 19:12:30 +02:00
nvault Remove UTIL_Format() and UTIL_VarArgs() 2015-10-05 19:12:08 +02:00
regex Fix AMBuild and VS projects files 2015-10-02 23:22:22 +02:00
sockets Fix AMBuild and VS projects files 2015-10-02 23:22:22 +02:00
sqlite Remove UTIL_Format() and UTIL_VarArgs() 2015-10-05 19:12:08 +02:00
tfcx Fix some natives relying on a known engine bug related to last player's edict being invalid 2015-10-06 17:19:01 +02:00
ts Fix AMBuild and VS projects files 2015-10-02 23:22:22 +02:00