Jump to content
Sign in to follow this  
tyrspawn

Civilian combat AI

Recommended Posts

I am trying to use functionaries with MP5s as a palace guard for a mission im working on... but their battle AI appears questionable to say the least. Sometimes they dont fire at obvious targets, other times they will just prone on the ground, and they don't seem to use basic military tactics like the OPFOR and BLUFOR soldiers.

Does anyone know how to either use the OPFOR/BLUFOR AI scripts on the Civilians or to place a OPFOR/BLUFOR rifleman and change his model to a functionary? I really really don't want to use "CDF" or some other gimmick - the functionaries are perfect. I could use any/all advice on how to make them more aggressive and assertive.

Share this post


Link to post
Share on other sites

Well, they are civilians ;)

Unless you want to use addons (I presume you don't) you can try editing the mission.sqm.

Fist of all place down a gimmick from whatever side you desire and give him a distinctive name (like bodyguard1).

Now open the mission.sqm file with a text editor and search for "bodyguard1":

class Item0
{
   position[]={3533.1213,19,3598.4998};
   azimut=25;
   id=0;
   side="WEST";
   vehicle="USMC_Soldier";
   player="PLAYER COMMANDER";
   leader=1;
   skill=0.60000002;
   text="bodyguard1";
};

Now just change the vehicle from "USMC_Soldier" (or whatever you have there) to "Functionary1":

class Item0
{
   position[]={3533.1213,19,3598.4998};
   azimut=25;
   id=0;
   side="WEST";
   vehicle="Functionary1";
   player="PLAYER COMMANDER";
   leader=1;
   skill=0.60000002;
   text="bodyguard1";
};

Save the file, reload the mission in the editor and you should be all set.

Share this post


Link to post
Share on other sites

Wouldn't that change the USMC guy to a civilian entirely, not just the cosmetics? I need it to be a USMC guy who LOOKS like a civilian, not a USMC who is a civilian.

Share this post


Link to post
Share on other sites
Wouldn't that change the USMC guy to a civilian entirely, not just the cosmetics? I need it to be a USMC guy who LOOKS like a civilian, not a USMC who is a civilian.

I think that would be:

class Item0
{
   position[]={3533.1213,19,3598.4998};
   azimut=25;
   id=0;
   side="Civilian";
   vehicle="USMC_Soldier";
   player="PLAYER COMMANDER";
   leader=1;
   skill=0.60000002;
   text="bodyguard1";
};  

I'm pretty sure deafast got it right.

Share this post


Link to post
Share on other sites

I don't see anything about that which indicates "marineness"

How will the game know its a marine with civilian clothing? I think by changing the vehicle you change the AI, how else would the game know its a marine?

Share this post


Link to post
Share on other sites
I don't see anything about that which indicates "marineness"

How will the game know its a marine with civilian clothing? I think by changing the vehicle you change the AI, how else would the game know its a marine?

side="WEST";

On top of that it's in a western group.

Trust me, it works ;)

Share this post


Link to post
Share on other sites
side="WEST";

On top of that it's in a western group.

Trust me, it works ;)

I changed all the side to WEST and they still don't really engage aggressively - are there some waypoint settings I should use? Like seek and destroy versus move? This is my first mission so I don't really know about the waypoint settings - there are no good descriptions of the move types on the wiki.

I also think they are being less aggressive because I set them to have pistols and MP5s... do they only engage at pistol range with these weapons or something? Guys with AKs are firing on them at distance and they just go prone and get shot up.

Edited by tyrspawn

Share this post


Link to post
Share on other sites

Quick and easy way :

I made a mission where the civilian police needed to be enemy combatants. I just grouped each one or each group under an OPFOR soldier of superior rank. Then set the prob of presence of that soldier to 0% . Voila! they are now OPFOR. Do the same with a BLUFOR set at 0% . They definitely got aggressive with the little makarov's I gave 'em. In a heated firefight, one of 'em snuck up behind me and shot me in the ass! Of course, it was just a makarov, so I said "Ouch", turned around, and unloaded my MP5 on him.

Edited by arthur666

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×