V41 Updates

This commit is contained in:
second_coming 2016-05-17 21:42:51 +01:00
parent ea9064414a
commit 907fda05a0
7 changed files with 42 additions and 23 deletions

View File

@ -1,3 +1,8 @@
=================================================================================
V41 (15-05-2016)
=================================================================================
Dead AI should be ejected from any captured land vehicle when you get in them
=================================================================================
V40 (12-05-2016)
=================================================================================

View File

@ -160,7 +160,9 @@ SC_LootCrateItems = [
["Exile_Item_WoodDoorwayKit",1,1],
["Exile_Item_WoodFloorPortKit",1,2],
["Exile_Item_Laptop",0,1],
["Exile_Item_CodeLock",0,1]
["Exile_Item_CodeLock",0,1],
["Exile_Item_Cement",2,10],
["Exile_Item_Sand",2,10]
];
SC_blackListedAreas = [
@ -236,6 +238,8 @@ SC_BoatClassToUse = [
["Exile_Boat_MotorBoat_Police",1]
];
SC_useRealNames = true;
// Arrays of names used to generate names for AI
SC_SurvivorFirstNames = ["John","Dave","Steve","Rob","Richard","Bob","Andrew","Nick","Adrian","Mark","Adam","Will","Graham"];
SC_SurvivorLastNames = ["Smith","Jones","Davids","Johnson","Jobs","Andrews","White","Brown","Taylor","Walker","Williams","Clarke","Jackson","Woods"];
@ -310,8 +314,4 @@ publicVariable "SC_transportArray";
publicVariable "SC_SurvivorSide";
publicVariable "SC_BanditSide";
// Override a few DMS settings
//DMS_Show_Kill_Poptabs_Notification = false;
//DMS_Show_Kill_Respect_Notification = false;
SC_CompiledOkay = true;

View File

@ -2,7 +2,7 @@
//
// Server Occupation script by second_coming
//
SC_occupationVersion = "v39 (09-05-2016)";
SC_occupationVersion = "v41 (17-05-2016)";
//
// http://www.exilemod.com/profile/60-second_coming/
//

View File

@ -6,6 +6,11 @@ _unit = _this select 2;
if(isPlayer _unit) then
{
_group = group _vehicle;
{
if(!alive _x) then { _x action ["EJECT", _vehicle]; };
}forEach units _group;
[_vehicle] call SC_fnc_vehicleDestroyed;
if(SC_extendedLogging) then

View File

@ -72,7 +72,7 @@ if(_launcherChance < 40 OR isNil "_launcher") then { _launcher = ""; };
if(_weapon != "") then
{
_weaponMagazinesToAdd = getArray (configFile >> "CfgWeapons" >> _weapon >> "magazines");
_weaponMagazineAmount = 1 + round random (1);
_weaponMagazineAmount = 2 + round random (1);
_magazines pushBack [_weaponMagazinesToAdd select 0,_weaponMagazineAmount];
};
@ -80,7 +80,7 @@ if(_weapon != "") then
if(_pistol != "") then
{
_pistolMagazinesToAdd = getArray (configFile >> "CfgWeapons" >> _pistol >> "magazines");
_pistolMagazineAmount = 1 + round random (1);
_pistolMagazineAmount = 2 + round random (1);
_magazines pushBack [_pistolMagazinesToAdd select 0,_pistolMagazineAmount];
};

View File

@ -3,18 +3,21 @@ _side = _this select 0;
_firstName = "Tyler";
_lastName = "Durden";
switch (_side) do
if(SC_useRealNames) then
{
case "survivor":
switch (_side) do
{
_firstName = SC_SurvivorFirstNames call BIS_fnc_selectRandom;
_lastName = SC_SurvivorLastNames call BIS_fnc_selectRandom;
case "survivor":
{
_firstName = SC_SurvivorFirstNames call BIS_fnc_selectRandom;
_lastName = SC_SurvivorLastNames call BIS_fnc_selectRandom;
};
case "bandit":
{
_firstName = SC_BanditFirstNames call BIS_fnc_selectRandom;
_lastName = SC_BanditLastNames call BIS_fnc_selectRandom;
};
};
case "bandit":
{
_firstName = SC_BanditFirstNames call BIS_fnc_selectRandom;
_lastName = SC_BanditLastNames call BIS_fnc_selectRandom;
};
};
_name = format["%1 %2",_firstName,_lastName];
_name
_name = format["%1 %2",_firstName,_lastName];
_name
};

View File

@ -127,8 +127,9 @@ if(_side == "survivor") then { _currentSide = SC_SurvivorSide };
_wpPosition = _highest;
diag_log format ["Static Patrol %3 waypoint added - building: %1 position: %2",_y,_highest,_group];
_i = _buildingPositions find _wpPosition;
_wp = _group addWaypoint [_wpPosition, 0] ;
_wp = _group addWaypoint [_wpPosition, 5] ;
_wp setWaypointBehaviour "AWARE";
_wp setWaypointSpeed "NORMAL";
_wp setWaypointCombatMode "RED";
_wp setWaypointCompletionRadius 1;
_wp waypointAttachObject _y;
@ -137,10 +138,15 @@ if(_side == "survivor") then { _currentSide = SC_SurvivorSide };
};
} foreach _buildings;
if(count _buildings > 0 && !isNil "_wp") then
if(count _buildings > 1 && !isNil "_wp") then
{
_wp setWaypointType "CYCLE";
};
}
else
{
_group setBehaviour "AWARE";
_group setCombatMode "RED";
};
};
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////