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 (Added link to Russian version) |
No edit summary |
||
| (27 intermediate revisions by 17 users not shown) | |||
| Line 1: | Line 1: | ||
{{ | {{LanguageBar}} | ||
== | {{CD|CNPC_CraneDriver|base=CNPC_VehicleDriver|file1=npc_cranedriver.cpp}} | ||
NPC used to drive cranes. | {{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}} | ||
{{NPCNote}} | |||
{{ | == 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}} | |||
[[Category:Entities]] [[Category:NPCs]] | == Flags == | ||
{{Fl VehicleDriverNPC}} | |||
== 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}} | |||
== 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}} | |||
[[Category:Vehicle Entities]] | |||
[[Category:Half-Life 2 NPCs|C]] | |||
Latest revision as of 15: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.
parentnameortarget).
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.
|