WeaponsManager
A library to help mod developers to add additional guns to the player.
模組介紹 作者原文
Weapons Manager
A library to help mod developers to add additional guns to the player. Guns added by this mod can be swapped between using Q/E or R/L DPad. While inactive, a gun will reload slowly.
Usage Guide for Developers:
- Import the included unitypackage into your Unity project.
- Modify one of the included gun prefabs to met your needs.
- The ExampleGun is set up to be modified the same way you'd modify a card. WeaponBase is a replica of the vanilla gun. They should be used with the Apply Card Stats bool enabled/disabled respectively.
- If you're using asymmetrical textures, you can use the included LeftRightScale script to cause them to mirror properly.
- Shoot Position determines the angle of the bullet fired, not the position.
- Important: Do not modify the two included objects. The forces applied to keep the gun in place in multiplayer are calculated specifically for the gun's physics.
- Attach the ManagedWeaponAdder script to your card's object.
- Attach your gun to the script
- Set the parameters
- Turning the apply card stats toggle on will make the player's current cards and all future cards apply to the gun
- The Inactive Reload Time Multiplier changes how quickly your gun reloads while inactive
- Add an icon for your weapon
- Use the included template for reference.
- This icon can easily be the same as a FancyCardBar icon
- Add a name for your weapon
- This is used in the UI to help identify your gun.
安裝與使用 安裝:BepInEx 外掛
- 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
- 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
- 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
- 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。
帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。
前置依賴
下面這些內容需要先安裝,否則該模組不會生效:
Pykess-ModdingUtilswillis81808-UnboundLib