amxmodx/plugins
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
..
BinLogReader Update copyright year 2015-03-29 20:01:25 +02:00
cstrike Fix player not being internally disconnected in some situation + add client_disconnected forward 2015-08-14 00:08:50 +02:00
dod Fix player not being internally disconnected in some situation + add client_disconnected forward 2015-08-14 00:08:50 +02:00
esf Added Corona Byte's EvolutionX core 2005-08-24 06:13:55 +00:00
include Cstrike: Refactor - Simplify forwards logic, fix and improve few things 2015-11-21 00:13:06 +01:00
lang Updated PL translations 2014-12-28 20:56:52 +01:00
ns Fix player not being internally disconnected in some situation + add client_disconnected forward 2015-08-14 00:08:50 +02:00
testsuite Update datapack test plugin 2015-03-30 04:14:55 +02:00
tfc Fix player not being internally disconnected in some situation + add client_disconnected forward 2015-08-14 00:08:50 +02:00
ts Fix player not being internally disconnected in some situation + add client_disconnected forward 2015-08-14 00:08:50 +02:00
admin.sma AutoExecConfig: Remove config code in admin.sma 2015-08-14 16:38:28 +02:00
adminchat.sma MAX_PLAYERS: Fix plugins 2015-02-01 19:25:36 +01:00
admincmd.sma Fix player not being internally disconnected in some situation + add client_disconnected forward 2015-08-14 00:08:50 +02:00
adminhelp.sma Fix player not being internally disconnected in some situation + add client_disconnected forward 2015-08-14 00:08:50 +02:00
adminslots.sma Fix player not being internally disconnected in some situation + add client_disconnected forward 2015-08-14 00:08:50 +02:00
adminvote.sma admincmd.sma: Missing charsmax and more readability. 2015-03-09 23:35:04 +02:00
AMBuilder Compiler: Treat pawn warnings as errors when building 2014-09-29 15:55:16 +02:00
antiflood.sma MAX_PLAYERS: Fix plugins 2015-02-01 19:25:36 +01:00
cmdmenu.sma Update cmdmenu.sma 2015-05-17 19:50:42 +03:00
compile.exe Fixed error output on compiler 2005-07-30 00:31:42 +00:00
compile.sh Fix compile.sh script for OS X. 2014-05-18 20:37:44 -05:00
imessage.sma fix memory leaks 2015-07-11 00:39:34 +03:00
mapchooser.sma fix memory leaks 2015-07-11 00:39:34 +03:00
mapsmenu.sma fix memory leaks 2015-07-11 00:39:34 +03:00
menufront.sma Update menufront.sma 2015-02-23 02:21:20 +05:00
multilingual.sma Fix player not being internally disconnected in some situation + add client_disconnected forward 2015-08-14 00:08:50 +02:00
nextmap.sma Rename change_level to engine_changelevel 2015-01-23 16:55:16 +01:00
pausecfg.sma MAX_PLAYERS: Fix plugins 2015-02-01 19:25:36 +01:00
plmenu.sma fix memory leaks 2015-07-11 00:39:34 +03:00
pluginmenu.sma Normalize all the line endings 2015-03-10 16:51:45 +01:00
scrollmsg.sma Update license headers for plugins and includes. 2014-08-04 13:18:41 -05:00
statscfg.sma MAX_PLAYERS: Fix plugins 2015-02-01 19:25:36 +01:00
telemenu.sma MAX_PLAYERS: Fix moar 2015-02-01 21:45:16 +01:00
timeleft.sma MAX_PLAYERS: Fix plugins 2015-02-01 19:25:36 +01:00