CFuncCombineBallSpawner

From Source Entities
(Redirected from Func combine ball spawner)
Jump to navigation Jump to search
Citadel energy ball.jpg

Code classes:

CFuncCombineBallSpawner is a code class in Hl2.pngP2.png.

Classnames:

  • func_combine_ball_spawner - It's a brush that creates and contains prop_combine_balls. The balls inside this entity behave like the ones seen in light beams throughout the Citadel. If Combine Power Supply is checked, they behave like ones seen in the Overwatch Nexus.

Flags[edit | edit source]

  • 4096: Start inactive
  • 8192: Combine power supply

Keyvalues[edit | edit source]

Ball count (ballcount) <integer>
How many balls should be allowed inside this volume at once.
Min ball speed (minspeed) <float>
The minimum speed of balls.
Max ball speed (maxspeed) <float>
The maximum speed of balls.
Ball radius (ballradius) <float>
Controls the size of balls. Seems to only make smaller balls.
Note: The balls appear normal size when grabbed with the charged gravity gun.
Ball Respawn Time (ballrespawntime) <float>
When balls explode (from being outside the field for too long) for an amount of time, wait this long until spawning new balls.
Ball Type (balltype) <choices>
Not present in code.

Inputs[edit | edit source]

Enable
Makes the entity active.
Disable
Makes the entity inactive.

Outputs[edit | edit source]

OnBallGrabbed
Fires when a ball is disrupted and considered outside the container, normally by punting or pulling with the gravity gun. Activator is the ball.
OnBallHitBottomSide
Fires when a ball hits the bottom of its container, then bounces back up. Activator is the ball.
OnBallHitTopSide
Fires when a ball hits the top of its container, then bounces back down. Activator is the ball.
OnBallReinserted
Fires when a ball re-enters the container. Activator is the ball.
OnFirstBallReinserted
Fires when a ball re-enters the container when it was previously empty. OnBallReinserted will also fire whenever this does. Activator is the ball.
OnLastBallGrabbed
Fires when the last ball in the container is disrupted. OnBallGrabbed will also fire whenever this does. Activator is the ball.

See Also[edit | edit source]