Explosiveness set by temperature

  • cctvdude99
    7th Sep 2011 Member 0 Permalink
    I have tried this before, but all attempts failed.
    I am wondering if setting whether something is explosive or not in the .c file, dependant on temperature, is possible.
    Anyone got any ideas?
  • PizzaPlatypus
    7th Sep 2011 Member 0 Permalink
    write the code for the explosion but before it add
    if (parts[i].temp=whatever temp you want it to be able to explode at +273.15 f)
  • cctvdude99
    7th Sep 2011 Member 0 Permalink
    @PizzaPlatypus
    I tried that, I tried setting testexp as the explosiveness with that, and putting testexp where the explosiveness value should be (powder.h), but I need a way of linking the test.c and powder.h if I do it like that. I am a beginner at coding, so I have nooo idea. I basically self teach myself, but most things I do work.
  • jenn4
    7th Sep 2011 Member 0 Permalink
    how can i make better explosions(more pressure)
  • Neospector
    7th Sep 2011 Member 0 Permalink
    Lazy way: Set the burnage to a high number, set Exp to 1, then scroll down in powder.h and set the properties to:
    {IPL, NT, IPH, NT, ITL, NT, 1000,PT_FIRE},
  • cctvdude99
    7th Sep 2011 Member 0 Permalink
    @Neospector
    Dude, please, read the topic title.
    I do not want it to burn when the temperature hits x, I want the Exp to be y when temperature hits x. Got it now?

    PizzaPlatypus got half way, then stopped. I knew the part he said, but I need to actually set exp, and somehow carry that to powder.h.

    Anyone got any ideas now?

    @Jenn4
    By setting the explosiveness to about 100 and burn to 5000
  • PizzaPlatypus
    7th Sep 2011 Member 0 Permalink
    @cctvdude99 (View Post)
    Instead of saying it explodes in powder.h program it in the .c file to create pressure and fire if touched by fire, if it's heat is whatever you want it to be.
  • cctvdude99
    7th Sep 2011 Member 0 Permalink
    But there must be a way of setting the Exp in powder.h in my .c file.

    :I

    I guess if I can't find any other ways later, I'll use that one.
  • vanquish349
    7th Sep 2011 Member 0 Permalink
    yes but exp in powder.h is only on and offf
  • cctvdude99
    7th Sep 2011 Member 0 Permalink
    @vanquish349
    Hm, the wiki used to say:
    "Exp: Does it explode? 0 = no, higher numbers = higher pressure generated. "
    Now it says:
    "Exp: Does it explode? 0 = no, 1 = when touching fire, 2 = when touching fire or when pressure > 2.5"
    Which is kinda annoying.