AMX Mod X - Half-Life 1 Scripting and Administration
Go to file
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
amxmodx Cstrike: Move CSW_* constants from amxconst.inc to cstrike_const.inc 2015-11-03 10:45:49 +01:00
compiler Remove MakeFile 2015-07-14 00:13:24 +02:00
configs Normalize all the line endings 2015-03-10 16:51:45 +01:00
editor/studio Add AMXXStudio configs to the tree. 2013-02-14 23:31:42 -08:00
gamedata Cstrike: Refactor - Simplify forwards logic, fix and improve few things 2015-11-21 00:13:06 +01:00
installer Correcting SolutionFileFormat version as well 2015-05-19 18:31:19 +05:30
modules Cstrike: Refactor - Simplify forwards logic, fix and improve few things 2015-11-21 00:13:06 +01:00
plugins Cstrike: Refactor - Simplify forwards logic, fix and improve few things 2015-11-21 00:13:06 +01:00
public Cstrike: Refactor - Simplify forwards logic, fix and improve few things 2015-11-21 00:13:06 +01:00
support Cstrike: Add cstrike_const.inc and move existing constants there 2015-11-03 10:45:44 +01:00
third_party Update libmaxminddb to v1.1.0 2015-07-22 00:21:44 +02:00
tools Add the SourceMod API doc generator. 2014-07-31 10:22:04 -07:00
.gitattributes Add gitattributes 2015-03-10 11:11:49 +02:00
.gitignore Update project files. 2014-08-08 11:27:40 +02:00
.gitmodules Use upstream AMTL as a submodule 2015-03-09 22:53:58 +01:00
.travis.yml Use the new Travis-CI Container environment 2015-04-19 20:10:04 +02:00
AMBuildScript Fix linux compilation with gcc-4.8 and higher. 2015-10-13 20:25:09 +02:00
appveyor.yml Fix AppVeyor 2015-03-09 23:12:27 +01:00
configure.py Tweak build scripts so the vs build frontend will work. 2014-08-02 12:29:53 -07:00
product.version Bump version to 1.8.3-dev. 2013-02-14 23:30:38 -08:00
pushbuild.txt Trigger a build. 2014-08-08 21:26:44 +02:00
README.md 💇 2014-06-03 12:19:43 +03:00

AMX Mod X

AMX Mod X - Half-Life 1 Scripting and Server Administration

General

Development