To see how it works, I suggest downloading the Vannah map from my workshop in steam, or the Waterfront map for CS:GO.
"But hey! There's no such thing as HL2 Citizens-like NPC's in CSGO!"
====================================================== ->No but here is how it works: The prefab is a prop_dynamic with a walking animation set ON, with a func_tracktrain at the bottom that follows the specified path_tracks'. Includes a particle emitter to emit blood when shot, and it will "becomeragdoll" when damage has been taken.
=================================================== IMPORTANT: Common features: All are unused hostage models, resembling Half-Life 2's citizens with another clothing. The NPC would probably work with HL2 citizen model or equivalent, as long as it has the same animation names.
EVEN MORE IMPORTANT:
Do not change the height the func_tracktrain is in the ground. ===================================================== The civillians:
1. NPC that walks around a looping path, bleeds and screams when shot at, but is unkillable. It will keep doing the looping path but after being shot, it will keep running through the path, and cower himself while running every time you shoot him. (Unless you give the path an end.)
2.NPC that walks, opens a door, and sits in a seat. Is killable, turns into ragdoll when shot at and screams (also bleeds). Will cower himself when there is a player nearby, standing still forever.
3.NPC that stands still, and puts his hands up when a player is near. Killable with bleeding, scream and ragdoll.
4.NPC that sits on a chair, and stands up and puts his hands up when triggered.