Skip to content

An open-source weapon editor for Modern Warfare: Cubed!

License

Notifications You must be signed in to change notification settings

Cubed-Development/PWEM

Repository files navigation

Panda's Weapon Editor Mod

An open-source weapon editor for Modern Warfare: Cubed!


What is this mod?

Panda's Weapon Editor Mod is an open-source weapon editor for Modern Warfare: Cubed. It allows you to modify existing weapons from Modern Warfare Cubed (a free and open-source fork of Vic's Modern Warfare - check it out if you're not currently using it!).

  • It will create a new folder in the config/mwc directory called pwem (Panda's Weapon Editor Mod) where all of your custom weapons will be stored.
  • Each weapon will have its own .json file, which you can edit to your liking.

Weapon Configuration

Here's a default configuration file for the AACHoneyBadger, and I will walk you through how to make your changes!

  • Please note that there will be a lot more detail provided on our Wiki page for this GitHub repository. If you have additional questions, contact us on Discord (linked above).
{
    "stats": {
        "damage": 5.4,
        "fireRate": 0.8,
        "recoil": 3.0,
        "gravity": 0.0118,
        "zoom": 0.9,
        "group": "RIFLES"
    },
    "shooting": {
        "single": true,
        "burst": 0,
        "auto": true
    },
    "sound": {
        "shoot": "aac_honeybadger",
        "silencedShoot": "aac_honeybadger",
        "reload": "honeybadger_reload",
        "unload": "honeybadger_unload",
        "endOfShootSound": "gun_click",
        "inspect": "m4a1_inspection",
        "draw": "m4_draw"
    }
}

Stats

  • damage - The amount of damage the weapon will do.
  • fireRate - The rate of fire for the weapon.
  • recoil - The amount of recoil the weapon will have.
  • gravity - The amount of gravity the bullet will have while in the air (the higher the number, the more gravity).
  • zoom - The amount of zoom the weapon will have when aiming down sights.
  • group - The group the weapon will be in. This is shown in the gun's tooltip.

Shooting

  • single - Whether or not the weapon can shoot in single fire mode.
  • burst - The amount of bullets the weapon will shoot in burst fire mode (0 to disable).
  • auto - Whether or not the weapon can shoot in automatic fire mode.

Sound

  • shoot - The sound the weapon will make when shooting.
  • silencedShoot - The sound the weapon will make when shooting with a silencer.
  • reload - The sound the weapon will make when reloading.
  • unload - The sound the weapon will make when unloading.
  • endOfShootSound - The sound the weapon will make when it's out of ammo.
  • inspect - The sound the weapon will make when inspecting.
  • draw - The sound the weapon will make when drawing.

Client & Server Sided!

This mod is both client and server sided, meaning that you can use it on your server and clients will be able to join without having to install the mod themselves.

  • Ensure you provide the config/mwc/pwem folder to your clients so that they can see the custom weapon statistics.

How do I contribute?


Anyone and everyone is welcome to contribute and help out with the project! If you're interested in building the project, the instructions are below.

To contribute, please read the contributing guide.