New Element - PDCL (Powdered Clone)

  • PowderChallenge
    14th Apr 2014 Member 2 Permalink

    Name: PDCL

    Full Name: Powdered Clone

    Description: Just a form of clone that behaves like a powder instead of a solid. Nothing too complicated.

    Why?: BCLN is destroyed when it breaks, and doesn't behave in a powder-like manner. This would fill that role. This element won't add loads and loads of new functionality, but can be used for interesting things like creating particle tracers outside of persistent mode and moving regenerating liquid bodies. Plus it would be easy to implement.

  • boxmein
    14th Apr 2014 Former Staff 0 Permalink
    (That's not simple enough. elements.element() doesn't copy update functions! :( )

    local el = elem.allocate("PowderChallenge", "PWCL")
    elem.element(el, elem.element(elem.DEFAULT_PT_CLNE))
    elem.partProperty(el, "Name", "PWCL")
    elem.partProperty(el, "Description", "Powdered Clone!")
    -- anything else a True Powder™ needs?
    elem.partProperty(el, "Diffusion", 0.25)
    elem.partProperty(el, "Falldown", 1)
    elem.partProperty(el, "Gravity", 0.5)
    elem.partProperty(el, "Collision", -0.1)
    elem.partProperty(el, "Loss", 0.95)

    elem.partProperty(el, "MenuSection", elem.SC_POWDERS)


    Edited once by boxmein. Last: 15th Apr 2014
  • NF
    14th Apr 2014 Member 0 Permalink

    @PowderChallenge (View Post)

     I agree with you. Why does BCLN do this?

     

     

    Edited once by NUCLEAR_FOX. Last: 14th Apr 2014
  • Amy
    15th Apr 2014 Member 0 Permalink

    @NUCLEAR_FOX (View Post)

     Because it does. xD

     

    Well the whole point of BCLN is that it can be destroyed. If it just turns into a powdered form, its still creating, and still exists.

     

    @boxmein (View Post)

     

    That code wouldn't ever work. Just because you base something off of CLNE doesn't mean it aoutomatically BECOMES CLNE except for the modified bits. Right now all you have is a CLNE colored powder. It would require quite the update function...

    Edited once by Amy. Last: 15th Apr 2014
  • h4zardz1
    15th Apr 2014 Member 0 Permalink
    @PowderChallenge (View Post)
    if PDCN exists, PDBC (powdering breakable clone, breaks to PDCN like BMTL breaks to BRMT) must exists too.
    @boxmein (View Post)
    copy the code of the CLNE.
  • boxmein
    15th Apr 2014 Former Staff 0 Permalink
    @Amy (View Post)
    It _should_ also clone the update function. In the event that it doesn't however, I'll reproduce CLNE's update function :c
    Edited once by boxmein. Last: 15th Apr 2014
  • Amy
    16th Apr 2014 Member 0 Permalink

    @boxmein (View Post)

     Yeah i tested it. If you want it to work it'll have to be remade.