Hello, I’ve recently created a module that can create smoke very similar to the CS2 smoke.
(uncopy locked place)
Here’s an example of what it can do:
How to use in-game:
Press Mouse 1 to Create the Smoke
Press Mouse 3 (Scroll Wheel) to Create Holes in the Smoke
The smoke bends around obstacles and you can even interact with the smoke.
It supports multiple smoke instances too!
Use Cases:
Great for FPS games
Smoke bombs/grenades
The module is quite easy to use, so I hope you can make some great things with it
63 Likes
caIcifers
(COLICO)
October 2, 2023, 3:50pm
#2
Looks super cool! Trying it right now.
1 Like
This is great, however, is the performance good?
1 Like
The biggest hit to performance is the actual particles. Meaning that mobile devices might have some troubles with it, if they do you can always just decrease the amount of particles each voxel outputs
(Lower the end value of the for loops at line 124 and 219)
If performance becomes an issue, I could add greedy meshing and use attachments instead of parts (im using parts atm due to there being a built in function to see if a part is occupying a space)
5 Likes
VSCPlays
(VSCPlays)
October 2, 2023, 6:05pm
#5
cool, I will put this in my `DANISH BOMB` which is my joke bomb from denmark, it will put smoke
kalabgs
(FartFella)
October 2, 2023, 6:07pm
#6
Perhaps you could apply greedy meshing to counter this behavior?
Yes, maybe you could try greedy meshing!
Would be interesting to see how it performs
1 Like
Holy smokes (Kill me)! This reminds me of Counter-Strike 2! (I typed this without reading beforehand.)
1 Like
lil update:
I’ve made a module that keeps the voxels inside of it when they arent needed and retrieves them when needed, so performance should be a bit better
and you can find the changes in the uncopy locked place
You could try incorporating greedy meshing to lower the part count: https://youtu.be/L6P86i5O9iU?si=kqRpBrICas4mZMQu as suggested by @kalabgs & @SwitchedDreams
Or check this out alternatively: How to make a Greedy Mesher - #2 by fathawks
2 Likes
pretty cool resource, is there a way to adjust the size of the “voxels” to be smaller, so we can have smaller holes in the smoke.
Also I just theorized that a similar smoke system could be done with particle physics and raycasting which ill probably try later.
1 Like
Yes, you just have to change the resolution setting when creating the smoke, you can look at the example script I already made
2 Likes
It seems like the game is broken
sorry about that, it seems that a script didnt fully commit before i published and closed studio
HKcat5100
(HKcat)
October 3, 2023, 3:20pm
#15
Do you mean CS2 csgo doesn’t have dynamic smoke
Could you rephrase that, since I don’t fully understand what you mean
HKcat5100
(HKcat)
October 3, 2023, 4:10pm
#17
CS:GO doesn’t have smokes that can fill the room or get holes in them. That’s CS2
1 Like
zavaled
(zavaled)
October 5, 2023, 5:03am
#24
Oh wow i’ve been looking for something like this for so long, thank you!
zowiezyla
(zowie)
October 8, 2023, 8:23am
#26
trying it right now, it’s pretty neat.
the only issue i’ve encountered are just the fact i can’t do multiple smokes, but that seems like a me problem of not being smart enough to script.
i managed to make a working smoke grenade tool out of it, here are the results.
this is honestly pretty cool
This reminds me of a YouTube video I watched recently , I’m going to assume it inspired you too? Honestly this is really cool! Nice work.
1 Like