Free views, likes and subscribers at YouTube. Now!
Get Free YouTube Subscribers, Views and Likes

Teardown - INFINATE SMOKE MOD - Legit Firefighting Sim - RTX 3090

Follow
RaftermanNZ

I edited the length of time the SmokeGun mod's particles lasted, and it supplements fires perfectly! Makes fighting fires a ton more realistic and fun. Tutorial and my PC Specs BELOW ​(click show more):

Processor Intel i78700k 3.70GHz
Video Card Nvidia RTX 3090
RAM 48 GB
Monitor 1 Dell S2716DG | 27 Inch 1440p 144Hz
Monitor 2 & 3 HP 24w
Mouse Logitech G900
Keyboard Logitech K520

SmokeGun Mod Tweaked Code (I do not take credit for mod, just edits):

GO TO Steam\steamapps\common\Teardown\mods\smokegun

EDIT the main.lua file in notepad (PLEASE BACK UP THE FILE)

Find and paste below into the file BE CAREFUL

Set up the particle state
ParticleReset()
ParticleType("smoke")
ParticleRadius(radius)
ParticleAlpha(alpha, alpha, "constant", 0.1/life, 150.5) Ramp up fast, ramp down after 50%
ParticleGravity(gravity * rnd(0.5, 1.5)) Slightly randomized gravity looks better
ParticleDrag(drag)
ParticleColor(red, green, blue, 0.1, 0.1, 0.1) Animating color towards white

Emit particles
for i=1, count do
Randomize position slightly. This is important when spawning multiple particles at the same time
local p = VecAdd(pos, VecAdd(VecScale(dir, radius), rndVec(radius)))

Randomize velocity slightly
local v = VecScale(VecAdd(dir, rndVec(0.2)), vel)
Include some of the movement of the attachment body
v = VecAdd(v, VecScale(GetBodyVelocityAtPos(emitBody, pos), 0.5))

Randomize lifetime
local l = rnd(life*120.5, life*240.5)

Spawn particle into the world
SpawnParticle(p, v, 60)
end

posted by rasnojd9