Multiplayer Modular Weapon System
Multiplayer Modular Weapon System
Introduction
Welcome to the Multiplayer Modular Weapon System, an add-on that brings the Modular Weapon System and the Modular Health System online with Netcode for GameObjects.
The server decides every hit and every health change, so it works for co-op and for PvP without trusting the clients. Your weapons don’t change: you add a few network components to your prefabs and they work in multiplayer.
π§ Key Features
NetworkWeaponsyncs the active weapon, barrel, magazine and trigger. The owner fires right away, and other players see the same shotsNetworkHealthlets only the server change health, while clients still show hits and death effectsNetworkAutoSpawnspawns projectiles, drops and effects on the network from a plainInstantiate- Works with
Weapon,DualWeapon,UpgradableWeaponand any barrel, magazine or firing mode - A lobby with a session list, using Unity Multiplayer Services (Lobby and Relay)
- Two multiplayer examples: co-op Duck Shooter and the Blueprint weapons for up to 8 players
π What Can You Build?
- Co-op shooters where every player has their own upgradable weapon
- PvP arenas where the server decides who got hit
- Networked projectiles, rockets and explosions
π¨βπ» Who Is This For?
Unity developers who already use the Modular Weapon System and want to take their weapons online, without writing the networking for each weapon themselves.