Env rock launcher: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with '{{l4d series point|env_rock_launcher}} This entity spawns rocks that are typically spawned by the Tank in the Left 4 Dead Series. ==Keyvalues== {{KV Targetname}} {{KV Angles}} *…')
 
m (→‎Inputs: Substituted IO templates)
 
(10 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{{l4d series point|env_rock_launcher}} This entity spawns rocks that are typically spawned by the Tank in the Left 4 Dead Series.
{{CD|CEnvRockLauncher}}
{{this is a|point entity|name=env_rock_launcher|series=Left 4 Dead}} This entity spawns and launches rocks that are typically spawned by the Tank in the Left 4 Dead Series. It is useful for cutscenes or other scripted events.


==Keyvalues==
== Keyvalues ==
{{KV|Target Name|intn=RockTargetName|target_destination|The name of the entity to throw the rock at.}}
{{KV|Rock Damage Override|intn=RockDamageOverride|integer|damage to be used instead of the the default rock damage. }}
{{KV Targetname}}
{{KV Targetname}}
{{KV Angles}}
*;Target Name <code><target_destination></code>
:The name of the entity to throw the rock at.
*;Rock Damage Override <code><[[int]]></code>
:Damage to be used instead of the the default rock damage.


==Inputs==
== Inputs ==
{{I Targetname}}
{{I|LaunchRock|Launch a rock}}
*;LaunchRock
{{I|SetTarget|Target a new entity (by name)|param=string}}
:Launch a rock.
*;SetTarget <code><[[string]]></code>
:Target a new entity (by name).


==Outputs==
== See also ==
{{O Targetname}}
* [[tank_rock]]
 
==See also==
 
==External links==

Latest revision as of 10:53, 21 April 2025

C++ Class hierarchy
CEnvRockLauncher
CPointEntity
CBaseEntity

env_rock_launcher is a point entity available in Left 4 Dead seriesLeft 4 Dead series Left 4 Dead series. This entity spawns and launches rocks that are typically spawned by the Tank in the Left 4 Dead Series. It is useful for cutscenes or other scripted events.

Keyvalues

Target Name (RockTargetName) <targetname>
The name of the entity to throw the rock at.
Rock Damage Override (RockDamageOverride) <integer>
damage to be used instead of the the default rock damage.
Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

Inputs

LaunchRock
Launch a rock
SetTarget <stringRedirectInput/string>
Target a new entity (by name)

See also