Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
78 lines (71 sloc) 2.42 KB
//skill settings:
/*
//call with
[_mygroupname, skill] spawn call EGG_EVO_skill;
e.g. [_guard,3] spawn call EGG_EVO_skill;
0 = Cadet
1 = Easy
2 = Normal
3 = Hard
4 = Extreme
5 = Manual Settings (below)
6 = Use this setting for AI mods such as Zeus AI
*/
EGG_EVO_skill =
{
private ["_unit", "_skill", "_aiSkillBase"];
_unit = _this select 0;
_skill = _this select 1;
if(_skill < 5) then {
_aiSkillBase = 1.0;
switch (_skill) do
{
case 0: //conscript very low skill
{
_aiSkillBase = 0.2;
};
case 1: //rebels low skill
{
_aiSkillBase = 0.5;
};
case 2: //regular fair skill
{
_aiSkillBase = 1.0;
};
case 3: //elite soldiers medium skill
{
_aiSkillBase = 1.4;
};
case 4: // specops good skill
{
_aiSkillBase = 1.8;
};
};
_unit setskill _aiSkillBase;
_unit setskill ["general", _aiSkillBase];
_unit setskill ["aimingAccuracy", (_aiSkillBase * 0.25)];
_unit setskill ["aimingShake", (_aiSkillBase * 0.30)];
_unit setskill ["aimingSpeed", (_aiSkillBase * 0.40)];
_unit setskill ["endurance", _aiSkillBase];
_unit setskill ["spotDistance", (_aiSkillBase * 0.25)];
_unit setskill ["spotTime", (_aiSkillBase * 0.50)];
_unit setskill ["courage", _aiSkillBase];
_unit setskill ["reloadSpeed", (_aiSkillBase * 0.80)];
_unit setskill ["commanding", (_aiSkillBase * 0.75)];
}
else {
if(_skill == 5) then {
_unit setskill (paramsArray select 17);
_unit setskill ["general", (paramsArray select 17)];
_unit setskill ["aimingAccuracy", (paramsArray select 8)];
_unit setskill ["aimingShake", (paramsArray select 9)];
_unit setskill ["aimingSpeed", (paramsArray select 10)];
_unit setskill ["endurance", (paramsArray select 11)];
_unit setskill ["spotDistance", (paramsArray select 12)];
_unit setskill ["spotTime", (paramsArray select 13)];
_unit setskill ["courage", (paramsArray select 14)];
_unit setskill ["reloadSpeed", (paramsArray select 15)];
_unit setskill ["commanding", (paramsArray select 16)];
};
};
};
Something went wrong with that request. Please try again.