V41 Updates
This commit is contained in:
parent
ea9064414a
commit
907fda05a0
@ -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)
|
V40 (12-05-2016)
|
||||||
=================================================================================
|
=================================================================================
|
||||||
|
10
config.sqf
10
config.sqf
@ -160,7 +160,9 @@ SC_LootCrateItems = [
|
|||||||
["Exile_Item_WoodDoorwayKit",1,1],
|
["Exile_Item_WoodDoorwayKit",1,1],
|
||||||
["Exile_Item_WoodFloorPortKit",1,2],
|
["Exile_Item_WoodFloorPortKit",1,2],
|
||||||
["Exile_Item_Laptop",0,1],
|
["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 = [
|
SC_blackListedAreas = [
|
||||||
@ -236,6 +238,8 @@ SC_BoatClassToUse = [
|
|||||||
["Exile_Boat_MotorBoat_Police",1]
|
["Exile_Boat_MotorBoat_Police",1]
|
||||||
];
|
];
|
||||||
|
|
||||||
|
SC_useRealNames = true;
|
||||||
|
|
||||||
// Arrays of names used to generate names for AI
|
// 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_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"];
|
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_SurvivorSide";
|
||||||
publicVariable "SC_BanditSide";
|
publicVariable "SC_BanditSide";
|
||||||
|
|
||||||
// Override a few DMS settings
|
|
||||||
//DMS_Show_Kill_Poptabs_Notification = false;
|
|
||||||
//DMS_Show_Kill_Respect_Notification = false;
|
|
||||||
|
|
||||||
SC_CompiledOkay = true;
|
SC_CompiledOkay = true;
|
@ -2,7 +2,7 @@
|
|||||||
//
|
//
|
||||||
// Server Occupation script by second_coming
|
// 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/
|
// http://www.exilemod.com/profile/60-second_coming/
|
||||||
//
|
//
|
||||||
|
@ -6,6 +6,11 @@ _unit = _this select 2;
|
|||||||
|
|
||||||
if(isPlayer _unit) then
|
if(isPlayer _unit) then
|
||||||
{
|
{
|
||||||
|
_group = group _vehicle;
|
||||||
|
{
|
||||||
|
if(!alive _x) then { _x action ["EJECT", _vehicle]; };
|
||||||
|
}forEach units _group;
|
||||||
|
|
||||||
[_vehicle] call SC_fnc_vehicleDestroyed;
|
[_vehicle] call SC_fnc_vehicleDestroyed;
|
||||||
|
|
||||||
if(SC_extendedLogging) then
|
if(SC_extendedLogging) then
|
||||||
|
@ -72,7 +72,7 @@ if(_launcherChance < 40 OR isNil "_launcher") then { _launcher = ""; };
|
|||||||
if(_weapon != "") then
|
if(_weapon != "") then
|
||||||
{
|
{
|
||||||
_weaponMagazinesToAdd = getArray (configFile >> "CfgWeapons" >> _weapon >> "magazines");
|
_weaponMagazinesToAdd = getArray (configFile >> "CfgWeapons" >> _weapon >> "magazines");
|
||||||
_weaponMagazineAmount = 1 + round random (1);
|
_weaponMagazineAmount = 2 + round random (1);
|
||||||
_magazines pushBack [_weaponMagazinesToAdd select 0,_weaponMagazineAmount];
|
_magazines pushBack [_weaponMagazinesToAdd select 0,_weaponMagazineAmount];
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -80,7 +80,7 @@ if(_weapon != "") then
|
|||||||
if(_pistol != "") then
|
if(_pistol != "") then
|
||||||
{
|
{
|
||||||
_pistolMagazinesToAdd = getArray (configFile >> "CfgWeapons" >> _pistol >> "magazines");
|
_pistolMagazinesToAdd = getArray (configFile >> "CfgWeapons" >> _pistol >> "magazines");
|
||||||
_pistolMagazineAmount = 1 + round random (1);
|
_pistolMagazineAmount = 2 + round random (1);
|
||||||
_magazines pushBack [_pistolMagazinesToAdd select 0,_pistolMagazineAmount];
|
_magazines pushBack [_pistolMagazinesToAdd select 0,_pistolMagazineAmount];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -3,18 +3,21 @@ _side = _this select 0;
|
|||||||
_firstName = "Tyler";
|
_firstName = "Tyler";
|
||||||
_lastName = "Durden";
|
_lastName = "Durden";
|
||||||
|
|
||||||
switch (_side) do
|
if(SC_useRealNames) then
|
||||||
{
|
{
|
||||||
case "survivor":
|
switch (_side) do
|
||||||
{
|
{
|
||||||
_firstName = SC_SurvivorFirstNames call BIS_fnc_selectRandom;
|
case "survivor":
|
||||||
_lastName = SC_SurvivorLastNames call BIS_fnc_selectRandom;
|
{
|
||||||
};
|
_firstName = SC_SurvivorFirstNames call BIS_fnc_selectRandom;
|
||||||
case "bandit":
|
_lastName = SC_SurvivorLastNames call BIS_fnc_selectRandom;
|
||||||
{
|
};
|
||||||
_firstName = SC_BanditFirstNames call BIS_fnc_selectRandom;
|
case "bandit":
|
||||||
_lastName = SC_BanditLastNames call BIS_fnc_selectRandom;
|
{
|
||||||
|
_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
|
|
@ -127,8 +127,9 @@ if(_side == "survivor") then { _currentSide = SC_SurvivorSide };
|
|||||||
_wpPosition = _highest;
|
_wpPosition = _highest;
|
||||||
diag_log format ["Static Patrol %3 waypoint added - building: %1 position: %2",_y,_highest,_group];
|
diag_log format ["Static Patrol %3 waypoint added - building: %1 position: %2",_y,_highest,_group];
|
||||||
_i = _buildingPositions find _wpPosition;
|
_i = _buildingPositions find _wpPosition;
|
||||||
_wp = _group addWaypoint [_wpPosition, 0] ;
|
_wp = _group addWaypoint [_wpPosition, 5] ;
|
||||||
_wp setWaypointBehaviour "AWARE";
|
_wp setWaypointBehaviour "AWARE";
|
||||||
|
_wp setWaypointSpeed "NORMAL";
|
||||||
_wp setWaypointCombatMode "RED";
|
_wp setWaypointCombatMode "RED";
|
||||||
_wp setWaypointCompletionRadius 1;
|
_wp setWaypointCompletionRadius 1;
|
||||||
_wp waypointAttachObject _y;
|
_wp waypointAttachObject _y;
|
||||||
@ -137,9 +138,14 @@ if(_side == "survivor") then { _currentSide = SC_SurvivorSide };
|
|||||||
|
|
||||||
};
|
};
|
||||||
} foreach _buildings;
|
} foreach _buildings;
|
||||||
if(count _buildings > 0 && !isNil "_wp") then
|
if(count _buildings > 1 && !isNil "_wp") then
|
||||||
{
|
{
|
||||||
_wp setWaypointType "CYCLE";
|
_wp setWaypointType "CYCLE";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
_group setBehaviour "AWARE";
|
||||||
|
_group setCombatMode "RED";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user