Page 1 of 1

[CS:S] Spawning bubbles in a square.

Posted: Sun Feb 21, 2021 2:23 pm
by Kami
Hey guys,

does anyone know how to spawn either a func_dustmotes or a func_smokevolume?

I'm trying to have bubbles come up from the ground in a square zone.

I'm currently using this code to spawn bubbles but the bubbles fly too fast, even if I set the speed to 0 :

Syntax: Select all

def create_bubbles(model, height, speed, count, mins, **kwargs):
bubbles = TempEntity('Bubbles')
bubbles.model = model
bubbles.height = height
bubbles.speed = speed
bubbles.count = count
bubbles.mins = mins
bubbles.maxs = kwargs.get('maxs', mins)
bubbles.create(kwargs.get('recipients', RecipientFilter()))

I tried spawning func_dustmotes and func_smokevolume but I couldn't make them show.
Another idea would be to have a square env_smokestack but I have no idea how to do that.

Maybe someone has an idea what to do :)