Npc cranedriver: Difference between revisions
Jump to navigation
Jump to search

Note:Some keyvalues, spawnflags, effect flags, inputs, or outputs might not affect an NPC, based on the functionality and coding of the NPC.
m (categorization) |
No edit summary |
||
(11 intermediate revisions by 9 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{LanguageBar}} | ||
| | {{CD|CNPC_CraneDriver|base=CNPC_VehicleDriver|file1=npc_cranedriver.cpp}} | ||
}} | {{this is a|model entity|name=npc_cranedriver|game=Half-Life 2 series|sprite=npc_vehicledriver.png}} The NPC used to drive cranes. | ||
{{ | [[File:Roller.jpg|thumb|right|300px|link=|While not rendered in-game, the FGD specifies <code>roller.mdl</code> to visualize this entity in-editor.]] | ||
[[ | |||
{{immobile npc}} | {{immobile npc}} | ||
{{NPCNote}} | {{NPCNote}} | ||
== Keyvalues == | == Keyvalues == | ||
{{KV Targetname}} | |||
{{KV|Pause time before dropping a ForceDrop specified object|intn=releasepause|float|Pause time before dropping a ForceDrop specified object.}} | |||
{{KV VehicleDriverNPC}} | {{KV VehicleDriverNPC}} | ||
== Flags == | == Flags == | ||
Line 17: | Line 16: | ||
== Inputs == | == Inputs == | ||
{{I|ForcePickup|Force the driver to pickup the specified entity (by targetname).|param=target_destination}} | |||
{{I|ForceDrop|Force the driver to drop the currently held object at the specified entity's location. | |||
|param=target_destination}} | |||
{{I VehicleDriverNPC}} | {{I VehicleDriverNPC}} | ||
== Outputs == | == Outputs == | ||
{{O|OnPickedUpObject|activator=picked up object|Fired when the ForcePickup specified object has been picked up.}} | |||
{{O|OnDroppedObject|ac-is-this=1|Fired when the ForceDrop specified object has been dropped.}} | |||
{{O|OnPausingBeforeDrop|ac-is-this=1|Fired at the start of the pause before dropping the ForceDrop specified object.}} | |||
{{O BaseNPC}} | {{O BaseNPC}} | ||
[[Category:Vehicle Entities]] | [[Category:Vehicle Entities]] | ||
[[Category:Half-Life 2 NPCs|C]] | [[Category:Half-Life 2 NPCs|C]] |
Latest revision as of 16:54, 5 June 2025
![]() |
---|
CNPC_CraneDriver |
![]() |

npc_cranedriver
is a model entity available in Half-Life 2 series. The NPC used to drive cranes.

Keyvalues
- Name (targetname) <string>[ Edit ]
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g.
parentname
ortarget
).
Also displayed in Hammer's 2D views and Entity Report.See also: Generic Keyvalues, Inputs and Outputs available to all entities
- Pause time before dropping a ForceDrop specified object (releasepause) <float>
- Pause time before dropping a ForceDrop specified object.
- Vehicle (vehicle) <targetname>
- Vehicle to drive.
Flags
- Start Inactive : [65536]
Inputs
- ForcePickup <targetname >
- Force the driver to pickup the specified entity (by targetname).
- ForceDrop <targetname >
- Force the driver to drop the currently held object at the specified entity's location.
- StartFiring
- Tell the driver to attack nearby enemies with the vehicle's weaponry (if any).
- StopFiring
- Tell the driver to stop attacking nearby enemies with the vehicle's weaponry.
- GotoPathCorner <targetname >
- Tell the driver to go to a specific path corner and continue from there.
Outputs
- OnPickedUpObject
- !activator = picked up object
!caller = this entity
Fired when the ForcePickup specified object has been picked up.
- OnDroppedObject
- !activator = !caller = this entity
Fired when the ForceDrop specified object has been dropped.
- OnPausingBeforeDrop
- !activator = !caller = this entity
Fired at the start of the pause before dropping the ForceDrop specified object.
|