V36 Fixes

This commit is contained in:
second_coming 2016-05-05 13:25:59 +01:00
parent e9061a2e44
commit 4c3bd98321
6 changed files with 11 additions and 6 deletions

View File

@ -1,5 +1,10 @@
================================================================================= =================================================================================
V35 (03-05-2016) V36 (05-05-2016)
=================================================================================
Fixed the checks for valid vehicles in Sky, Sea and Vehicle modules
=================================================================================
V35 (05-05-2016)
================================================================================= =================================================================================
Added checks for valid vehicles in Sky, Sea and Vehicle modules Added checks for valid vehicles in Sky, Sea and Vehicle modules
Added the ability to add names to be used for AI Added the ability to add names to be used for AI

View File

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

View File

@ -63,7 +63,7 @@ _pistolAttachmentsChance = round (random 100);
if(_pistolAttachmentsChance < 50) then { _pistolAttachments = [""]; }; if(_pistolAttachmentsChance < 50) then { _pistolAttachments = [""]; };
_backpackChance = round (random 100); _backpackChance = round (random 100);
if(_backpackChance < 40) then { _backpack = ""; }; if(_backpackChance < 30) then { _backpack = ""; };
_launcherChance = round (random 100); _launcherChance = round (random 100);
if(_launcherChance < 40 OR isNil "_launcher") then { _launcher = ""; }; if(_launcherChance < 40 OR isNil "_launcher") then { _launcher = ""; };

View File

@ -48,7 +48,7 @@ for "_i" from 1 to _vehiclesToSpawn do
_VehicleClassToUse = SC_BoatClassToUse call BIS_fnc_selectRandom; _VehicleClassToUse = SC_BoatClassToUse call BIS_fnc_selectRandom;
_vehicle = createVehicle [_VehicleClassToUse, _spawnLocation, [], 0, "NONE"]; _vehicle = createVehicle [_VehicleClassToUse, _spawnLocation, [], 0, "NONE"];
if(_vehicle) then if(!isNull _vehicle) then
{ {
_vehicle setPosASL _spawnLocation; _vehicle setPosASL _spawnLocation;
_vehicle setVariable["vehPos",_spawnLocation,true]; _vehicle setVariable["vehPos",_spawnLocation,true];

View File

@ -73,7 +73,7 @@ for "_i" from 1 to _vehiclesToSpawn do
_VehicleClassToUse = SC_HeliClassToUse call BIS_fnc_selectRandom; _VehicleClassToUse = SC_HeliClassToUse call BIS_fnc_selectRandom;
_vehicle = createVehicle [_VehicleClassToUse, _spawnLocation, [], 0, "NONE"]; _vehicle = createVehicle [_VehicleClassToUse, _spawnLocation, [], 0, "NONE"];
if(_vehicle) then if(!isNull _vehicle) then
{ {
_group addVehicle _vehicle; _group addVehicle _vehicle;
_vehicle setVariable["vehPos",_spawnLocation,true]; _vehicle setVariable["vehPos",_spawnLocation,true];

View File

@ -131,7 +131,7 @@ if(_vehiclesToSpawn >= 1) then
_vehicle = createVehicle [_VehicleClassToUse, _spawnLocation, [], 0, "NONE"]; _vehicle = createVehicle [_VehicleClassToUse, _spawnLocation, [], 0, "NONE"];
if(_vehicle) then if(!isNull _vehicle) then
{ {
_group addVehicle _vehicle; _group addVehicle _vehicle;