V31 changes & tweaks

This commit is contained in:
second_coming 2016-04-27 11:09:01 +01:00
parent 9ebc92a382
commit 0d36154abc
9 changed files with 33 additions and 33 deletions

View File

@ -2,7 +2,7 @@
//
// Server Occupation script by second_coming
//
SC_occupationVersion = "v30 (27-04-2016)";
SC_occupationVersion = "v31 (27-04-2016)";
//
// http://www.exilemod.com/profile/60-second_coming/
//

View File

@ -1,3 +1,8 @@
V28-V31 (27-04-2016)
Altereed a few eventhandlers
Fixed multiple static spawns so they are independent of each other
V27 (26-04-2016) Development Update
Added the option fully control the gear assigned to bandit and survivor units
@ -7,5 +12,3 @@ Added the option for helicopters as public transport, the heli travels between t
Added the option to set the maximum crew (crew count will be a random number between the max and min). The applies for all AI vehicles.
Added a separate SC_VehicleClassToUseRare list of vehicles which spawn 10% of the time in place of the standard SC_VehicleClassToUse list.
V26 is now the master release on github

View File

@ -33,15 +33,6 @@ _logDetail = format ["[OCCUPATION:Unstick]:: Initialised at %1",time];
sleep 5;
}forEach SC_liveBoatsArray;
/*
{
_logDetail = format ["[OCCUPATION:Unstick]:: Transport: %1 is active",_x];
[_logDetail] call SC_fnc_log;
_x setFuel 1;
[_x] call SC_fnc_comeUnstuck;
sleep 5;
}forEach SC_transportArray;
*/
_logDetail = format ["[OCCUPATION:Unstick]:: Finished at %1",time];
[_logDetail] call SC_fnc_log;

View File

@ -57,6 +57,10 @@ _logDetail = format['[OCCUPATION:Traders] starting @ %1',time];
_group = createGroup resistance;
_group setCombatMode "BLUE";
{
}forEach tradersToAdd;
_traderPosition = _traderPos findEmptyPosition [0,25];
"Exile_Trader_CommunityCustoms" createUnit [_traderPosition, _group, "trader = this;"];
trader setVariable ["ExileTraderType", "Exile_Trader_CommunityCustoms",true];

View File

@ -28,8 +28,3 @@ else
};
};

View File

@ -1,11 +1,12 @@
// Triggered if a player gets off the public bus
// removes the addaction to stop the bus
_bus = _this select 0;
// Triggered if a player gets off the public transport
_transport = _this select 0;
_unit = _this select 2;
_bus setFuel 0;
_busDriver = driver _bus;
_busDriver disableAI "MOVE";
_bus animateDoor ["Doors_1", 1];
_bus animateDoor ["Doors_2", 1];
_bus animateDoor ["Doors_3", 1];
if(_transport isKindOf "LandVehicle") then
{
_transport setFuel 0;
_transportDriver = driver _transport;
_transportDriver disableAI "MOVE";
};

View File

@ -1,5 +1,5 @@
// Triggered if a player gets on the public bus
// adds an addaction to stop the bus
_bus = _this select 0;
// Triggered if a player gets on the public transport
_transport = _this select 0;
_unit = _this select 2;

View File

@ -3,6 +3,7 @@ _unit = _this select 0;
_staticUID = _unit getVariable "SC_staticUID";
_spawnPosition = _unit getVariable "SC_staticSpawnPos";
_unit removeAllMPEventHandlers "mphit";
_group = group _unit;

View File

@ -16,6 +16,11 @@ if (SC_fastNights) then
[60, fnc_checkMultiplier, [], true] call ExileServer_system_thread_addTask;
};
if() then
{
};
if(SC_occupyTraders) then
{
uiSleep 15; // delay the start