Point energy ball launcher: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Added intn to p2ce keyvalues and the ballexplodeplayer keyvalue)
(Added maxballbounces kv from p2ce)
Line 14: Line 14:
{{KV|Ball Type|intn=balltype|choices|Has no effect.}}
{{KV|Ball Type|intn=balltype|choices|Has no effect.}}
{{KV|Ball Respawn Time|intn=ballrespawntime|float|The energy balls respawn time}}
{{KV|Ball Respawn Time|intn=ballrespawntime|float|The energy balls respawn time}}
{{KV|Ball Bounces|intn=maxballbounces|int|Sets on which bounce the ball should explode. (Ported from HL2 combine balls)|only={{P2CE}}}}
{{KV|Ball Damage|intn=balldamage|float|The amount of damage the ball should deal to players|only={{P2CE}}}}
{{KV|Ball Damage|intn=balldamage|float|The amount of damage the ball should deal to players|only={{P2CE}}}}
{{KV|Ball explode player|intn=ballexplodeplayer|boolean|Sets if the ball should explode on player contact or ignore the player|only={{P2CE}}}}
{{KV|Ball explode player|intn=ballexplodeplayer|boolean|Sets if the ball should explode on player contact or ignore the player|only={{P2CE}}}}

Revision as of 13:09, 15 September 2020

Template:Portal series point

Entity description

It spawns and launches a prop_energy_ball periodically.

Note.pngNote:In Portal 2, the models, materials, and sounds for the actual balls are missing and must be copied from HL2.

Keyvalues

Ball Lifetime (balllifetime) <float>
The time in seconds the ball will live before self-destructing. A negative value will give infinite life.
Min life after portal transition (minlifeafterportal) <float>
When energy balls created by this launcher pass through a portal and their life is refreshed to be this number at minimum.
Ball count (ballcount) <integer>
This is how many balls will be bouncing around inside the spawner
Min ball speed (minspeed) <float>
The minimum speed of balls that fly in the spawner
Max ball speed (maxspeed) <float>
The maximum speed of balls that fly in the spawner
Ball radius (ballradius) <float>
The radius of the energy balls
Ball Type (balltype) <choices>
Has no effect.
Ball Respawn Time (ballrespawntime) <float>
The energy balls respawn time
Ball Bounces (maxballbounces) <integer> (only in Portal 2: Community Edition)
Sets on which bounce the ball should explode. (Ported from HL2 combine balls)
Ball Damage (balldamage) <float> (only in Portal 2: Community Edition)
The amount of damage the ball should deal to players
Ball explode player (ballexplodeplayer) <boolean> (only in Portal 2: Community Edition)
Sets if the ball should explode on player contact or ignore the player
Ball body material override (ballmaterial1) <material> (only in Portal 2: Community Edition)
Override the main ball material.
Ball flicker material override (ballmaterial2) <material> (only in Portal 2: Community Edition)
Overrides the other ball material.
Ball knockback multiplier (ballknockback) <float> (only in Portal 2: Community Edition)


Flags

  • 1 : Override ball material Portal 2: Community Edition
  • 4096 : Start inactive
  • 8192 : Combine power supply

Inputs

BallCaught  (in all games since Portal 2)
Ball this launcher created was 'caught'.
LaunchBall
Enable
Enable spawning of combine balls
Disable
Disable spawning of combine balls


Outputs

OnBallCaught  (in all games since Portal 2)
Fired when a ball this entity has launched has been 'caught'.
OnPostSpawnBall
Fired after the ball has spawned.
OnBallGrabbed
Fired when a combine ball is grabbed from the field by a mega physcannon
OnBallReinserted
Fired when a combine ball is reinserted into the field (only gets triggered when Combine Power supply is checked)
OnBallHitTopSide
Fired when a combine ball in hits the top side of the field (only gets triggered when Combine Power supply is checked)
OnBallHitBottomSide
Fired when a combine ball in hits the bottom side of the field (only gets triggered when Combine Power supply is checked)
OnLastBallGrabbed
Fired when the last combine ball is grabbed from the field by a mega physcannon
OnFirstBallReinserted
Fired when the first combine ball is reinserted into the field (only gets triggered when Combine Power supply is checked)


See also