插件开发

readyup:对抗准备就绪系统

回合开跑前全员准备确认,!ready / !unready,管理员可强制开始。

readyup 是对抗/竞技模式的标配:回合开始前冻结所有玩家,等两队都确认准备完毕再放行。Anne 用的是带便利性修复的版本。

它做什么

  • 回合前显示准备面板,实时展示各队准备状态。
  • 玩家用命令切换准备状态,卡住时可传送回出生点。

文件位置

项目路径
插件文件plugins/optional/readyup.smx
源码addons/sourcemod/scripting/optional/readyup.sp
更新源清单Anne_Updater_All.txt(公开)

命令一览

命令类型权限说明
sm_forcestart管理员ADMFLAG_BANForces the round to start regardless of player ready status.
sm_fs管理员ADMFLAG_BANForces the round to start regardless of player ready status.
sm_hide玩家/控制台-Hides the ready-up panel so other menus can be seen
sm_nr玩家/控制台-Mark yourself as not ready if you have set yourself as ready
sm_r玩家/控制台-Mark yourself as ready for the round to go live
sm_ready玩家/控制台-Mark yourself as ready for the round to go live
sm_return玩家/控制台-Return to a valid saferoom spawn if you get stuck during an unfrozen ready-up period
sm_show玩家/控制台-Shows a hidden ready-up panel
sm_toggleready玩家/控制台-Toggle your ready status
sm_unready玩家/控制台-Mark yourself as not ready if you have set yourself as ready

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

提示

看菜单被面板挡住时用 !hide 暂时隐藏面板,!show 恢复。管理员 !fs(forcestart)无视准备状态强制开始(ADMFLAG_BAN)。