Point apc controller: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
(Cleanup)
Line 2: Line 2:
{{stub}}
{{stub}}
{{hl2 point|point_apc_controller}}
{{hl2 point|point_apc_controller}}
==Entity Description==
[[Image:Npc vehicledriver.png|left]]APC Controller{{clr}}


==Availability==
==Entity description==
{{in game|point}} {{game|HL2}}
[[Image:Npc vehicledriver.png|left]]Controls all [[prop_vehicle_apc|APC's]] in the map. {{Todo|Collect more informations about what the entity does.}}
 
{{in code|class=class_c_a_p_c_controller.html CAPCController|file=point__apc__controller_8cpp-source.html hl2_dll\point_apc_controller.cpp}}
{{in code|class=class_c_a_p_c_controller.html CAPCController|file=point__apc__controller_8cpp-source.html hl2_dll\point_apc_controller.cpp}}


==Keyvalues==
==Keyvalues==
*{{KV Targetname}}
{{KV Targetname}}
*{{KV Angles}}
 
*'''yawrate'''
{{KV Angles}}
:<float>
 
*'''yawtolerance'''
{{KV|Yaw rate|float|}}
:<float>
 
*'''pitchrate'''
{{KV|Yaw tolerance|float|}}
:<float>
 
*'''pitchtolerance'''
{{KV|Pitch rate|float|}}
:<float>
 
*'''rotatestartsound'''
{{KV|Pitch tolerance|float|}}
:<sound>
 
*'''rotatesound'''
{{KV|Rotate Start Sound|sound|}}
:<sound>
 
*'''rotatestopsound'''
{{KV|Rotate Stop Sound|sound|}}
:<sound>
 
*'''minRange'''
{{KV|Minmum target range|float|}}
:<float> Minmum target range.
 
*'''maxRange'''
{{KV|Maximum target range|float|}}
:<float> Maximum target range.
 
*'''targetentityname'''
{{KV|Name of entity I should follow/attack|target_destination|}}
:<target_destination> Name of entity I should follow/attack.


==Flags==
==Flags==
*1 : Active
:* 1 : Active


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


==Outputs==
==Outputs==
*{{o Targetname}}
{{O Targetname}}
*'''OnFireAtTarget'''
 
:Fires when a valid target is found and the APC should shoot rockets
{{IO|OnFireAtTarget|Fires when a valid target is found and the APC should shoot rockets.}}

Revision as of 07:06, 5 February 2012

Stub

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

Template:Hl2 point

Entity description

Npc vehicledriver.png

Controls all APC's in the map.

Todo: Collect more informations about what the entity does.

Template: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


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

  • 1 : Active

Inputs

Activate
Turn the APC rockets on.


Deactivate
Turn the APC rockets off (go dormant).

Outputs

OnFireAtTarget
Fires when a valid target is found and the APC should shoot rockets.