Npc apcdriver: 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_APCDriver|base=CNPC_VehicleDriver|file1=npc_apcdriver.cpp}} | {{CD2|CNPC_APCDriver|base=CNPC_VehicleDriver|file1=npc_apcdriver.cpp}} | ||
{{this is a| | {{this is a|model entity|game=Half-Life 2|game1=Half-Life 2: Episode One|game2=Half-Life 2: Episode Two|game3=Half-Life 2: Deathmatch|name=npc_apcdriver}} | ||
==Entity Description== | ==Entity Description== |
Revision as of 06:14, 19 May 2025
![]() |
---|
CNPC_APCDriver defined in ![]() npc_apcdriver.cpp
|
npc_apcdriver
is a model entity available in Half-Life 2,
Half-Life 2: Episode One,
Half-Life 2: Episode Two, and
Half-Life 2: Deathmatch.
Entity Description

The NPC used to drive an APC vehicle (prop_vehicle_apc).
This entity has no physical representation in-game, and as such does not require specific placement in relation to its APC model.

Keyvalues
- Vehicle (vehicle) <targetname>
- Vehicle to drive.
- Maxspeed (percentage of vehicle's maxspeed) (drivermaxspeed) <float>
- MinSpeed (percentage of vehicle's maxspeed) (driverminspeed) <float>
Flags
- Start Inactive : [65536]
- No Rocket Attacks : [65536]
- Overrides standard flag for this number[confirm].
Bug:Does nothing in
Source 2013. [todo tested in ?]
- No Gun Attacks : [131072]
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.
- 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
- DisableFiring <float >
- Disables firing from happening.
- EnableFiring <float >
- Enables firing to start. Firing is enabled by default.
|
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
- Pages with uncategorized bugs
- Vehicle Entities
- Half-Life 2 NPCs