Skip to content

Add Gas Grenades#10398

Merged
MaxIsJoe merged 7 commits intounitystation:developfrom
AutumnNova:grenadestuff
Jun 15, 2024
Merged

Add Gas Grenades#10398
MaxIsJoe merged 7 commits intounitystation:developfrom
AutumnNova:grenadestuff

Conversation

@AutumnNova
Copy link
Contributor

Notes:

Basically just a grenade with an internal tank that dumps it onto the tile its on
Very useful for rapidly refilling a room lacking atmos (or filling a room that has atmos with whatever terrible gas you want)
Filled (or refilled) by inserting into a gas canister just like you would an oxygen tank
Adds 2 empty ones that spawn in the EngiVend on roundstart
Comes with a colored overlay that changes depending on the contents of the grenade
2024-06-14-17:48:53
(From left to right, Tritium, CO2, Plasma, Oxygen)

Also adds a way to prevent gas containers from being used as a source of gas for gasmasks, because you really shouldnt be hooking up a grenade to your gasmask

Changelog:

CL: [New] Adds grenades that can be filled with any gas.

@AtnerNT
Copy link
Contributor

AtnerNT commented Jun 14, 2024

Could you add the empty variant to the autolathe? Would be nice to be able to manufacture more.

@MaxIsJoe
Copy link
Contributor

To add it to the autolathe, just go to one of the designs json file in StreamingAssets and add a new entry; like this:

 {
        "Internal_ID": "largecrossbow",
        "Description": "A reverse-engineered energy crossbow favored by syndicate infiltration teams and carp hunters.",
        "Category": [
            "Weapons"
        ],
        "Materials": {
            "Metal": 5000,
            "Glass": 1500,
            "Uranium": 1500,
            "Silver": 1500
        },
        "Machinery_type": [
            "ProtoLathe"
        ],
        "Compatible_machinery": [
            "Security"
        ],
        "name": "Energy Crossbow",
        "Item_ID": "/obj/item/weapon/gun/energy/kinetic_accelerator/crossbow/large"
    }

Item ID is always usually the GUID in the prefab tracker component of a prefab.

@AtnerNT
Copy link
Contributor

AtnerNT commented Jun 14, 2024

To add it to the autolathe, just go to one of the designs json file in StreamingAssets and add a new entry; like this:

The autolathe actually just references the prefabs directly as it isnt part of the techweb. Design files are only needed for machines that use the techweb

@MaxIsJoe
Copy link
Contributor

in that case ignore that part and just add its prefab directly to it (not sure what that list is)

@AtnerNT
Copy link
Contributor

AtnerNT commented Jun 14, 2024

ScriptableObjects/Machines/AutolatheProducts

@AutumnNova
Copy link
Contributor Author

Costs 500 metal and 50 glass, takes 5 seconds to make

@MaxIsJoe MaxIsJoe merged commit 889658b into unitystation:develop Jun 15, 2024
@AutumnNova AutumnNova deleted the grenadestuff branch June 30, 2024 01:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Comments