From Valve Developer Community
Revision as of 01:26, 12 July 2005 by Ts2do
Entity Name: npc_citizen
The downtrodden citizens of City 17.
- <choices> Weapons - Allows any weapon
- Pick one that is made to function for NPCs
Literal Value Description weapon_smg1 SMG1 weapon_ar2 AR2 weapon_stunstick Stun Stick weapon_crowbar Crow Bar weapon_shotgun Shotgun weapon_beerbottle Beer bottle weapon_beerbottle2 Beer bottle2 weapon_rpg RPG 0 Nothing
- <choices> Ammo to Resupply (if spawnflag set)
Literal Value Description Pistol Pistol SMG1 SMG1 SMG1_Grenade SMG1 Grenade AR2 AR2 Buckshot Shotgun" RPG_Round RPG Grenade Grenade XBowBolt Crossbow Bolt
- <integer> Amount of ammo to give
Literal Value Description 0 Default 1 Downtrodden 2 Refugee 3 Rebel 4 Unique
Literal Value Description 0 Random 1 Scared 2 Normal 3 Angry
Literal Value Description models/humans/group01/male_01.mdl Male 1 models/humans/group01/male_02.mdl Male 2 models/humans/group01/male_03.mdl Male 3 models/humans/group01/male_07.mdl Male 4 models/humans/group01/male_08.mdl Male 5 models/humans/group01/male_09.mdl Male 6 models/humans/group01/female_01.mdl Female 1 models/humans/group01/female_02.mdl Female 2 models/humans/group01/female_03.mdl Female 3 models/humans/group01/female_04.mdl Female 4 models/humans/group01/female_06.mdl Female 5 models/humans/group01/female_07.mdl Female 6 models/humans/male_cheaple.mdl Cheaple Male 1 models/odessa.mdl Odessa. DO NOT USE.
- <string> Facial expression override
- <boolean> Fire output when Nav is blocked?
- 65536 : Follow player on spawn
- 131072 : Medic
- 262144 : Random Head
- 524288 : Ammo Resupplier
- 1048576 : Not Commandable
- 2097152 : Don't use Speech Semaphore
- 4194304 : Random male head
- 8388608 : Random female head
- 16777216 : Use RenderBox in ActBusies
- SetExpressionOverride <string>
- Set facial expression override
- Patrol whenever I'm idle or alert.
- Stop patrolling when I'm idle or alert.
- Make a previously uncommandable citizen commandable
- Set the medic flag on. Will not change the model or skin of the citizen.
- Set the medic flag off. Will not change the model or skin of the citizen.
- Set the ammo-resupplier flag on. Will not change the model or skin of the citizen.
- Set the ammo-resupplier flag off. Will not change the model or skin of the citizen.
- Set readiness to calmest state (Bored)
- Set readiness to moderate (Alert)
- Set readiness to highest. (Combat imminent)
- LockReadiness <float>
- Lock readiness at current setting for x seconds -1 = forever, 0 = unlock now
- Fires when joins player squad
- Fires when leaves player squad (doesn't include death or deletion)
- Fires when ordered to follow player
- Fires when ordered to a location by player
- Fires when a player +USEs the citizen
- Fires when this Citizen's movement fails because he/she is blocked.