Gravity

  • tavninder
    24th Aug 2012 Member 4 Permalink

    i was just think that wouldn't it be more useful if you could set the amount of gravity in the game, then you could increase or decrease the gravity depending on you and your save.

  • Uberfatty
    24th Aug 2012 Member 0 Permalink

    That really can be usefull and not hard to code.

  • EqualsThree
    24th Aug 2012 Member 0 Permalink

    I was going to suggest something like this, but it doesn't seem interesting enough (for me), so i'll let you take the lead.

  • nmd
    24th Aug 2012 Member 0 Permalink

    @tavninder (View Post)

    Newtonian gravity.

  • EqualsThree
    24th Aug 2012 Member 0 Permalink

    @nmd (View Post)

    I think he means setting HOW strong something gets pulled without NewtG (The default gravity modes, vertical, radial and off)

     

  • grandmaster
    24th Aug 2012 Member 0 Permalink

    Go make a lua script for it if  you want it, it's probably not that hard

  • tavninder
    24th Aug 2012 Member 0 Permalink

    i don't just want it for me, i would like it to be an option in the next TPT version.

  • grandmaster
    24th Aug 2012 Member 0 Permalink

    @tavninder (View Post)

    Then you can still make a luascript for it cause other people can use it too

  • nmd
    24th Aug 2012 Member 0 Permalink

    @EqualsThree (View Post)

     oh, ok i see.

    @tavninder (View Post)

    yeah, you can make a simple lua script and everyone can use it :D

  • jacob1
    24th Aug 2012 Developer 0 Permalink
    I felt like making this first, so here it is:
    local particles = {"DUST","WATR","OIL","FIRE","STNE","LAVA","GUN","NITR","CLNE","GAS","C-4","GOO","ICE","METL","SPRK","SNOW","WOOD","NEUT","PLUT","PLNT","ACID","VOID","WTRV","CNCT","DSTW","SALT","SLTW","DMND","BMTL","BRMT","PHOT","URAN","WAX","MWAX","PSCN","NSCN","NITR","INSL","VACU","VENT","RBDM","LRBD","NTCT","SAND","GLAS","PTCT","BGLA","THDR","PLSM","ETRD","NICE","NBLE","BTRY","LCRY","STKM","SWCH","SMKE","DESL","COAL","LOXY","OXYG","INWR","YEST","DYST","THRM","GLOW","BRCK","CFLM","FIRW","FUSE","FSEP","AMTR","BCOL","PCLN","HSWC","IRON","MORT","GOL","DLAY","CO2","DRIC","BUBW","STOR","PVOD","CONV","CAUS","LIGH","TESC","DEST","SPNG","RIME","FOG","BCLN","LOVE","DEUT","WARP","PUMP","FWRK","PIPE","FRZZ","FRZW","GRAV","BIZR","BIZG","BIZS","INST","ISOZ","ISZS","PRTI","PRTO","PSTE","PSTS","ANAR","VINE","INVS","EQVE","SPWN2","SPWN","SHLD","SHD2","SHD3","SHD4","LOLZ","WIFI","FILT","ARAY","BRAY","STK2","BOMB","C-5","SING","QRTZ","PQRT","EMP","BREL","ELEC","ACEL","DCEL","TNT","IGNC","BOYL","GEL","TRON","TTAN","EXOT","BRAN","EMBR","HYGN","SOAP","BHOL","WHOL","MERC","PBCN","GPMP","CLST","WIRE","GBMB","FIGH","FRAY","REPL","PPIP"}

    local function changetoname(el) -- changes element number to an element name
    if el == 0 then
    return "X"
    end
    local particle = particles[el]
    if particle == nil then return el
    else return particle
    end
    end

    local i
    local name
    for i = 0, 162 do
    name = string.lower(changetoname(i))
    local element = tpt.el[name]
    if element then
    element.gravity = element.gravity /10
    end
    end


    That first function is from my favorite elements menu lua script. Modify that /10 to change gravity's effect. Something that did it in game (not a lua script) might work better.