mirror of
https://github.com/rehlds/metamod-r.git
synced 2025-01-05 19:45:46 +03:00
45 lines
1.2 KiB
C
45 lines
1.2 KiB
C
|
#pragma once
|
||
|
|
||
|
#include "types_meta.h" // mBOOL
|
||
|
#include "comp_dep.h"
|
||
|
|
||
|
// 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.
|
||
|
typedef enum {
|
||
|
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
|
||
|
} PLUG_CMD;
|
||
|
|
||
|
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);
|