npc_citizen
Citizen
KeyValues
- Toss medkits? (SetTossMedkits) <choices>
Episodic only. Griggs in Half-Life 2: Episode Two uses experimental code that allows him to toss medkits at the player from a distance. This activates that code on this NPC if it is a medic. Does not work with ammo resuppliers.
Episodic only. Griggs in Half-Life 2: Episode Two uses experimental code that allows him to toss medkits at the player from a distance. This activates that code on this NPC if it is a medic. Does not work with ammo resuppliers.
- Alternate aiming animations (AlternateAiming) <choices>
Causes this citizen to use readiness aiming animations with a SMG, AR2, or shotgun. When running or walking while aiming/shooting, they will hold their weapon around their upper-chest instead of from their hip.
Causes this citizen to use readiness aiming animations with a SMG, AR2, or shotgun. When running or walking while aiming/shooting, they will hold their weapon around their upper-chest instead of from their hip.
Flags
- [33554432] Player can +USE and +WALK (Alt + E) to toggle squad (disables automatically joining) : 33554432
Inputs
- SetUnCommandable
<void>
Makes a previously commandable citizen uncommandable
Makes a previously commandable citizen uncommandable
- SetTossMedkits
<bool>
Sets whether this NPC can toss medkits.
Sets whether this NPC can toss medkits.
Outputs
- OnHealedNPC
<void>
Fires when this citizen heals a NPC.
Fires when this citizen heals a NPC.
- OnHealedPlayer
<void>
Fires when this citizen heals a player.
Fires when this citizen heals a player.
- OnTossMedkit
<ehandle>
Fires when a medkit is tossed. Passes the medkit.
Fires when a medkit is tossed. Passes the medkit.
- OnGiveAmmo
<void>
Fires when ammo is given to the player.
Fires when ammo is given to the player.
