ETRD like Element?

  • Vanadium
    12th Oct 2010 Member 0 Permalink
    I am trying to find the code for electrode that says it shoots plasma to another lot of ETRD to make my own element lie that, but i cant find the code
  • Xenocide
    12th Oct 2010 Former Staff 0 Permalink
    search for either nearest_part or nearestp (cant remember which) its around one of those
  • Vanadium
    12th Oct 2010 Member 0 Permalink
    thanks it doesnt say PLSM anywhere in that code though. i want to send THDR
  • DucTape
    12th Oct 2010 Member 0 Permalink
    if(t==PT_SPRK&&parts[i].ctype==PT_ETRD&&parts[i].life==1)
    {
    nearp = nearest_part(i, PT_ETRD);
    if(nearp!=-1)
    {
    create_line((int)parts[i].x, (int)parts[i].y, (int)parts[nearp].x, (int)parts[nearp].y, 0, PT_PLSM);
    t = parts[i].type = PT_ETRD;
    parts[i].ctype = PT_NONE;
    parts[i].life = 20;
    parts[nearp].type = PT_SPRK;
    parts[nearp].life = 9;
    parts[nearp].ctype = PT_ETRD;
    }
    }


    in powder.c


    EDIT: Replace the PT_PLSM with PT_THDR to send thunder
  • Xenocide
    12th Oct 2010 Former Staff 0 Permalink
    all i can remember is theres the nearest function then somewhere near it is a create_line or similar, just keep searching.

    EDIT: snipered lol
  • Vanadium
    12th Oct 2010 Member 0 Permalink
    thanks heaps guys