func_tankpulselaser

From Source Entities
Jump to navigation Jump to search

Present in:
Hl2.pngHL2
Hl2-episodes.pngEp1&2
Hl2dm-custom.pngHL2:DM
P1.pngPortal
P2.pngPortal 2
Csgo.pngCS:GO

Code classes:

func_tankpulselaser is a brush entity present in some Source games. It shoots small lasers that can bounce around. Does not work in P2.pngCsgo-small.png.

Bug: The visual representation of the laser disappears after it bounces. See below for a band-aid solution.

Bug: The sounds which are supposed to play when a laser bounces off something are missing. The console will list their names when they're meant to play.

Note: For EVERY shot fired, the tank creates two beams, a grenade_beam, and a grenade_beam_chaser.

Keyvalues[edit | edit source]

Pulse Speed (PulseSpeed) <float>
How fast the laser travels.
Pulse Color (PulseColor) <color255>
Color of the laser.
Pulse Width (PulseWidth) <float>
Width of the laser.
Pulse Life (PulseLife) <float>
How long the laser can exist before removing itself.
Pulse Lag (PulseLag) <float>
How far the end of the laser is behind the front.
Pulse Fire Sound (PulseFireSound) <sound>
Sound to play when the gun is fired.

How to stop ricocheting[edit | edit source]

Make two filter_activator_classes set to allow the classnames grenade_beam and grenade_beam_chaser.

Make a filter_multi and set its filters to the names of the filter_activator_classes.

Make a trigger_multiple over a surface. How far away it extends from the surface depends on how fast the laser can move. If the trigger doesn't go out far enough, the laser will flicker. Set its Filter Name (filtername) to the name of the filter_multi. Set the flags to Everything then give it this output:

My OutputTarget EntityTarget InputParameterDelayOnly Once
OnStartTouch!activatorKill0.10No

See Also[edit | edit source]