插件开发

confoglcompmod:对抗竞技核心框架

Confogl 竞技模组:cvar 强制、物品限制、客户端设置检查,全部对抗配置的地基。

L4D2 对抗竞技的祖师级框架:按模式配置强制 cvar、限制武器道具、检查客户端设置,保证比赛环境一致。Anne 的各对抗模式(ZoneMod/Acemod/NextMod 等 cfgogl 配置)都构建在它之上。

常用

  • !cvardiff 查看被改动的 cvar;!clientsettings 查看强制的客户端设置。
  • 服务器配置用 confogl_addcvar / confogl_setcvars 等指令定义规则。

文件位置

项目路径
插件文件plugins/confoglcompmod.smx
源码addons/sourcemod/scripting/confoglcompmod.sp

命令一览

命令类型权限说明
confogl_addcvar服务器配置-Add a ConVar to be set by Confogl
confogl_clientsettings玩家/控制台-List Client settings enforced by confogl
confogl_cvardiff玩家/控制台-List any ConVars that have been changed from their initialized values
confogl_cvarsettings玩家/控制台-List all ConVars being enforced by Confogl
confogl_midata_save管理员ADMFLAG_CONFIG
confogl_resetclientcvars服务器配置-Remove all tracked client cvars. Cannot be called during matchmode
confogl_resetcvars服务器配置-Resets enforced ConVars. Cannot be used during a match!
confogl_save_location管理员ADMFLAG_CONFIG
confogl_setcvars服务器配置-Starts enforcing ConVars that have been added.
confogl_startclientchecking服务器配置-Start checking and enforcing client cvars tracked by this plugin
confogl_trackclientcvar服务器配置-Add a Client CVar to be tracked and enforced by confogl
sm_bonus玩家/控制台-
sm_fchmatch管理员ADMFLAG_CONFIGForces the match to be changed
sm_fm管理员ADMFLAG_CONFIGForces the game to use match mode
sm_forcechangematch管理员ADMFLAG_CONFIGForces the match to be changed
sm_forcematch管理员ADMFLAG_CONFIGForces the game to use match mode
sm_health玩家/控制台-
sm_killlobbyres管理员ADMFLAG_BANForces the plugin to kill lobby reservation
sm_resetmatch管理员ADMFLAG_CONFIGForces match mode to turn off REGRADLESS for always on or forced match

聊天中输入 !命令名(去掉 sm_ 前缀)等价于控制台命令。