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 (Substituted IO templates) |
m (Classifying as model entity) |
||
Line 2: | Line 2: | ||
[[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.]] | [[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.]] | ||
{{CD2|CNPC_CraneDriver|base=CNPC_VehicleDriver|file1=npc_cranedriver.cpp}} | {{CD2|CNPC_CraneDriver|base=CNPC_VehicleDriver|file1=npc_cranedriver.cpp}} | ||
{{this is a| | {{this is a|model entity|name=npc_cranedriver|game=Half-Life 2|game1=Half-Life 2: Episode One|game2=Half-Life 2: Episode Two|game3=Half-Life 2: Deathmatch}} | ||
[[File:npc_vehicledriver.png|left|link=]] | [[File:npc_vehicledriver.png|left|link=]] | ||
The NPC used to drive cranes. | The NPC used to drive cranes. |
Revision as of 06:14, 19 May 2025
![]() |
---|
CNPC_CraneDriver defined in ![]() npc_cranedriver.cpp
|
npc_cranedriver
is a model entity available in Half-Life 2,
Half-Life 2: Episode One,
Half-Life 2: Episode Two, and
Half-Life 2: Deathmatch.

The NPC used to drive cranes.

Keyvalues
- Vehicle (vehicle) <targetname>
- Vehicle to drive.
- Pause time before dropping a ForceDrop specified object (releasepause) <float>
- Pause time before dropping a ForceDrop specified object.
Flags
- Start Inactive : [65536]
Inputs
- 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.
- 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.
Outputs
|
- OnPickedUpObject
- Fired when the ForcePickup specified object has been picked up.
- OnDroppedObject
- Fired when the ForceDrop specified object has been dropped.
- OnPausingBeforeDrop
- Fired at the start of the pause before dropping the ForceDrop specified object.
Categories:
- TODO rewrite lang to LanguageBar
- Model entities
- Half-Life 2 entities
- Half-Life 2 model entities
- Half-Life 2: Episode One entities
- Half-Life 2: Episode One model entities
- Half-Life 2: Episode Two entities
- Half-Life 2: Episode Two model entities
- Half-Life 2: Deathmatch entities
- Half-Life 2: Deathmatch model entities
- Immobile NPCs
- NPC entities
- Vehicle Entities
- Half-Life 2 NPCs