Skip to content
This repository has been archived by the owner on May 4, 2021. It is now read-only.

Commit

Permalink
Linear Skills Update
Browse files Browse the repository at this point in the history
Fixed skills to be linear instead of them being set up to be weapon
based.
Skills are now 0-3. The third weapon array has been copied to allow
this.
Still need to update the missions to reflect the new skills.
  • Loading branch information
SMVampire committed Mar 4, 2014
1 parent 504facf commit 435caf8
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 37 deletions.
7 changes: 4 additions & 3 deletions DZMS/DZMSFunctions.sqf
Expand Up @@ -194,9 +194,10 @@ DZMSGetWeapon = {
//diag_log text format ["[DZMS]: AI Skill Func:%1",_skill];

switch (_skill) do {
case 0: {_aiweapon = DZMSWeps1;};
case 1: {_aiweapon = DZMSWeps2;};
case 2: {_aiweapon = DZMSWeps3;};
case 0: {_aiweapon = DZMSWeps0;};
case 1: {_aiweapon = DZMSWeps1;};
case 2: {_aiweapon = DZMSWeps2;};
case 3: {_aiweapon = DZMSWeps3;};
};
_weapon = _aiweapon call BIS_fnc_selectRandom;
_magazine = getArray (configFile >> "CfgWeapons" >> _weapon >> "magazines") select 0;
Expand Down
93 changes: 62 additions & 31 deletions DZMS/ExtConfig/DZMSAIConfig.sqf
Expand Up @@ -11,43 +11,56 @@ DZMSBanditSkins = ["Bandit1_DZ","BanditW1_DZ"];

////////////////////////
// Array of AI Skills
DZMSSkills0 = [
["aimingAccuracy",0.10,0.125],
["aimingShake",0.45,0.55],
["aimingSpeed",0.45,0.55],
["endurance",0.40,0.50],
["spotDistance",0.30,0.45],
["spotTime",0.30,0.45],
["courage",0.40,0.60],
["reloadSpeed",0.50,0.60],
["commanding",0.40,0.50],
["general",0.40,0.60]
];

DZMSSkills1 = [
["aimingAccuracy",0.60],
["aimingShake",0.60],
["aimingSpeed",1.00],
["endurance",1.00],
["spotDistance",1.00],
["spotTime",1.00],
["courage",1.00],
["reloadSpeed",1.00],
["commanding",1.00],
["general",1.00]
["aimingAccuracy",0.125,0.15],
["aimingShake",0.60,0.70],
["aimingSpeed",0.60,0.70],
["endurance",0.55,0.65],
["spotDistance",0.45,0.60],
["spotTime",0.45,0.60],
["courage",0.55,0.75],
["reloadSpeed",0.60,0.70],
["commanding",0.55,0.65],
["general",0.55,0.75]
];

DZMSSkills2 = [
["aimingAccuracy",0.15],
["aimingShake",0.20],
["aimingSpeed",1.00],
["endurance",1.00],
["spotDistance",1.00],
["spotTime",1.00],
["courage",1.00],
["reloadSpeed",1.00],
["commanding",1.00],
["general",1.00]
["aimingAccuracy",0.15,0.20],
["aimingShake",0.75,0.85],
["aimingSpeed",0.70,0.80],
["endurance",0.70,0.80],
["spotDistance",0.60,0.75],
["spotTime",0.60,0.75],
["courage",0.70,0.90],
["reloadSpeed",0.70,0.80],
["commanding",0.70,0.90],
["general",0.70,0.90]
];

DZMSSkills3 = [
["aimingAccuracy",0.60],
["aimingShake",0.60],
["aimingSpeed",1.00],
["endurance",1.00],
["spotDistance",1.00],
["spotTime",1.00],
["courage",1.00],
["reloadSpeed",1.00],
["commanding",1.00],
["general",1.00]
DZMSSkills3 = [
["aimingAccuracy",0.20,0.25],
["aimingShake",0.85,0.95],
["aimingSpeed",0.80,0.90],
["endurance",0.80,0.90],
["spotDistance",0.70,0.85],
["spotTime",0.70,0.85],
["courage",0.80,1.00],
["reloadSpeed",0.80,0.90],
["commanding",0.80,0.90],
["general",0.80,1.00]
];

//////////////////////////////////////////////////////////////
Expand Down Expand Up @@ -119,6 +132,24 @@ DZMSWeps3 = [
"RPK_74"
];

DZMSWeps4 = [
"FN_FAL",
"FN_FAL_ANPVS4",
"Mk_48_DZ",
"M249_DZ",
"BAF_L85A2_RIS_Holo",
"G36C",
"G36C_camo",
"G36A_camo",
"G36K_camo",
"AK_47_M",
"AKS_74_U",
"M14_EP1",
"bizon_silenced",
"DMR_DZ",
"RPK_74"
];

/////////////////////////////////////////////////////////////
// These are gear sets that will be randomly given to the AI
// They are all the same, but can be customized.
Expand Down
7 changes: 4 additions & 3 deletions DZMS/Scripts/DZMSAISpawn.sqf
Expand Up @@ -90,9 +90,10 @@ for "_x" from 1 to _unitcount do {

//Lets set the skills
switch (_skill) do {
case 0: {_aicskill = DZMSSkills1;};
case 1: {_aicskill = DZMSSkills2;};
case 2: {_aicskill = DZMSSkills3;};
case 0: {_aicskill = DZMSSkills0;};
case 1: {_aicskill = DZMSSkills1;};
case 2: {_aicskill = DZMSSkills2;};
case 3: {_aicskill = DZMSSkills3;};
};

{
Expand Down

0 comments on commit 435caf8

Please sign in to comment.