npc_vehicledriver
Jump to navigation
Jump to search
Class hierarchy |
---|
CNPC_VehicleDriver |
npc_vehicledriver.cpp |
npc_vehicledriver
is a point entity available in all Source games except Left 4 Dead series.
Entity description
The NPC used to drive a target vehicle.
- For an example, see the apc_on_path prefab.
Note:Some keyvalues, spawnflags, effect flags, inputs, or outputs might not affect an NPC, based on the functionality and coding of the NPC.
Keyvalues
CBaseCombatCharacter:
CAI_BaseNPC:
DamageFilter:
|
- Vehicle (vehicle) <targetname>
- Vehicle to drive.
- Maxspeed (percentage of vehicle's maxspeed) (drivermaxspeed) <float>
- Maxspeed (percentage of vehicle's maxspeed).
- MinSpeed (percentage of vehicle's maxspeed) (driverminspeed) <float>
- MinSpeed (percentage of vehicle's maxspeed).
Flags
Wait Till Seen : [1]
Gag : [2]
Fall to ground (unchecked means teleport to ground) : [4]
Efficient : [16]
Wait For Script : [128]
Long Visibility/Shoot : [256]
Fade Corpse : [512]
Template NPC : [2048]
Note:This flag is disabled in episodic for player companions, because the
StartScripting input does this.Don't drop weapons : [8192]
|
- 65536 : Start Inactive
Inputs
CAI_BaseNPC:
CBaseCombatCharacter:
DamageFilter: |
- 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.
- SetDriversMaxSpeed <float>
- Set the drivermaxspeed.
- SetDriversMinSpeed <float>
- Set the driverminspeed.
- StartForward
- Tell the driver to start driving.
- Stop
- Tell the driver to stop driving.
Outputs
|
See also
- npc_apcdriver - derives from
npc_vehicledriver
, used to drive Combine APCs and fire from them. - npc_cranedriver - used by NPC-operated cranes, such as the one in Highway 17.