left4dhooks:L4D2 API 层
Silvers 维护的核心依赖:暴露引擎函数与事件给其他插件。
Silvers 维护的 L4D1/2 核心依赖库:通过 gamedata 签名把引擎内部函数、导演状态、玩家动作暴露成 SourceMod native/forward。Anne 服几乎所有特感 AI、刷特、武器属性插件都依赖它。
提示
升级游戏版本后若签名失效,特感/刷特类插件会连锁报错——先更新 left4dhooks 的 gamedata。自带少量调试命令(sm_l4dd* 系列,ADMFLAG_ROOT)。
文件位置
| 项目 | 路径 |
|---|---|
| 插件文件 | plugins/left4dhooks.smx |
| 源码 | addons/sourcemod/scripting/left4dhooks.sp |
命令一览
| 命令 | 类型 | 权限 | 说明 |
|---|---|---|---|
sm_l4dd_detours | 管理员 | ADMFLAG_ROOT | Lists the currently active forwards and the plugins using them. |
sm_l4dd_reload | 管理员 | ADMFLAG_ROOT | Reloads the detour hooks, enabling or disabling depending if they're required by other plugins. |
sm_l4dd_unreserve | 管理员 | ADMFLAG_ROOT | Removes lobby reservation. |
sm_l4dhooks_detours | 管理员 | ADMFLAG_ROOT | Lists the currently active forwards and the plugins using them. |
sm_l4dhooks_reload | 管理员 | ADMFLAG_ROOT | Reloads the detour hooks, enabling or disabling depending if they're required by other plugins. |
聊天中输入 !命令名(去掉 sm_ 前缀)等价于控制台命令。