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. [todo tested in ?]
(Sorry, I missed some of your previous changes, but there's no reason to revert the whole page.) |
|||
Line 1: | Line 1: | ||
{{hl2 brush|func_tankpulselaser}} | |||
{{hl2 | |||
==Entity description== | ==Entity description== | ||
This [[brush entity]] fires a laser sprite at a specific speed. Can be controlled by [[NPC]]s and the player and its target can be set through [[inputs]]. The laser can set things on fire, although it appears NPCs' are exempt from this rule. {{in code|class=class_c_func_tank_pulse_laser.html CFuncTankPulseLaser|file=func__tank_8cpp-source.html hl2_dll\func_tank.cpp}} {{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.}} | This [[brush entity]] fires a laser sprite at a specific speed. Can be controlled by [[NPC]]s and the player and its target can be set through [[inputs]]. The laser can set things on fire, although it appears NPCs' are exempt from this rule. {{in code|class=class_c_func_tank_pulse_laser.html CFuncTankPulseLaser|file=func__tank_8cpp-source.html hl2_dll\func_tank.cpp}} {{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.}} | ||
== Keyvalues == | |||
{{KV|Pulse Speed|float|How fast does pulse travel.}} | |||
==Keyvalues== | {{KV|Pulse Color|color255|Color of the pulse.}} | ||
{{KV|Pulse Width|float|Width of the pulse. The sprite for the laser is laser.vmt, therefore smaller widths are encouraged.}} | |||
{{KV|Pulse Life|float|(Seconds) How long the pulse lasts.}} | |||
{{KV|Pulse Lag|float|(Seconds) How far behind is pulse tail.}} | |||
{{KV|Pulse Fire Sound|sound|Sound played when pulse fires. Sounds may be cut halfway through during rapidfire of the entity. Does not loop after ammo has run out or use of entity has stopped.}} | |||
{{KV BaseTank}} | |||
==Flags== | == Flags == | ||
{{Fl BaseTank}} | |||
==Inputs== | == Inputs == | ||
{{I BaseTank}} | |||
==Outputs== | == Outputs == | ||
{{O BaseTank}} | |||
{{immobile npc}} | {{immobile npc}} | ||
Revision as of 00:50, 14 June 2011
Entity description
This brush entity fires a laser sprite at a specific speed. Can be controlled by NPCs and the player and its target can be set through inputs. The laser can set things on fire, although it appears NPCs' are exempt from this rule. Template:In code

Keyvalues
- Pulse Width ([todo internal name (i)]) <float>
- Width of the pulse. The sprite for the laser is laser.vmt, therefore smaller widths are encouraged.
- Pulse Fire Sound ([todo internal name (i)]) <sound>
- Sound played when pulse fires. Sounds may be cut halfway through during rapidfire of the entity. Does not loop after ammo has run out or use of entity has stopped.
|
Flags
|
Inputs
|
Outputs
|