Func tankpulselaser: Difference between revisions
Jump to navigation
Jump to search

Bug:The WAV which is meant to be played when the laser finds its target and/or ricochets off of a surface is missing, therefore a default bullet sound is played. (These missing WAVs can be found in the Half-Life 2 Leak, however.) The console will address the names of the missing WAVs when fired. [todo tested in ?]
Note:For Keyvalues and Inputs affecting brush rendering, see Brush entity/Rendering related keyvalues and inputs
No edit summary |
(-added class hierarchy, cleanup) |
||
(14 intermediate revisions by 7 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{LanguageBar}} | ||
{{CD|CFuncTankPulseLaser|file1=func_tank.cpp}} | |||
{{toc-right}} | |||
{{this is a|brush entity|game1=Portal|game2=Portal 2|game3=Counter-Strike: Global Offensive|name=func_tankpulselaser|game=Half-Life 2}} This entity fires a laser sprite at a specific speed. The laser can set things on fire, although it appears certain NPCs cannot catch on fire (Combine Soldiers, Alyx, among others). | |||
{{ | {{bug|The WAV which is meant to be played when the laser finds its target and/or ricochets off of a surface is missing, therefore a default bullet sound is played. (These missing WAVs can be found in the Half-Life 2 Leak, however.) The console will address the names of the missing WAVs when fired.}} | ||
== | ==Flags== | ||
{{Fl BaseTank}} | |||
==Keyvalues== | ==Keyvalues== | ||
{{Brush rendering note}} | |||
== | {{KV Targetname}} | ||
{{KV|Pulse Speed|intn=PulseSpeed|float|How fast does pulse travel.}} | |||
{{KV|Pulse Color|intn=PulseColor|color255|Color of the pulse.}} | |||
{{KV|Pulse Width|intn=PulseWidth|float|Width of the pulse. The sprite for the laser is laser.vmt, therefore smaller widths are encouraged.}} | |||
{{KV|Pulse Life|intn=PulseLife|float|How long the pulse lasts in seconds.}} | |||
{{KV|Pulse Lag|intn=PulseLag|float|How far behind is pulse tail in seconds.}} | |||
{{KV|Pulse Fire Sound|intn=PulseFireSound|sound|Sound played when pulse fires. Sounds may be cut partway through if firing rapidly. Does not loop after ammo has run out or use of entity has stopped.}} | |||
{{KV BaseTank}} | |||
==Inputs== | ==Inputs== | ||
{{I BaseTank}} | |||
==Outputs== | ==Outputs== | ||
{{O BaseTank}} | |||
[[Category:Immobile NPCs]] | |||
[[Category: |
Latest revision as of 02:30, 3 September 2024


![]() |
---|
CFuncTankPulseLaser |
![]() |
func_tankpulselaser
is a brush entity available in Half-Life 2,
Portal,
Portal 2, and
Counter-Strike: Global Offensive. This entity fires a laser sprite at a specific speed. The laser can set things on fire, although it appears certain NPCs cannot catch on fire (Combine Soldiers, Alyx, among others).

Flags
|
Keyvalues

- Name (targetname) <string>[ Edit ]
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g.
parentname
ortarget
).
Also displayed in Hammer's 2D views and Entity Report.See also: Generic Keyvalues, Inputs and Outputs available to all entities
- Pulse Speed (PulseSpeed) <float>
- How fast does pulse travel.
- Pulse Color (PulseColor) <color255>
- Color of the pulse.
- Pulse Width (PulseWidth) <float>
- Width of the pulse. The sprite for the laser is laser.vmt, therefore smaller widths are encouraged.
- Pulse Life (PulseLife) <float>
- How long the pulse lasts in seconds.
- Pulse Lag (PulseLag) <float>
- How far behind is pulse tail in seconds.
- Pulse Fire Sound (PulseFireSound) <sound>
- Sound played when pulse fires. Sounds may be cut partway through if firing rapidly. Does not loop after ammo has run out or use of entity has stopped.
|
Inputs
|
Outputs
|