V36 Fixes
This commit is contained in:
parent
e9061a2e44
commit
4c3bd98321
@ -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
|
||||||
|
@ -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/
|
||||||
//
|
//
|
||||||
|
@ -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 = ""; };
|
||||||
|
@ -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];
|
||||||
|
@ -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];
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user