插件开发

l4d2_damage_show:伤害数字 HUD

打特感冒伤害数字,偏好存数据库跨服漫游。

l4d2_damage_show 在命中时显示浮动伤害数字(Damage HUD)。每个玩家的开关与样式偏好优先存 MySQL(DB-first),退化到 cookie,换服务器也能保留设置。

它做什么

  • 命中特感/生还者时显示伤害数字。
  • !dmgmenu 打开个人设置菜单(开关、样式)。
  • 可配置哪些管理 flag 才能使用(sm_dmg_allowed_flags,留空全员可用)。

文件位置

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

命令一览

命令类型权限说明
sm_dmgcookie管理员Admin_GenericDump cookie & current settings
sm_dmgdbprobe管理员Admin_GenericOne-shot sync DB probe
sm_dmgdbstat管理员Admin_GenericShow DB status & session charset
sm_dmgforcesavecookie管理员Admin_GenericForce save current settings to cookie
sm_dmgmenu玩家/控制台-打开伤害数字设置菜单

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