AMX Mod X - Half-Life 1 Scripting and Administration
6d6a41b894
* Adminslot: Trim spaces * Adminslot: Use semicolon everywhere * Adminslot: Use brackets everywhere * Adminslot: Hook cvars change and make sure max visible players is set right away * Adminslot: Rename g_sv_visiblemaxplayers * Adminslot: Move free slot calculation in its own function * Adminslot: Use create_cvar and define appropriate bounds * Adminslot: Use get_playersnum_ex with flag for clarity * Adminslot: Move all the logic inside setVisibleSlots Looks like the commit should have been split for clarity. The initial purpose is to avoid code duplication and regroup checks. The logic is the same with a little improvement to handle situations where a cvar is changed on-the-fly and sv_visiblemaxplayers needs to be reset. Ultimately, the logic is the following: - At player's connection: -- Do nothing if amx_reservation == 0 and sv_visiblemaxplayers <= 0. If sv_visiblemaxplayers is set, we reset it directly. -- Check if player needs to be kicked. If not, and amx_hideslots == 0, then do nothing. -- Otherwise we update sv_visiblemaxplayers - Others events: -- Do nothing if either amx_reservation == 0 or amx_hideslots == 0, and if sv_visiblemaxplayers <= 0. If sv_visiblemaxplayers is set, we reset it directly. -- Otherwise we update sv_visiblemaxplayers * Adminslot: Rename variables and adjust constantness * Adminslot: Add a description to the cvars * Adjust CVAR_HIDESLOTS english sentence * Add the Deutsch translations |
||
---|---|---|
.github | ||
amxmodx | ||
compiler | ||
configs | ||
editor/studio | ||
gamedata | ||
installer | ||
modules | ||
plugins | ||
public | ||
support | ||
third_party | ||
tools | ||
.gitattributes | ||
.gitignore | ||
.gitmodules | ||
.travis.yml | ||
AMBuildScript | ||
appveyor.yml | ||
configure.py | ||
product.version | ||
pushbuild.txt | ||
README.md |
AMX Mod X is a Metamod plugin for Half-Life 1. It provides comprehensive scripting for the game engine and its mods. Scripts can intercept network messages, log events, commands, client commands, set cvars, modify entities, and more. AMX Mod X also has a system for extending native scripting through modules, leading to outside support for things like MySQL and Sockets.
General
- AMXX website
- Forum: Discussion forum including plugin/extension development
- General documentation: Miscellaneous information about AMXX
- Latest release: The latest stable AMXX release
- Build snapshots: Builds of recent development versions
Development
- Issue tracker: Issues that require back and forth communication
- Issue archive: Old issue tracker (read-only)
- Building AMXX: Instructions on how to build AMXX itself using AMBuild
- AMX Mod X API: AMX Mod X API reference generated from include files
- AMXX scripting: Pawn examples and introduction to the language