Info apc missile hint: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
 
(-added class hierarchy, cleanup)
 
(22 intermediate revisions by 12 users not shown)
Line 1: Line 1:
{{cleanup}}
{{LanguageBar}}
info_apc_missile_hint
{{CD|CInfoAPCMissileHint|file1=weapon_rpg.cpp}}
{{this is a|brush entity|name=info_apc_missile_hint|game=Half-Life 2 series}} It helps guide rockets ({{ent|apc_missile}} fired by the {{ent|prop_vehicle_apc}}. In short, if the missile can hit a target before that target leaves this volume, the missile will steer towards it.


Something that helps APC missiles guide. If the missile can hit the associated target entitybetween the time it takes the current enemy to enter + leave the hint, then the missile will guide to the entity.
{{note|The FGD data lists <code>Enable</code> and <code>Disable</code> inputs, but they do not exist in code.}}


KEYS
== Keyvalues ==
 
{{KV Targetname}}
Name targetname <target_source> The name that other entities refer to this entity by.
{{KV|Target|intn=target|target_destination|The entity that the missile will guide towards if the conditions are met.}}
 
Origin (X Y Z) origin <origin> The position of this entity's center in the world. Rotating entities typically rotate around their origin.
 
Pitch Yaw Roll (Y Z X) angles <angle> This entity's orientation in the world. Pitch is rotation around the Y axis, yaw is the rotation around the Z axis, roll is the rotation around the X axis.
 
Start Disabled StartDisabled <choices>
 
Target Entity target <target_destination> The entity that the missile will guide towards if the conditions are met.
 
 
INPUTS
 
Kill Removes this entity from the world.
 
KillHierarchy Removes this entity and all its children from the world.
 
AddOutput <string> Adds an entity I/O connection to this entity. Format: <output name> <targetname>:<inputname>:<parameter>:<delay>:<max times to fire (-1 == infinite)>. Very dangerous, use with care.
 
FireUser1 Causes this entity's OnUser1 output to be fired.
 
FireUser2 Causes this entity's OnUser2 output to be fired.
 
FireUser3 Causes this entity's OnUser3 output to be fired.
 
FireUser4 Causes this entity's OnUser4 output to be fired.
 
Enable Enable this entity.
 
Disable Disable this entity.
 
 
OUTPUTS
 
OnUser1 Fired in response to FireUser1 input.
 
OnUser2 Fired in response to FireUser2 input.
 
OnUser3 Fired in response to FireUser3 input.
 
OnUser4 Fired in response to FireUser4 input.

Latest revision as of 13:03, 25 September 2024

English (en)Translate (Translate)
C++ Class hierarchy
CInfoAPCMissileHint
CBaseEntity
C++ weapon_rpg.cpp

info_apc_missile_hint is a brush entity available in Half-Life 2 series Half-Life 2 series. It helps guide rockets (apc_missile fired by the prop_vehicle_apc. In short, if the missile can hit a target before that target leaves this volume, the missile will steer towards it.

Note.pngNote:The FGD data lists Enable and Disable inputs, but they do not exist in code.

Keyvalues

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

Target (target) <targetname>
The entity that the missile will guide towards if the conditions are met.