What makes PSCN and NSCN work?

  • TheTempest
    27th May 2011 Member 0 Permalink
    I need to know what I would need to do to make two new elements: IPSC and INSC , invincible versions of PSCN and NSCN. But, what do I need to do other than add them into powder.h as PSCN and NSCN that aren't destroyable? What makes them activate/deactivate?
  • Neospector
    27th May 2011 Member 0 Permalink
    I think it's somewhere in Powder.c but I'm not sure which lines.
  • TheTempest
    27th May 2011 Member 0 Permalink
    Oh, ok. I'll look around and see.
  • me4502
    27th May 2011 Member 0 Permalink
    @TheTempest (View Post)
    Sprk.c it's all in there

    Edit-

    And pump.c and lcry.c and anything else that pscn and nscn effect
  • TheTempest
    27th May 2011 Member 0 Permalink
    Oh ok thanks @me4502. So, how do I add my new elements in it? just copy the pscn and nscn codes, but change names to IPSC and INSC? and where would I put it? right under pscn and nscn?

    EDIT: nevermind, I see that you have to add the (if) to each activate-able element, if I copy the codes for pscn and nscn on each elements, add them under the original codes, and stick my elements' names in instead, it should work right?
  • me4502
    27th May 2011 Member 0 Permalink
  • TheTempest
    27th May 2011 Member 0 Permalink
    Ok, thanks.
  • mniip
    27th May 2011 Developer 0 Permalink
    @TheTempest (View Post)
    Yes, i tried to make activable/deactivable element, so i just copied HSWC source and changed a little bit
  • TheTempest
    27th May 2011 Member 0 Permalink
    Yeah, only thing about code::blocks that sucks, no Copy or Paste :|
  • me4502
    27th May 2011 Member 0 Permalink
    @TheTempest (View Post)
    No copy paste???

    I use it all the time with copy paste

    Ctrl-c ctrl-v