Luckily I was able to override the Exile rating balance system and bring
Sarge AI back to life again.
This commit is contained in:
Teh Dango 2016-03-29 19:18:26 -04:00
parent 4f545a09a0
commit 4c97b939d7
5 changed files with 23 additions and 9 deletions

View File

@ -47,11 +47,11 @@ if ((!isNull _aikiller) && {(_playerUID != "") && {_aikiller isKindOf "Exile_Uni
diag_log format["SAR_HITKILL_DEBUG: friendly AI was hit by Player %1",_aikiller];
};
if ((random 100) > 5) then {
if ((random 100) < 3) then {
_message = format["Sarge AI: Dammit %1! You are firing on a friendly group check your fire!",_aikiller_name];
_message remoteExec ["systemChat",0];
} else {
if ((random 100) < 5) then {
if ((random 100) < 3) then {
_message = format["Sarge AI: %1, this was the last time you shot one of our team! We are coming for you!",_aikiller_name];
_message remoteExec ["systemChat",0];
};

View File

@ -82,13 +82,13 @@ if ((!isNull _aikiller) && {(_playerUID != "") && {_aikiller isKindOf "Exile_Uni
_humankills = _aikiller getVariable["humanKills",0];
_aikiller setVariable["humanKills",_humankills+1,true];
};
if ((random 100) > 3) then {
_message = format["%1 killed a friendly AI - sending reinforcements!",_aikiller_name];
if ((random 100) < 3) then {
_message = format["Sarge AI: %1 killed a friendly AI - sending reinforcements!",_aikiller_name];
//[nil, nil, rspawn, [[West,"airbase"], _message], { (_this select 0) sideChat (_this select 1) }] call RE;
_message remoteExec ["systemChat",0];
} else {
if ((random 100) < 3) then {
_message = format["Tango down ... we offer a decent reward for the head of %1!",_aikiller_name];
_message = format["Sarge AI: Tango down ... we offer a decent reward for the head of %1!",_aikiller_name];
//[nil, nil, rspawn, [[West,"airbase"], _message], { (_this select 0) sideChat (_this select 1) }] call RE;
_message remoteExec ["systemChat",0];
};
@ -121,12 +121,12 @@ if ((!isNull _aikiller) && {(_playerUID != "") && {_aikiller isKindOf "Exile_Uni
};
if ((random 100) < 3) then {
_message = format["nice bandit kill %1!",_aikiller_name];
_message = format["Sarge AI: Nice bandit kill %1!",_aikiller_name];
//[nil, nil, rspawn, [[West,"airbase"], _message], { (_this select 0) sideChat (_this select 1) }] call RE;
_message remoteExec ["systemChat",0];
} else {
if ((random 100) < 3) then {
_message = format["another bandit down ... %1 is going to be the root cause of bandit extinction :-)",_aikiller_name];
_message = format["Sarge AI: Another bandit down ... %1 is going to be the root cause of bandit extinction :]",_aikiller_name];
//[nil, nil, rspawn, [[West,"airbase"], _message], { (_this select 0) sideChat (_this select 1) }] call RE;
_message remoteExec ["systemChat",0];
};

View File

@ -130,7 +130,7 @@ SAR_heli_type = ["B_Heli_Light_01_stripped_F"];
/* -------------------------------- Do Not Edit Below. If you do the AI will not work properly. -------------------------------- */
SAR_HC = false;
SAR_HC = true;
SAR_AI_friendly_side = RESISTANCE;
SAR_AI_unfriendly_side = EAST;
SAR_leader_number = 0;

View File

@ -14,7 +14,7 @@
*/
private ["_ai","_entity_array","_sleeptime","_detectrange"];
if (isServer || !hasInterface) exitWith {}; // Do not execute on server or any headless client(s)
if (isServer && !hasInterface) exitWith {}; // Do not execute on server or any headless client(s)
_ai = _this select 0;

14
sarge/ratingFix.sqf Normal file
View File

@ -0,0 +1,14 @@
/*
# Original #
Sarge AI System 1.5
Created for Arma 2: DayZ Mod
Author: Sarge
https://github.com/Swiss-Sarge
# Fork #
Sarge AI System 2.0+
Modded for Arma 3: Exile Mod
Changes: Dango
http://www.hod-servers.com
*/