Modding Help Trying to remove water movement physics

Discussion in 'Starbound Modding' started by Matt Jones, Jun 29, 2017.

  1. Matt Jones

    Matt Jones Orbital Explorer

    I'm in the process of creating a Metroid Prime mod, and I'm trying to replicate the Gravity Suit's function of restoring normal movement in water. I've tried using the waterImmunity status effect, which *should* simply stop the player from entering the swim state(as per looking at the code), but it doesn't do anything when added to the list of statusEffects on the armor. How would I go about removing swimming via a status effect?

    EDIT: I just realized that the swimming status effect is actually just handling the bubble particles, and has nothing to do with the actual state of swimming. Still have no clue how to get this done though...


    { "itemName" : "gravitysuitpants",
    "price" : 2560,
    "inventoryIcon" : "icons.png:pants",
    "maxStack" : 1,
    "rarity" : "Legendary",
    "category" : "legarmour",
    "description" : "Provides protection from fall damage, increases jump height, removes liquid physics, and removes slow-type debuffs.",
    "shortdescription" : "Gravity Suit Pants",
    "tooltipKind" : "armor",

    "maleFrames" : "pants.png",
    "femaleFrames" : "pants.png",

    "level" : 6,
    "leveledStatusEffects" : [
    { "levelFunction" : "separatorArmorLevelPowerMultiplierMultiplier",
    "stat" : "powerMultiplier",
    "baseMultiplier" : 1.1 },
    { "levelFunction" : "separatorArmorLevelProtectionMultiplier",
    "stat" : "protection",
    "amount" : 0.2 },
    { "levelFunction" : "separatorArmorLevelMaxEnergyMultiplier",
    "stat" : "maxEnergy",
    "amount" : 2 },
    { "levelFunction" : "separatorArmorLevelMaxHealthMultiplier",
    "stat" : "maxHealth",
    "amount" : 2 }
    ],

    "statusEffects" : [
    "nofalldamage",
    { "stat" : "wetImmunity",
    "amount" : 1 },
    { "stat" : "iceStatusImmunity",
    "amount" : 1 },
    { "stat" : "slimeImmunity",
    "amount" : 1 },
    { "stat" : "sandstormImmunity",
    "amount" : 1 },
    { "stat" : "tarStatusImmunity",
    "amount" : 1 },
    "swimboost",
    "jumpboost"
    ],

    "itemTags" : [ "tier6armour" ],
    "colorOptions" : [ // BLACK { "ffca8a" : "838383", "e0975c" : "555555", "a85636" : "383838", "6f2919" : "151515" }, // BLACK { "ffca8a" : "838383", "e0975c" : "555555", "a85636" : "383838", "6f2919" : "151515" }, // GREY { "ffca8a" : "b5b5b5", "e0975c" : "808080", "a85636" : "555555", "6f2919" : "303030" }, // WHITE { "ffca8a" : "e6e6e6", "e0975c" : "b6b6b6", "a85636" : "7b7b7b", "6f2919" : "373737" }, // RED { "ffca8a" : "f4988c", "e0975c" : "d93a3a", "a85636" : "932625", "6f2919" : "601119" }, // ORANGE { "ffca8a" : "ffd495", "e0975c" : "ea9931", "a85636" : "af4e00", "6f2919" : "6e2900" }, // YELLOW { "ffca8a" : "ffffa7", "e0975c" : "e2c344", "a85636" : "a46e06", "6f2919" : "642f00" }, // GREEN { "ffca8a" : "b2e89d", "e0975c" : "51bd3b", "a85636" : "247824", "6f2919" : "144216" }, // BLUE { "ffca8a" : "96cbe7", "e0975c" : "5588d4", "a85636" : "344495", "6f2919" : "1a1c51" }, // PURPLE { "ffca8a" : "d29ce7", "e0975c" : "a451c4", "a85636" : "6a2284", "6f2919" : "320c40" }, // PINK { "ffca8a" : "eab3db", "e0975c" : "d35eae", "a85636" : "97276d", "6f2919" : "59163f" }, // BROWN { "ffca8a" : "ccae7c", "e0975c" : "a47844", "a85636" : "754c23", "6f2919" : "472b13" } ] }
     
    Last edited: Jun 29, 2017

Share This Page