hey everyone. another question. this time more for the scripting side of things.
how would i go about making a NPC that wonders around a level with no weapons, and if attacked they run away. is this possible? if not whats the closest thing i could do?
Check out this tutorial by Lassev, it covers what you want and more!
If you wanted something more simple (not sure it'd work in quite the same way...) Entities 220: Lesson 5 - NPC Spawning (it's not *just* spawning, it goes onto walking patterns)
Behavior states wander and flee might serve you well. I haven't really tried bs_flee ever but if it works just set the NPCs' painscript to a script setting the BS to _flee.
Weaponless neutral NPCs might flee also automatically, though. Only if they carry weapons they turn hostile (obviously).
well i was playing single player and i noticed that when u grip a soldier they drop their weapon and just walk around or run. Thanks for the sites guys, although i was hoping i could make a model a person, put together some kind of script file in the pk3 then just spawn him using the console and have the same effect. in future i would make a map where it has these guys but for now just to test it out