L
Liksus2x
Guest
Hey all, I'm very new to the mod community and have a question about the AI.
What I want to happen is that there is a certain npc that is armed. Let's call him badguy.
The player and a bunch of other npc are unarmed and have to run and hide from badguy or else they get shot and die.
I made a custom indoors map and am now running into some problems.
First of all, I know I need to set ai_relationships for everyone appropriately to fear and hate.
How do I get the unarmed npcs to run away smoothly from badguy? And how do I make the badguy chase and look for the other npcs, including the player?
I put a few info_nodes around doorways and down halls, and info_hint_nodes about narrow doorways, but it seems the npcs only jerkily run away and rather stupidly.
Do I have to script every npc's actions or is there a way to let it think for itself where it should run to?
Also, how do I pick and choose attributes for the badguy? For example, I want it to have the combine_s class's continuous advance but keep the model and sound files from an npc_civilian type downtrodden AND only carry a certain weapon (pistol).
Thanks in advance.
What I want to happen is that there is a certain npc that is armed. Let's call him badguy.
The player and a bunch of other npc are unarmed and have to run and hide from badguy or else they get shot and die.
I made a custom indoors map and am now running into some problems.
First of all, I know I need to set ai_relationships for everyone appropriately to fear and hate.
How do I get the unarmed npcs to run away smoothly from badguy? And how do I make the badguy chase and look for the other npcs, including the player?
I put a few info_nodes around doorways and down halls, and info_hint_nodes about narrow doorways, but it seems the npcs only jerkily run away and rather stupidly.
Do I have to script every npc's actions or is there a way to let it think for itself where it should run to?
Also, how do I pick and choose attributes for the badguy? For example, I want it to have the combine_s class's continuous advance but keep the model and sound files from an npc_civilian type downtrodden AND only carry a certain weapon (pistol).
Thanks in advance.