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 ?]
No edit summary |
(Cleanup) |
||
Line 2: | Line 2: | ||
==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 certain NPCs' are exempt from this rule (Combine Soldiers, Alyx, among others). {{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. The console will address the names of the missing WAVs when fired}} | 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 certain NPCs' are exempt from this rule (Combine Soldiers, Alyx, among others). | ||
{{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. The console will address the names of the missing WAVs when fired}} | |||
== Keyvalues == | == Keyvalues == | ||
{{KV BaseTank}} | |||
{{KV|Pulse Speed|float|How fast does pulse travel.}} | {{KV|Pulse Speed|float|How fast does pulse travel.}} | ||
{{KV|Pulse Color|color255|Color of the pulse.}} | {{KV|Pulse Color|color255|Color of the pulse.}} | ||
Line 11: | Line 16: | ||
{{KV|Pulse Lag|float|(Seconds) How far behind is pulse tail.}} | {{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|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.}} | ||
== Flags == | == Flags == |
Revision as of 10:02, 4 February 2012
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 certain NPCs' are exempt from this rule (Combine Soldiers, Alyx, among others).

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
|