视频教程:Contagion传染病 插件安装与使用
方法源于官方:点击查看
这款游戏已经舍弃了sourcemod改用AngelScripts且服务端自带相关插件脚本,
脚本安装目录路径:
- D:\steamcmd\steamapps\common\Contagion\contagion\data\scripts\plugins
复制代码
安装加载方法:加载插件脚本的方法一共有2种,
1.
路径文件:default_plugins.json
- D:\steamcmd\steamapps\common\Contagion\contagion\default_plugins.json
复制代码 修改
- {
- "plugins": [
- {
- "script": "YourCoolPlugin.as"
- }
- ]
- }
复制代码
2.
使用- D:\steamcmd\steamapps\common\Contagion\contagion\cfg\server.cfg
复制代码
或对于特定的游戏模式,
- D:\steamcmd\steamapps\common\Contagion\contagion\cfg\gamemodes\
复制代码 这种是针对什么模式下添加插件,
加载插件参数:
- as_loadplugin "YourCoolPlugin.as"
复制代码
卸载插件参数:
- as_unloadplugin "YourCoolPlugin.as"
复制代码
我自己使用的是第二种方法,2种方法都用过,我不清楚为什么第一种方法在使用过一段时间后就失效了,
所以我改用了第二种方法
|