[b]Changelog[/b]
AMX 2006.3
This release includes code from AMX Mod X.
-----------------------------------------------------------------------------
Core:
o modified modules API (merged from AMX Mod X)
o added optimizations to AMX and its modules (some merged from AMX Mod X)
o added float optimizations (merged from AMX Mod X)
o added modules autoloading
o fixed some problems with modules
o added natives set_cvarptr_/get_cvarptr_ and get_cvar_pointer (merged from AMX Mod X)
o added native print_to_admins
o added native load_module
o added native formatex (merged from AMX Mod X)
o fixed crashes that happened when chinese characters were used in the lang files
(if you want to translate AMX to chinese, you have to save the lang files as "UTF-8" format)
o you can have more than one plugins.ini file: the other files must begin with "plugins-"
and end with ".ini" and must be in the amx/config folder (fe: plugins-test.ini)
o you can have per-map plugin configuration files and general plugin configuration files (idea from AMX Mod X):
use the amx/config/maps_plugins folder, inside create some mapname.ini files or
prefix_*.ini files (fe: de_dust.ini, de_inferno.ini, prefix_cs_.ini, prefix_scoutz.ini).
These files will be loaded in the following order:
amx/config/plugins.ini
amx/config/plugins-*.ini
amx/config/maps_plugins/prefix_*.ini
amx/config/maps_plugins/mapname.ini
All the plugins declared in these files will be loaded unless you add the "disabled" keyword after the
plugin filename in the .ini file (idea from AMX Mod X):
myplugin.amx disabled
telemenu.amx disabled
myprecacheplugin.amx disabled
In that case, if the plugin was previously declared (in the same or another .ini file), it won't be loaded.
Thanks to that, you can disable some plugins that precache lots of things on certain maps for instance
(useful if these plugins make the server crash when these maps are loaded).
o changed format of the modules.ini file: you can use modulename.dll, modulename_i386.so or just modulename.
o fixed write_file native for servers hosted on VeryGames (french game server provider that does not allow
amx to create a temp file...)
o renamed "amx_modules" client command to "amxmodules"
o added cvar amx_modules (amx_version will only display "2006.3")
Fun:
o added native strip_user_weapons (merged from AMX Mod X)
o added optimizations
VexdUM:
o fixed radius_damage
o added forward alertmessage
o added forward getgamedescription
o added native setgamedescription
o added optimizations
CSStats:
o when csstats_maxsize is reached, stats are not reset, "csstats_maxsize" stats are saved to the csstats.dat file
o you can use a csstats.dat file created by amxmodx (it was already possible with amx 2005 but I never mentioned it)
o added forwards damage_info, death_info, grenade_throw,
bomb_planting, bomb_planted, bomb_exploded, bomb_defusing, bomb_defused (idea from AMX Mod X)
o fixed file parser (merged from AMX Mod X)
o added csstats_savesv command in order to export csstats.dat to a tab or semicolon separated values file:
csstats_savesv "path/file" 0 : saves csstats.dat to "path/file" (tab separated values)
csstats_savesv "path/file" 1 : saves csstats.dat to "path/file" (semicolon separated values)
o added optimizations
DoD XMod:
o when dodstats_maxsize is reached, stats are not reset, "dodstats_maxsize" stats are saved to the dodstats.dat file
o added natives dod_set_user_ammo and dod_get_user_ammo (merged from AMX Mod X)
o fixed file parser (merged from AMX Mod X)
o added dodstats_savesv command in order to export dodstats.dat to a tab or semicolon separated values file:
dodstats_savesv "path/file" 0 : saves dodstats.dat to "path/file" (tab separated values)
dodstats_savesv "path/file" 1 : saves dodstats.dat to "path/file" (semicolon separated values)
o added optimizations
GeoIP:
o fixed GeoIP.dat
o updated GeoIP.c and GeoIP.h
Plugins:
o added optimizations
o moved important settings to the top of the .sma file so that you can easily get access to them and modify them
Example from admin.sma:
/******************************************************************************/
// If you change one of the following settings, do not forget to recompile
// the plugin and to install the new .amx file on your server.
// You can find the list of admin flags in the amx/examples/include/amxconst.inc file.
#define MAX_ADMINS 64
#define FLAG_AMX_ADDADMIN ADMIN_RCON
#define FLAG_AMX_REMOVEADMIN ADMIN_RCON
#define FLAG_AMX_MAKEADMIN ADMIN_RCON
/******************************************************************************/
o added back NO_STEAM support (for CS 1.5 users)
o it is now displayed name<userid><steamid><ip> instead of name<userid><steamid><> in the logs
o admin
- when you use amx_addadmin, if the player is in game, his name is added as a comment to the users.ini file
o adminchat
- added cvar amx_chat_anonymous (read amx.cfg)
- for people who don't know these shortcuts:
say @@@message = amx_scrollsay message
say @@@ymessage = amx_scrollsayy message
say @@message = amx_csay message
say @@ymessage = amx_csayy message
say @message = amx_tsay message
say @ymessage = amx_tsayy message
say ###message = amx_say message
say ###ymessage = amx_sayy message
say ##message = amx_chat message
say #message = amx_psay message
say #ymessage = amx_psayy message
say $$$message = amx_fsay message
say $$$ymessage = amx_fsayy message
say $$message = amx_flicksay message
say $$ymessage = amx_flicksayy message
say $message = amx_fxsay message
say $ymessage = amx_fxsayy message
o admincmd
- reason is displayed to players who are banned with amx_ban
- if it is a lan server, amx_ban <name/#userid> will automatically ban by ip instead of steamid
- added command amx_showip [name|#userid|authid]
o adminvote
- fixed a bug
o imessage
- you can use "?" to get a random color (amx_imessage "message" "?")
o mapsmenu
- renamed cvar amx_mapsmenu_mapsloc to amx_mapmenu_mapsloc
- added cvar amx_votemapmenu_mapsloc
o mapchooser
- added amx_mapchooser_type 2
- added cvar amx_mapchooser_mapsfile (read amx.cfg)
- option 7 in the vote is now "7. Keep current nextmap: mapname" instead of "7. mapname"
- amx_listmaps now also works when amx_nominfromfile is set to 0
- a help message is displayed every 3mns to tell people they can nominate maps
(when amx_mapchooser_type is set to 1)
o statsx
- added #define NEW_SPEC_RANK_INFO to see players' rank in first person mode when you are spectator/dead
(if you enable this #define you have to recompile the plugin, and it requires VexdUM)
Includes:
o amxconst.inc
- added back #define NO_STEAM
- added #define ADMIN_ALL 0
o updated cstrike.inc
o updated amxmodx_to_amx.inc
Configuration:
o amx.cfg
- updated amx_show_activity (3: show with name, but only to admins)
- added amx_chat_anonymous
- renamed amx_mapsmenu_mapsloc to amx_mapmenu_mapsloc
- added amx_votemapmenu_mapsloc
- updated amx_mapchooser_type (2)
- added amx_mapchooser_mapsfile
o modified modules.ini
o paths.ini
- added amx_mapspluginsdir addons/amx/config/maps_plugins
- added autoload_modules 1
- added optimizer 7 (merged from AMX Mod X)
Misc:
o fixed amx_compiler.exe
o compiler
- removed "local variable shadows a variable at a preceding level" warning (merged from AMX Mod X)
- the variable names of forwards can be changed (merged from AMX Mod X)
- fixed code generation bug (merged from AMX Mod X)
*****************************************************************************
Some features were added from AmxModX. Here is the list.
Credits go to AmxModX Dev Team:
David "BAILOPAN" Anderson, Pavol "PM OnoTo" Marko,
Felix "SniperBeamer" Geyer, Jonny "Got His Gun" Bergstrom,
Lukasz "SidLuke" Wlasinski, Christian "Basic-Master" Hammacher,
Borja "faluco" Ferrer, Scott "Damaged Soul" Ehlert.
modules API
float optimizer
bot detection improvement
the use of reinterpret_cast<cvar_t *> for get/set_cvarptr natives
native formatex
native strip_user_weapons
modification of native DispatchKeyValue
file parser fixes for CSStats/DoDXMod
Client_Damage and Client_Damage_End for CSStats
the use of StartFrame_Post for CSStats forwards
dod_set_user_ammo and dod_get_user_ammo for DoDXMod
compilation speed improvement
compiler modifications
*****************************************************************************
Please feel free to leave feedback in this thread.
- The AMX Mod Team
If you update from AMX 2006.2, here is the files you must update:
amx/config/amx.cfg
amx/config/paths.ini
amx/dlls/*
amx/docs/*
amx/examples/*
amx/examples/include/*
amx/examples/source/default/*
amx/lang/*
amx/modules/*
amx/plugins/*