[CS:S] Spawning bubbles in a square.

Please post any questions about developing your plugin here. Please use the search function before posting!
User avatar
Kami
Global Moderator
Posts: 240
Joined: Wed Aug 15, 2012 1:24 am
Location: Germany

[CS:S] Spawning bubbles in a square.

Postby Kami » Sun Feb 21, 2021 2:23 pm

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 :)

Return to “Plugin Development Support”

Who is online

Users browsing this forum: No registered users and 8 guests