Giving explosives more pressure.

  • singularity
    15th Oct 2016 Member 0 Permalink

    Hey guy,

     

    What would be the way to make the explosives create more pressure when ignited. Say make C4 give as much pressure as a particle of Thunder?

     

    Thanks

  • Alexwall
    16th Oct 2016 Member 0 Permalink

    From what I can tell, no. I think if you wanted to do this you would have to create youe own particle and have it change the pressrue when voer a certian temp. I could be wrong however.

  • QuanTech
    15th Nov 2016 Member 0 Permalink

    In part of your update function, you'd put something like:


    if((r&0xFF)==PT_FIRE) //if fire nearby
    {
    sim->pv[x/4][y/4]=50.0f; //pv[][] is the pressure array. Make 50 pressure
    sim->part_change_type(i,x,y,PT_FIRE); //change particle to fire
    ... //do some other cool stuff :)
    }

    Edited 2 times by QuanTech. Last: 21st Nov 2016