Made a basic weapon API, fixed SetPlayerAlpha function, moved logging to its own file (had to be done now, it was hard to find before), made a separate cvar to disable logging fully.
This commit is contained in:
@ -13,36 +13,6 @@
|
||||
*/
|
||||
#define GENERAL_MIN_DXLEVEL 90
|
||||
|
||||
/**
|
||||
* @section Logging flags.
|
||||
*/
|
||||
#define LOG_CORE_EVENTS 1 /** Executing config files, error messages, etc. */
|
||||
#define LOG_GAME_EVENTS 2 /** Admin commands, suicide prevention, anticamp kills. */
|
||||
#define LOG_PLAYER_COMMANDS 4 /** Commands executed by non-admins: zspawn, teleport, class change. */
|
||||
#define LOG_DEBUG 8 /** Debug messages. */
|
||||
#define LOG_DEBUG_DETAIL 16 /** Debug messages with more detail. May cause spam. */
|
||||
#define LOG_DEBUG_MAX_DETAIL 32 /** Low level debug messages. Causes spam! Only enable for a limited period right before and after testing. */
|
||||
#define LOG_TO_ADMINS 64 /** Copy kinds of log events to admin chat. */
|
||||
#define LOG_TO_CLIENT 128 /** Copy all log events related to a player, to the players console. */
|
||||
#define LOG_IGNORE_CONSOLE 256 /** Don't log messages from the console (client 0). */
|
||||
#define LOG_MODULES_ENABLED 512 /** Enable module based log control. Module logs overrides previous flags, including debug flags. */
|
||||
#define LOG_MODULE_CORE 1024 /** The core of the plugin (startup, loading configs, etc.). Not really a module. */
|
||||
#define LOG_MODULE_COMMANDS 2048 /** commands.inc */
|
||||
#define LOG_MODULE_CLASSES 4096 /** Class system - playerclasses/ *.inc */
|
||||
#define LOG_MODULE_ZOMBIE 8192 /** zombie.inc */
|
||||
#define LOG_MODULE_SAYTRIGGERS 16384 /** sayhooks.inc */
|
||||
#define LOG_MODULE_AMBIENTSOUNDS 32768 /** ambientsounds.inc */
|
||||
#define LOG_MODULE_OVERLAYS 65536 /** overlays.inc */
|
||||
#define LOG_MODULE_TELEPORT 131072 /** teleport.inc */
|
||||
#define LOG_MODULE_WEAPONS 262144 /** Weapons module - weapons/ *.inc */
|
||||
#define LOG_MODULE_HITGROUPS 524288 /** hitgroups.inc */
|
||||
#define LOG_MODULE_ANTICAMP 1048576 /** anticamp.inc */
|
||||
#define LOG_MODULE_DAMAGE 2097152 /** damage.inc */
|
||||
#define LOG_MODULE_OFFSETS 4194304 /** offsets.inc */
|
||||
/*
|
||||
* @endsection
|
||||
*/
|
||||
|
||||
/**
|
||||
* Global variable set to true if market plugin is installed
|
||||
*/
|
||||
|
Reference in New Issue
Block a user