TNT - Question from Comments a while back - BeamNG

Published on ● Video Link: https://www.youtube.com/watch?v=DghWGizu8Ko



Duration: 3:47
262 views
5


https://1drv.ms/u/s!AiICSE8M3GTNilr-k1NamyzNFJ71?e=OLsKhI
Zip to Mod Folder
Gas to Fire

I did a few tests seeing how it might behave as a firework and another as a TNT type of thing.

It is basically about 6 small cubes that when they all activate (thruster explodes) they each go random directions with a great deal of force. Each piece then generating several particles that eventually burn out.

Give you an idea how many particles are used..
First two numbers just tell it what nodes to be on on the row, then the velocity, particle type, area in square meters, then how many times it is created.

First line tells it for node 24, 1 velocity, particle #30, 0.01 square meters, 3 times) for example

Shift-N 2 times to see nodes by numbers in free roam.

obj:addParticleByNodesRelative(24, 24, 1, 30, 0.01, 3)
obj:addParticleByNodesRelative(22, 22, 1, 30, 0.01, 1)
obj:addParticleByNodesRelative(20, 20, 1, 30, 0.01, 3)
obj:addParticleByNodesRelative(96, 96, 1, 30, 0.01, 1)
obj:addParticleByNodesRelative(94, 94, 1, 30, 1.01, 6)
obj:addParticleByNodesRelative(92, 92, 1, 30, 1.01, 4)
obj:addParticleByNodesRelative(91, 91, 1, 30, 1.01, 15)
obj:addParticleByNodesRelative(34, 34, 1, 30, 1.01, 15)
obj:addParticleByNodesRelative(38, 38, 1, 30, 1.01, 15)
obj:addParticleByNodesRelative(36, 36, 1, 30, 1.01, 15)

obj:addParticleByNodesRelative(24, 24, 11, 80, 2.01, 1)
obj:addParticleByNodesRelative(22, 22, 1, 7, 0.01, 1)
obj:addParticleByNodesRelative(20, 20, 1, 7, 0.01, 3)
obj:addParticleByNodesRelative(96, 96, 1, 7, 0.01, 1)
obj:addParticleByNodesRelative(94, 94, 1, 11, 1.01, 6)
obj:addParticleByNodesRelative(92, 92, 1, 11, 1.01, 4)
obj:addParticleByNodesRelative(91, 91, 1, 3, 1.01, 15)
obj:addParticleByNodesRelative(34, 34, 1, 3, 1.01, 15)
obj:addParticleByNodesRelative(38, 38, 5, 1, 2.01, 11)
obj:addParticleByNodesRelative(36, 36, 1, 11, 1.01, 15)

obj:addParticleByNodesRelative(2, 2, 1, 30, 0.01, 3)
obj:addParticleByNodesRelative(25, 25, 1, 30, 0.01, 1)
obj:addParticleByNodesRelative(27, 27, 1, 30, 0.01, 3)


obj:addParticleByNodesRelative(97, 97, 1, 30, 0.01, 1)
obj:addParticleByNodesRelative(98, 98, 1, 30, 1.01, 6)
obj:addParticleByNodesRelative(62, 62, 1, 30, 1.01, 4)
obj:addParticleByNodesRelative(61, 61, 1, 30, 1.01, 15)
obj:addParticleByNodesRelative(64, 64, 1, 30, 1.01, 15)
obj:addParticleByNodesRelative(18, 18, 1, 30, 1.01, 15)
obj:addParticleByNodesRelative(16, 16, 1, 30, 1.01, 15)

obj:addParticleByNodesRelative(4, 4, 1, 11, 11.01, 11)
obj:addParticleByNodesRelative(23, 23, 1, 7, 0.01, 1)
obj:addParticleByNodesRelative(33, 33, 1, 7, 0.01, 3)
obj:addParticleByNodesRelative(44, 44, 1, 7, 0.01, 1)
obj:addParticleByNodesRelative(50, 50, 1, 11, 1.01, 6)
obj:addParticleByNodesRelative(52, 52, 1, 11, 1.01, 4)
obj:addParticleByNodesRelative(51, 51, 1, 3, 1.01, 15)
obj:addParticleByNodesRelative(54, 54, 1, 3, 1.01, 15)
obj:addParticleByNodesRelative(58, 58, 5, 1, 5.01, 11)
obj:addParticleByNodesRelative(56, 56, 1, 11, 1.01, 15)

GPU looked like it had been peeling some onions :P

If it is too many particles for you, your not alone lol...
Maybe a 5090 would do better.