Weapon Charms 武器小挂件 趣味内容 游戏性拓展

我不当学长 管理员组 2022-11-29 1050

插件介绍:

  • 此插件可以在武器上显示挂件

注:此插件目前依然后很多问题,请自行判断是否要使用,出了问题可能要找原作者。


效果展示:

特性介绍

对于通用的Source引擎游戏:

  • 支持文本翻译。
  • 支持数据库,用来保存玩家自订的武器挂件
  • 提供选择武器挂件的菜单
  • 为管理员提供更改挂件位置、角度的管理菜单供管理员定位和更改超级按钮角度的菜单。
  • 提供一个仅可显示武器挂件预览的菜单
  • 支持卸载和延迟加载插件。
  • 电脑玩家可以使用随机选择的挂件

CS:GO:

  • 所有武器、燃烧弹、C4、Tablet提供挂件支持Custom charm models positioned for all Weapons, Molotov, C4 and Tablet.
  • 第三人称挂件检视(但是玩家自己改称第三人称的时候看不到自己的挂件)

已知问题(反正看了也不会改):

普遍存在于Source引擎游戏中的问题:

  • 原作者使用“假”viewmodels ,因为原作者不知道如何在遵守viewmodel_fov的情况下绑定骨骼
  • 如果挂件模型缺失的话,可能会导致indexing错误,所以如果你此时修改了pos/ang/size的话,可能会绑定到错误的挂件上去。原作者并没有完全测试,遇到问题的话可以回报给原作者。
  • 有时(极少)装备一个武器的时候,显示的缺失另外一个武器,这个问题原作者还没有找到办法去修复
  • 修改菜单的 XYZ 文字,可能对有些model/view来说,不是那么的精准

CS:GO:

  • 此插件会向客户端发送大约33个models(约1MB)
  • 在以下情况发生时,插件会使用“假”手臂/武器
    • 巴拉巴拉
    • 巴拉巴拉
    • 总之会有很多问题,推荐去看原贴

不兼容的插件: Sm_Skinchooser(不兼容!!!)

CSGO various bugs: this plugin is incompatible with the Sm_Skinchooser plugin, too many different issues to fix, only fix would be real charms attachment.


为武器或者自定义模型添加挂件的方法(小白直接跳过):

CSGO:

  • 下载并安装你需要的挂件模型,在config中已经包含了,同时在models.zip里面已经有了很多模型
  • 使用强制下载插件: SM File/Folder Downloader and Precacher 来让玩家进服的时候下载模型
  • data/charms.data.csgo.cfg中创建一个独一无二的index,index包含挂件的名称name和模型的路径path
  • 从已经提供的Mustachio的例子中(已经配置好了适配所有武器的挂件的位置信息),复制武器的classnames以及data
  • data/charms.weapons.csgo.cfg添加更多的武器classname,来支持更多的武器
  • 武器缺少挂件信息attachment points的话,插件就无法工作,请下载CSGO - SDK(可能对于小白来说根本不用管,反正也看不懂),然后使用Model Viewer去打开models,然后看这些模型的 attachment point 的名字names
  • data/charms.data.csgo.cfg添加你自己的新武器的classname entry,这样可以支持你想要的新挂件,请遵照上面的方法,复制所有的positions信息挂件。
  • Info about the keys:
- "attach_1": First person attachment point (usually name "1" or "2" for most models). When shooting sometimes the charm freezes, use "2" or other attachment point.
- "attach_2": Third person view attachment point. Since detecting current view in CS:GO doesn't work, you might want to comment out the "Hook_SetTransmitWorld" section and recompile the plugin to test positions.
- "default": Signals this charm will be default for the weapon classname when clients have no saved preferences.
- "vpos_1" and "vang_1" etc: Use sm_charm_edit [1 or 2] command to modify charm position and angles for 1st or 3rd person view.
- "bonemerge": Specifying a bone name which exists on both the weapon viewmodel and charm will use bonemerge attachment without having to manually position and use attachment points.

使用方法:

命令:

  1. sm_charm    // 显示挂件菜单Shows the Charms menu. Alternative usage: sm_charm [charm index] or 0 to remove.
  2. sm_charms   // 显示挂件武器菜单

管理员命令(需要有ADMIN权限 flag z):

  1. sm_charm_reload   // Reload the Charms config.
  2. sm_charm_edit     // Usage: sm_charm_edit <type>. 1=First person. 2=Third person. Enables editing pos/ang/size.
  3. sm_charm_ang      // Shows a menu allowing you to adjust the charm angles.
  4. sm_charm_pos      // Shows a menu allowing you to adjust the charm position.
  5. sm_charm_size     // Shows a menu allowing you to adjust the charm size.
  6. sm_charm_save     // Saves the data config. Suggest saving after editing each charm, either via menu or command. 

Convars:

路径:cfg/sourcemod/charms.cfg

// 0=Plugin off. 1=Plugin on.
charms_allow "1"

// 0=Plugin off, 1=Plugin on.
charms_bots "1"

// 0=None. 1=Give default charms to new players (search for default in the charms.data config).
charms_default "1"

// L4D/2 only: 0.0=Off. How often to check if a players in first or third person view to show/hide the correct Charm.
charms_check "0.2"

// Weapon Charms plugin version.
charms_version 

插件依赖(必须安装!!):

  1. All games: Attachment_API plugin.

安装方法:


All games:
  1. 下载 charms.zip ,然后解压到服务器 \addons\sourcemod\ 目录.
  2.  \addons\sourcemod\configs\databases.cfg 文件设置数据库 "charms" .
    (you can duplicate "clientprefs" section changing the name to "charms" since SQLite is supported, or duplicate and rename an existing external database entry since MySQL is supported too).
  3. 在你的MySQL服务器中,自己创建一个新的数据库“charms”。For those using MySQL and not clientprefs you have to login to phpMyAdmin or whatever you use to maintain your database and create a new database entry named "charms".

CS:GO:
  • 下载 charms_models.zip 然后解压到服务器的 \materials\ and \models\ 文件夹
  • 更多自定义的挂件模型,可以去 GameBanana 找。thanks to "CZE|EMINEM" and "CrazySkull2k" for creating.
  • 必须使用强制下载插件 SM File/Folder Downloader and Precacher to serve custom charm models to clients (file paths can be found in the .txt file in the archives).
FastDL:
  • 复制\csgo\models\weapons\silvershot\ 文件夹到你的FastD服务器
  • 复制 \viewmodels\ 到你的FastD服务器
  • 复制 \charms\ 到你的FastD服务器

下载地址:

charms_models.zip:

charms.zip

依赖插件:Attachments API

参考:


CSGO插件分享-申明 1、本网站名称:CSGO插件分享-中文站  网址:https://bbs.csgocn.net
2、本站的宗旨在于为CSGO玩家提供一个插件分享的中文资源平台,多数插件来源于SourceMod论坛,并配以中文介绍和安装教程。
3、欢迎有能力的朋友共享有趣的CSGO插件资源。
4、本站资源大多为百度网盘,如发现链接失效,可以点: 这里进行反馈,我们会第一时间更新。
最新回复 (6)
返回