Point apc controller: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Substituted IO templates)
(rare Vector output)
 
Line 1: Line 1:
{{stub}}
{{stub}}
[[File:Npc vehicledriver.png|left]]
{{CD|CAPCController|file1=hl2_dll\point_apc_controller.cpp}}
{{this is a|point entity|game=Half-Life 2|game1=Half-Life 2: Episode One|game2=Half-Life 2: Episode Two|game3=Half-Life 2: Deathmatch|name=point_apc_controller}}
{{this is a|point entity|game=Half-Life 2 series|name=point_apc_controller|sprite=Npc vehicledriver.png}}
{{code class|CAPCController|hl2_dll\point_apc_controller.cpp}}
{{clr}}
==Entity description==
Controls all [[prop_vehicle_apc|APC's]] in the map. {{Todo|Collect more informations about what the entity does.}}
Controls all [[prop_vehicle_apc|APC's]] in the map. {{Todo|Collect more informations about what the entity does.}}


==Keyvalues==
==Keyvalues==
{{KV Targetname}}
{{KV Targetname}}
{{KV Angles}}
{{KV Angles}}
{{KV|Yaw rate|float|}}
{{KV|Yaw rate|float|}}
{{KV|Yaw tolerance|float|}}
{{KV|Yaw tolerance|float|}}
{{KV|Pitch rate|float|}}
{{KV|Pitch rate|float|}}
{{KV|Pitch tolerance|float|}}
{{KV|Pitch tolerance|float|}}
{{KV|Rotate Start Sound|sound|}}
{{KV|Rotate Start Sound|sound|}}
{{KV|Rotate Stop Sound|sound|}}
{{KV|Rotate Stop Sound|sound|}}
{{KV|Minmum target range|float|}}
{{KV|Minmum target range|float|}}
{{KV|Maximum target range|float|}}
{{KV|Maximum target range|float|}}
{{KV|Name of entity I should follow/attack|target_destination|}}
{{KV|Name of entity I should follow/attack|target_destination|}}


==Flags==
==Flags==
:* 1 : Active
{{fl|1|Active}}


==Inputs==
==Inputs==
{{I Targetname}}
{{I|Activate|Turn the APC rockets on.}}
{{I|Activate|Turn the APC rockets on.}}
{{I|Deactivate|Turn the APC rockets off (go dormant).}}
{{I|Deactivate|Turn the APC rockets off (go dormant).}}


==Outputs==
==Outputs==
{{O Targetname}}
{{O|OnFireAtTarget|param=Vector|ac-is-this=1|Fires when a valid target is found and the APC should shoot rockets.}}
 
{{O|OnFireAtTarget|Fires when a valid target is found and the APC should shoot rockets.}}

Latest revision as of 17:48, 5 June 2025

Stub

This article or section is a stub. You can help by expanding it.

C++ Class hierarchy
CAPCController
CPointEntity
CBaseEntity
C++ point_apc_controller.cpp
Npc vehicledriver.png

point_apc_controller is a point entity available in Half-Life 2 series Half-Life 2 series. Controls all APC's in the map.

Todo: Collect more informations about what the entity does.

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

Pitch Yaw Roll (Y Z X) (angles) <QAngle>
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.
Yaw rate ([todo internal name (i)]) <float>
Yaw tolerance ([todo internal name (i)]) <float>
Pitch rate ([todo internal name (i)]) <float>
Pitch tolerance ([todo internal name (i)]) <float>
Rotate Start Sound ([todo internal name (i)]) <sound>
Rotate Stop Sound ([todo internal name (i)]) <sound>
Minmum target range ([todo internal name (i)]) <float>
Maximum target range ([todo internal name (i)]) <float>
Name of entity I should follow/attack ([todo internal name (i)]) <targetname>

Flags

Active : [1]

Inputs

Activate
Turn the APC rockets on.
Deactivate
Turn the APC rockets off (go dormant).

Outputs

OnFireAtTarget <vectorRedirectOutput/Vector>
!activator = !caller = this entity
Fires when a valid target is found and the APC should shoot rockets.