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.
mNo edit summary |
(Cleanup) |
||
Line 4: | Line 4: | ||
{{DISPLAYTITLE:npc_apcdriver}} | {{DISPLAYTITLE:npc_apcdriver}} | ||
{{hl2 point|npc_apcdriver}} | {{hl2 point|npc_apcdriver}} | ||
==Entity description== | |||
The NPC used to drive an APC vehicle ([[prop_vehicle_apc]]). {{immobile npc}} | The NPC used to drive an APC vehicle ([[prop_vehicle_apc]]). {{immobile npc}} | ||
Line 11: | Line 13: | ||
== Keyvalues == | == Keyvalues == | ||
{{KV VehicleDriverNPC}} | |||
{{KV|Maxspeed (percentace of Vehicle`'s maxspeed)|float|}} | |||
{{KV|Minspeed (percentace of Vehicle`'s minspeed)|float|}} | |||
== Flags == | == Flags == | ||
{{Fl BaseNPC}} | |||
* 65536 : No Rocket Attacks | * 65536 : No Rocket Attacks | ||
* 131072 : No Gun Attacks | * 131072 : No Gun Attacks | ||
== Inputs == | == Inputs == | ||
{{I VehicleDriverNPC}} | |||
{{IO|SetDriversMaxSpeed|Set the drivermaxspeed.|param=float}} | |||
{{IO|SetDriversMinSpeed|Set the driverminspeed.|param=float}} | |||
{{IO|StartForward|Tell the driver to start driving.}} | |||
{{IO|Stop|Tell the driver to stop driving.}} | |||
== Outputs == | == Outputs == | ||
{{O BaseNPC}} | |||
{{IO|DisableFiring|Disables firing from happening.|param=float}} | |||
{{IO|EnableFiring|Enables firing to start. Firing is enabled by default.|param=float}} | |||
[[Category:Vehicle Entities]] | [[Category:Vehicle Entities]] | ||
[[Category:Half-Life 2 NPCs]] | [[Category:Half-Life 2 NPCs]] |
Revision as of 13:18, 4 February 2012
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.
Flags
BaseNPC flags
- Wait Till Seen : [1]
- Prevents this NPC from seeing (or being seen) until it enters a player's viewcone.
- Gag : [2]
- Won't make IDLE sounds until it's angry.
- Fall to ground (unchecked means teleport to ground) : [4]
- Drop Healthkit : [8]
- Causes this NPC to drop an item_healthvial upon dying.
- Efficient : [16]
- Don't acquire enemies or avoid obstacles
- Wait For Script : [128]
- Forces this NPC to "wait" in an idle state until it finishes playing a scripted_sequence.
- Long Visibility/Shoot : [256]
- By default, increases a NPC's sight range to
6,000
units and allows it to attack from anywhere within that distance.
- Fade Corpse : [512]
- Think outside PVS : [1024]
- Allows this NPC to run its regular AI outside of any player's PVS.
- Template NPC : [2048]
- Marks this NPC as a template for entities like npc_template_maker. The NPC will not spawn on its own. This is not needed for point_template.
- Do Alternate collision for this NPC (player avoidance) : [4096]
- Don't drop weapons : [8192]
- Ignore player push : [16384] (in all games since
)
- Entity won't give way to player.
- 65536 : No Rocket Attacks
- 131072 : No Gun Attacks
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.