Modding Help Planing a Capture Pod tweak

Discussion in 'Starbound Modding' started by LazerRay, Jan 20, 2017.

  1. LazerRay

    LazerRay Cosmic Narwhal

    Does anyone know what files control how the capture pods work, specifically the files related to how much health a creature has left before the pods work on them?

    I'm running into a situation where I one-shot a lot of mobs with tier 5 weapons, making me unable to actually capture creatures (I bet a lot of other players are having similar problems with capture pods), I would like to solve this with a tweak.
  2. geckobud

    geckobud Master Chief

    It sounds like the file you're looking for is /scripts/companions/capturable.lua, which has this section:

      local captureHealthFraction = config.getParameter("captureHealthFraction", 0.5)
      local healthFraction = status.resource("health") / status.resourceMax("health")
      if healthFraction > captureHealthFraction then
        return false

Share This Page