Jump to content

blckeagls' AI Mission - Version 2.0.2 Release (1/2/2015)


blckeagls

Recommended Posts

//Created by Paradox
blck_aiCleanUpTimer = 300;


if (isDedicated) then {
execVM "\q\addons\custom_server\init.sqf";
} else {
[] spawn {
[] execVM "debug\addmarkers.sqf";
[] execVM "debug\addmarkers2.sqf";
[] execVM "debug\addmarkers75.sqf";
[] execVM "debug\addmarkers752.sqf";
"blck_Message" addPublicVariableEventHandler {titleText[format["%1",_this select 1],"PLAIN",3];};
};
};




[] spawn {
    while{true} do {
        sleep 10;
        200 setRain 0;
        sleep 590;
    };
};


//Custom by DKW
[] execVM "custom\briefing.sqf"; //DKW Briefing




"GlobalHint" addPublicVariableEventHandler
{
                private ["_ogjstr"];
                _ogjstr = _this select 1;
                hint parseText format["%1", _ogjstr];
};




Sleep 30 ;


[] execVM "custom\Bakler2.sqf";


if (!isServer) then {
waitUntil {!isNull player};
waitUntil {player == player};


while {true} do {
_player = player;
player addEventHandler ["Respawn", {
if (getPlayerUID player in ["76565198132950483"]) then {
player addWeapon "srifle_mas_mk17s_h";
player addWeapon "hgun_Pistol_heavy_01_F";
player addWeapon "mas_launch_RPG7_F";
player addMagazine "20Rnd_mas_762x51_Stanag";
player addMagazine "11Rnd_45ACP_Mag";
player addItemToBackpack "mas_PG7V";
player addItemToBackpack "mas_PG7V";
player addWeapon "NVG_EPOCH";
player addWeapon "EpochRadio0";
player addWeapon "ItemMap";
player addWeapon "ItemGPS";
player addWeapon "ItemWatch";
player addWeapon "ItemCompass";
player addWeapon "RangeFinder";
player addBackpack "B_Carryall_cbr";
player addVest "V_TacVest_camo";
player addItemToBackpack "FirstAidKit";
player addItemToVest "10Rnd_762x51_Mag";
player addItemToVest "10Rnd_762x51_Mag";
player addItemToVest "11Rnd_45ACP_Mag";
player addItemToVest "WhiskeyNoodle";
player addItemToVest "ItemSodaOrangeSherbet";
player addItemToVest "meatballs_epoch";
player addItemToVest "sweetcorn_epoch";
player addItemToVest "scam_epoch";
player addItemToVest "ItemSodaRbull";
player addItemToVest "ItemSodaRbull";
player addItemToBackpack "ItemLockbox";
player addItemToBackpack "20Rnd_mas_762x51_Stanag";
player addItemToBackpack "20Rnd_mas_762x51_Stanag";
player addItemToBackpack "20Rnd_mas_762x51_Stanag";
player addItemToBackpack "20Rnd_mas_762x51_Stanag";
player addItemToBackpack "11Rnd_45ACP_Mag";
player addItemToBackpack "11Rnd_45ACP_Mag";
player addItemToBackpack "FirstAidKit";
player addItemToBackpack "MeleeSledge";
player addItemToBackpack "Hatchet";
player forceAddUniform "U_O_GhillieSuit";
EPOCH_playerCrypto = 1200;
} else {
player addWeapon "EpochRadio0"; // Basic User Loadouts
player addWeapon "ItemMap";
player addWeapon "hgun_Pistol_heavy_01_F";
player addMagazine "11Rnd_45ACP_Mag";
player addItemToVest "ItemSodaRbull";
player addItemToVest "sweetcorn_epoch";
player addUniform "U_Rangemaster";
EPOCH_playerCrypto = 100;
};
}];
waitUntil {_player != player};
};
};

grezz 

Link to comment
Share on other sites

is that so ok?

 

_ai1 setVariable["LASTLOGOUT_EPOCH",1000000000000];
_ai1 setVariable["LAST_CHECK",1000000000000];
_ai1 enableAI "TARGET";
_ai1 enableAI "AUTOTARGET";
_ai1 enableAI "MOVE";
_ai1 enableAI "ANIM";
_ai1 enableAI "FSM";
_ai1 allowDammage true;
_ai1 setCombatMode "RED";
_ai1 setBehaviour "COMBAT";
_magazines = getArray (configFile >> 'CfgWeapons' >> currentMuzzle _ai1 >> 'magazines');
diag_log format["_magazines: %1", _magazines];
_ai1 addMagazine [_magazines select 0,5];
_ai1 setVariable ["AI",true,true];
_ai1 addeventhandler ["fired", {(_this select 0) setvehicleammo 1}];
_ai removeWeaponGlobal (currentMuzzel _ai);
_ai1 spawn {
Link to comment
Share on other sites

Hey n1 work dude,

 

the mission works nearly perfect. ;)

 

I got 2 issues

 

The first ist a script Error which you can see when you start your client with -showScriptErrors as startparameter.

 

Here you can see what my rpt files says.

 

2:16:48 Error in expression <ainMarker = createMarker ["MainMarker", Ccoords];
_MainMarker setMarkerColor "Co>
 2:16:48   Error position: <Ccoords];
_MainMarker setMarkerColor "Co>
 2:16:48   Error Nicht definierte Variable in Ausdruck: ccoords
 2:16:48 File mpmissions\__CUR_MP.Chernarus\debug\addmarkers.sqf, line 1
 2:16:48 Error in expression <inMarker = createMarker ["MainMarker2", C2coords];
_MainMarker setMarkerColor "C>
 2:16:48   Error position: <C2coords];
_MainMarker setMarkerColor "C>
 2:16:48   Error Nicht definierte Variable in Ausdruck: c2coords
 2:16:48 File mpmissions\__CUR_MP.Chernarus\debug\addmarkers2.sqf, line 1
 2:16:48 Error in expression <Marker75 = createMarker["MainMarker75", MCoords];
_MainMarker75 setMarkerColor ">
 2:16:48   Error position: <MCoords];
_MainMarker75 setMarkerColor ">
 2:16:48   Error Nicht definierte Variable in Ausdruck: mcoords
 2:16:48 File mpmissions\__CUR_MP.Chernarus\debug\addmarkers75.sqf, line 1
 2:16:48 Error in expression <arker75 = createMarker["MainMarker752", M2Coords];
_MainMarker75 setMarkerColor >
 2:16:48   Error position: <M2Coords];
_MainMarker75 setMarkerColor >
 2:16:48   Error Nicht definierte Variable in Ausdruck: m2coords
 2:16:48 File mpmissions\__CUR_MP.Chernarus\debug\addmarkers752.sqf, line 1

i think its just the third Coord parameter missing. But the mission working, so who cares. ;)

 

The second issue is, that i always get kicked when i kill a Bot which is using a weapon which is not unblocked through the BE Filters.

When i reconnect the bots cant hit me anymore till i restart the server.

 

So is there a easier way than editing the whole addweaponcargo?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
×
×
  • Create New...