diff --git a/changeLog.txt b/changeLog.txt index 1e1562d..f9073ef 100644 --- a/changeLog.txt +++ b/changeLog.txt @@ -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 the ability to add names to be used for AI diff --git a/initServer.sqf b/initServer.sqf index 2c68422..3352ed5 100644 --- a/initServer.sqf +++ b/initServer.sqf @@ -2,7 +2,7 @@ // // 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/ // diff --git a/scripts/functions/fnc_selectGear.sqf b/scripts/functions/fnc_selectGear.sqf index 68061e2..2dd207b 100644 --- a/scripts/functions/fnc_selectGear.sqf +++ b/scripts/functions/fnc_selectGear.sqf @@ -63,7 +63,7 @@ _pistolAttachmentsChance = round (random 100); if(_pistolAttachmentsChance < 50) then { _pistolAttachments = [""]; }; _backpackChance = round (random 100); -if(_backpackChance < 40) then { _backpack = ""; }; +if(_backpackChance < 30) then { _backpack = ""; }; _launcherChance = round (random 100); if(_launcherChance < 40 OR isNil "_launcher") then { _launcher = ""; }; diff --git a/scripts/occupationSea.sqf b/scripts/occupationSea.sqf index c568fe5..8dca51b 100644 --- a/scripts/occupationSea.sqf +++ b/scripts/occupationSea.sqf @@ -48,7 +48,7 @@ for "_i" from 1 to _vehiclesToSpawn do _VehicleClassToUse = SC_BoatClassToUse call BIS_fnc_selectRandom; _vehicle = createVehicle [_VehicleClassToUse, _spawnLocation, [], 0, "NONE"]; - if(_vehicle) then + if(!isNull _vehicle) then { _vehicle setPosASL _spawnLocation; _vehicle setVariable["vehPos",_spawnLocation,true]; diff --git a/scripts/occupationSky.sqf b/scripts/occupationSky.sqf index ad4b606..cd66dad 100644 --- a/scripts/occupationSky.sqf +++ b/scripts/occupationSky.sqf @@ -73,7 +73,7 @@ for "_i" from 1 to _vehiclesToSpawn do _VehicleClassToUse = SC_HeliClassToUse call BIS_fnc_selectRandom; _vehicle = createVehicle [_VehicleClassToUse, _spawnLocation, [], 0, "NONE"]; - if(_vehicle) then + if(!isNull _vehicle) then { _group addVehicle _vehicle; _vehicle setVariable["vehPos",_spawnLocation,true]; diff --git a/scripts/occupationVehicle.sqf b/scripts/occupationVehicle.sqf index 6df22f3..ccd04d4 100644 --- a/scripts/occupationVehicle.sqf +++ b/scripts/occupationVehicle.sqf @@ -131,7 +131,7 @@ if(_vehiclesToSpawn >= 1) then _vehicle = createVehicle [_VehicleClassToUse, _spawnLocation, [], 0, "NONE"]; - if(_vehicle) then + if(!isNull _vehicle) then { _group addVehicle _vehicle;