Greasy Fork镜像 还支持 简体中文。

Barclay's Library

Import whatever model URLs you need - library that does the heavy lifting

目前為 2025-02-09 提交的版本,檢視 最新版本

此腳本不應該直接安裝,它是一個供其他腳本使用的函式庫。欲使用本函式庫,請在腳本 metadata 寫上: // @require https://update.gf.qytechs.cn/scripts/526336/1534151/Barclay%27s%20Library.js

作者
onlypuppy7
版本
1.0.2
建立日期
2025-02-09
更新日期
2025-02-09
尺寸
8.9 KB
授權條款
未知

# Barclay's Shell Model Injector

> built by onlypuppy7, based off LibertyMutual's code
> [> repository link](https://github.com/onlypuppy7/BarclaysShellShockers)

## How to use

### **Grab the game's original model files as reference.**

> NOTE: The old URLs for models are OUTDATED!
>
> Going to simply /models/\[model\].glb will only give you the default models.
>
> You must go to /models/full/ links.
>
> Examples:
>
> https://shellshock.io/models/full/egg.glb
> https://shellshock.io/models/full/gun_m24.glb

### **Create models in Blender with names that overwrite the original's.**

> They MUST match.

### **Upload to some file hoster.**

> GitHub usually works best for this type of thing.

### **Add the link to the arrays at the beginning of the script.**

> You can add multiple models if desired, as well as many URLs as you like. The order of execution is from first to last, so GLBs that have models that target the same meshes as ones prior will overwrite the previous data.

## As a library

Add this line to the userdata meta, it will initiate the Barclay's library.

```
// @require https://update.gf.qytechs.cn/scripts/526336/1534125/Barclay%27s%20Library.js
```

> If you don't like the idea of adding that, or you have an environment where you can't add libraries, then the code from the link can safely just be inserted into your code.

Then, to set the script's models add this:

```js
BARCLAYS.modelURLs = [
"https://link.to.file/model.glb",
];
```

After this, you need to decide how you want the script injecting. If you want to let Barclay's inject itself, add this:

```js
BARCLAYS.init();
```

Otherwise, you can pass in the game's js from your own injection mechanism, for example like this:

```js
js = BARCLAYS.applyBarclays(js);
```

Optionally, if you need to reinject models or such you can run this:

```js
BARCLAYS.replaceModels([
"https://link.to/your/model.glb",
]);
```

## FAQ

### Oh my god, onlypuppy7 made this! It's hacks and virus and a malware!

Please find a bathroom to do your business, because you appear to be full of shit.

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址