mszguns
Adds guns to the game using a modular system that makes adding your own easy
截圖 共 2 張
模組介紹 作者原文
mszak47
A MelonLoader mod that adds guns to Miside Zero, built on top of InventoryFramework. Guns are defined as folders containing a config file and assets, no code is required to add new ones.
Features:
- Modular gun system requiring no scripting
- Optional Photon multiplayer through Multiside
Currently comes with these three guns:
Multiplayer roadmap
- ✅ Selected gun syncing
- ✅ Shot syncing + audio
- ❌ ADS syncing
- ❌ Gun pitch (up down) syncing (Requires to be implemented in Multiside)
- ❌ Health system
Installation
Install the latest release manually or using a tool like mod manager.
Build + file setup
This section has been removed for readability, see it here:
Creating a Gun
Each gun lives in its own subfolder inside Mods/mszguns. The folder must contain a gun.json file. All other files are discovered automatically if you follow the naming conventions below.
Folder Structure
mszguns/
my_gun/
gun.json
model.glb ← gun model (GLB format)
shot.wav ← gunshot audio (.wav or.mp3)
icon.png ← inventory icon
hole.png ← bullet hole texture (optional, only if you wish to override it)
File names are flexible, the loader will find them as long as they have the right extension. You only need to set the file fields in gun.json if you want to use non-default names.
gun.json
{
"Id": "my_gun",
"DisplayName": "My Gun",
"FireRate": 0.1,
"AudioVolume": 0.5,
"Damage": 10.0,
"Range": 100.0,
"AdsSpeed": 0.2,
"AdsFov": 50.0,
"RecoilKickDuration": 0.05,
"RecoilRecoverDuration": 0.15,
"BulletHoleDuration": 10.0,
"NormalPosition": [0.3, -0.3, 0.5],
"AdsPosition": [0.0, -0.15, 0.4],
"NormalAngle": [0.0, 0.0, 0.0],
"RecoilAngle": [-5.0, 0.0, 0.0],
"Effect": "Normal"
}
All fields are optional and will fall back to defaults if omitted.
Fields
| Field | Type | Default | Description |
| ----------------------- | -------- | ------------------------------------------- | ---------------------------------------------------------------- |
| Id | string | folder name | Unique identifier. Inferred from the folder name if not set. |
| DisplayName | string | "" | Name shown in the inventory label. |
| ModelFile | string | first.glb in folder | Path to the GLB model file. |
| AudioFile | string | first.wav.mp3 in folder | Path to the gunshot audio file. |
| IconFile | string | icon.* or first.png | Path to the inventory icon. |
| HoleFile | string | hole.* in folder, then mszguns/hole.png | Path to the bullet hole texture. |
| FireRate | float | 0.1 | Seconds between shots when holding fire. |
| AudioVolume | float | 0.5 | Gunshot audio volume (0–1). |
| Damage | float | 10.0 | Damage per shot. (Currently unused, reserved for future use.) |
| Range | float | 100.0 | Raycast range in units. |
| AdsSpeed | float | 0.2 | Time in seconds to transition to/from ADS. |
| AdsFov | float | 50.0 | Field of view while aiming down sights. |
| RecoilKickDuration | float | 0.05 | Time to reach the recoil angle on fire. |
| RecoilRecoverDuration | float | 0.15 | Time to return to the normal angle after recoil. |
| BulletHoleDuration | float | 10.0 | Seconds before a bullet hole starts fading. |
| NormalPosition | float[3] | [0, 0, 0] | Local position of the gun relative to the camera when hipfiring. |
| AdsPosition | float[3] | [0, 0, 0] | Local position when aiming down sights. |
| NormalAngle | float[3] | [0, 0, 0] | Local euler angles when hipfiring. |
| RecoilAngle | float[3] | [0, 0, 0] | Local euler angles at peak recoil. |
| Effect | string | "Normal" | Shot effect. See below. |
Shot Effects
| Value | Description |
| --------- | ------------------------------------------------------------------------- |
| Normal | Single raycast shot. Spawns a bullet hole on hit. |
| Shotgun | 8 raycasts with random spread. Spawns a bullet hole per pellet that hits. |
| Cube | Spawns a physical cube projectile that flies forward. No bullet holes. |
More effects are planned.
Co
安裝與使用 安裝:按包內說明操作
- 解壓本站下載的壓縮包,先讀包內的 readme / 說明檔案。
- 多數模組依賴遊戲的模組載入器:常見做法是用社群模組管理器(如 r2modman)選中本遊戲安裝,由管理器自動處理載入器與依賴。
- 手動安裝時,把模組檔案放進遊戲目錄下對應的 Mod / plugins 資料夾。
- 啟動遊戲確認載入成功;帶「前置依賴」的模組需要把依賴一併安裝。
不同模組的安裝位置差異較大,包內說明是最可靠的依據。
下面這些內容需要先安裝,否則該模組不會生效: