• Lazy metro cops
    5 replies, posted
Hello, I'm spawning metro cops on a map at the moment, and I'd like them to walk about a bit. With citizens, you can use [code] cit:Fire( "startpatrolling", 0, 0 ) [/code] and they'll start walking around. This input doesn't seem to work for metro cops though. Has anyone got any ideas? Alternatively, I guess I could spawn combine soldiers, since the startpatrolling input works for them, and change their models to the metro cop one somehow. But combine soldiers can't use stunsticks for some reason :P EDIT: Oh yeah, and I forgot to mention, if you spawn a bunch of metro police and then kill yourself, they all start patrolling around! That's exactly what I want them to do... just without me having to be dead.
What map, perhaps it's missing nav.
It's gm_bigcity, which I'm fairly sure is noded. in any case, npcs seem fully able to move around it- metro police will follow and attack me there.
I am afraid they are not coded to do this. In HL2 they are stationary, and those who are not are scripted with police AI goal or whatever it is called. ( Basically, preset paths )
Okay. Do you know if it's possible to make combine soldiers use stunsticks? Or should I be looking at SNPCs for that kind of thing? And if they aren't coded to patrol around, how come they start doing it automatically after I die?
Take the combine model and put metrocop animations. So basically decomplie the model than open the QC file and change this: [code] $includemodel "combine_soldier_anims.mdl" [/code] To: [code] $includemodel "Police_animations.mdl" [/code] After that change the model name to whatever you want, for example: [code] $modelname "facepunch\facepunch_example_combine.mdl" [/code] And finally, just recomplie it. Hope this helped =3 [QUOTE=ChiefNinja;44605885]Okay. Do you know if it's possible to make combine soldiers use stunsticks? Or should I be looking at SNPCs for that kind of thing? And if they aren't coded to patrol around, how come they start doing it automatically after I die?[/QUOTE]
Sorry, you need to Log In to post a reply to this thread.