2
0
mirror of https://github.com/rehlds/metamod-r.git synced 2025-01-03 18:45:36 +03:00
metamod-r/metamod/src/commands_meta.h

45 lines
1.2 KiB
C
Raw Normal View History

2016-07-26 03:22:47 +03:00
#pragma once
2016-07-26 05:08:43 +03:00
#include "types_meta.h"
2016-07-26 03:22:47 +03:00
// Flags to use for meta_cmd_doplug(), to operate on existing plugins; note
// "load" operates on a non-existing plugin thus isn't included here.
2016-07-26 05:08:43 +03:00
enum PLUG_CMD
{
2016-07-26 03:22:47 +03:00
PC_NULL = 0,
PC_PAUSE, // pause the plugin
PC_UNPAUSE, // unpause the plugin
PC_UNLOAD, // unload the plugin
PC_RELOAD, // unload the plugin and load it again
PC_RETRY, // retry a failed operation (usually load/attach)
PC_INFO, // show all info about the plugin
PC_CLEAR, // remove a failed plugin from the list
PC_FORCE_UNLOAD, // forcibly unload the plugin
PC_REQUIRE, // require that this plugin is loaded/running
2016-07-26 05:08:43 +03:00
};
2016-07-26 03:22:47 +03:00
void meta_register_cmdcvar();
void svr_meta(); // only hidden because called from outside!
void cmd_meta_usage();
void cmd_meta_version();
void cmd_meta_gpl();
void cmd_meta_game();
void cmd_meta_refresh();
void cmd_meta_load();
void cmd_meta_pluginlist();
void cmd_meta_cmdlist();
void cmd_meta_cvarlist();
void cmd_meta_config();
void cmd_doplug(PLUG_CMD pcmd);
void client_meta(edict_t *pEntity);
void client_meta_usage(edict_t *pEntity);
void client_meta_version(edict_t *pEntity);
void client_meta_pluginlist(edict_t *pEntity);
void client_meta_aybabtu(edict_t *pEntity);