Hi all,
I have just installed WAI in addition to DZAI and I love it. I am trying to find a way to have different types of behavior per AI group, and although I am not sure this is even possible, I wanted to ask this:
(I am not a coder, so bear with me if this is a stupid thought)
In the file 'Spawngroup.sqf' I found:
_unit setCombatMode ai_combatmode;
_unit setBehaviour ai_behaviour;
And this info is found in the config.sqf file:
ai_bandit_combatmode = "YELLOW"; // combatmode of bandit AI
ai_bandit_behaviour = "COMBAT"; // behaviour of bandit AI
Per the WAI information, here are the options for these modes and behaviors:
Safe
Aware
Combat
Stealth
And here are the Combat Modes:
If I change the config file, I am changing ALL of the AI's combat mode and behavior. I don't want to do that. I want to be able to set EACH group to have their own behavior. My idea was to create FOUR different spawngroup.sqf files (spawngroup2.sqf, spawngroup3.sqf) and change the combat mode in each to represent one of the four options: I.E.:
ai_bandit_combatmode = "BLUE"; // combatmode of bandit AI
ai_bandit_behaviour = "SAFE"; // behaviour of bandit AI
and then in the file CustomSpawns.sqf, change the line:
[[16426.3,18332.6,0.0],
2, //Number Of units
"Random", //Skill level 0-1 or skill array number if using custom skills "Random" for random Skill array.
"Random", //Primary gun set number. "Random" for random weapon set.
6, //Number of magazines
"", //Backpack "" for random or classname here.
"BanditW2_DZ", //Skin "" for random or classname here.
"Random" //Gearset number. "Random" for random gear set.
] call spawn_group;
to
] call spawn_group2;
Would this work?
I am afraid of altering ANYTHING on my server for fear of screwing things up when it has taken me so long to get things right. Anyone that is smarter than I and could chime in here would be so very appreciated. Hell, maybe the concept is right, but someone has already figured out how?
I have just installed WAI in addition to DZAI and I love it. I am trying to find a way to have different types of behavior per AI group, and although I am not sure this is even possible, I wanted to ask this:
(I am not a coder, so bear with me if this is a stupid thought)
In the file 'Spawngroup.sqf' I found:
_unit setCombatMode ai_combatmode;
_unit setBehaviour ai_behaviour;
And this info is found in the config.sqf file:
ai_bandit_combatmode = "YELLOW"; // combatmode of bandit AI
ai_bandit_behaviour = "COMBAT"; // behaviour of bandit AI
Per the WAI information, here are the options for these modes and behaviors:
Safe
Aware
Combat
Stealth
And here are the Combat Modes:
- "BLUE" (Never fire)
- When hostile units are detected, they will track them, but will never fire back, even when fired upon.
- "GREEN" (Hold fire - defend only)
- "WHITE" (Hold fire, engage at will)
- "YELLOW" (Fire at will)
- If AI spots a target and decides it is in effective range, he will open fire.
- "RED" (Fire at will, engage at will)
- The AI does not keep formation and each member moves individually. The leader command Disengage will set the units back to fire at will (YELLOW)
- If Attack and Engage is called, the unit will break formation to find the best place to attack from (combat mode RED).
If I change the config file, I am changing ALL of the AI's combat mode and behavior. I don't want to do that. I want to be able to set EACH group to have their own behavior. My idea was to create FOUR different spawngroup.sqf files (spawngroup2.sqf, spawngroup3.sqf) and change the combat mode in each to represent one of the four options: I.E.:
ai_bandit_combatmode = "BLUE"; // combatmode of bandit AI
ai_bandit_behaviour = "SAFE"; // behaviour of bandit AI
and then in the file CustomSpawns.sqf, change the line:
[[16426.3,18332.6,0.0],
2, //Number Of units
"Random", //Skill level 0-1 or skill array number if using custom skills "Random" for random Skill array.
"Random", //Primary gun set number. "Random" for random weapon set.
6, //Number of magazines
"", //Backpack "" for random or classname here.
"BanditW2_DZ", //Skin "" for random or classname here.
"Random" //Gearset number. "Random" for random gear set.
] call spawn_group;
to
] call spawn_group2;
Would this work?
I am afraid of altering ANYTHING on my server for fear of screwing things up when it has taken me so long to get things right. Anyone that is smarter than I and could chime in here would be so very appreciated. Hell, maybe the concept is right, but someone has already figured out how?