Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as text by Jefke ( 17 years ago )
// ====================================================================================
// BAS f - Debug Mode
// Version: 0-0-2 (2007-07-23)
// Author(s): Fer | Messiah2
// WARNING: DO NOT DISABLE THIS COMPONENT
f_var_debugMode = 0;
if ((Param1 == 99) || (Param2 == 99)) then
{
f_var_debugMode = 1;
};
// ====================================================================================
// BAS f - BAS Server Logic Failsafe
// Version: 0-0-1 (2007-07-23)
// Author(s): zx64
// Thanks: rom | Serclaes
// WARNING: DO NOT DISABLE THIS COMPONENT
if (isServer) then
{
if (isNil("BAS_Server_Logic")) then
{
createCenter sideLogic;
_g = createGroup sideLogic;
"Logic" createUnit [[0,0,0], _g, "BAS_Server_Logic = this"];
};
};
// ====================================================================================
// BAS f - Local Variables
// Version: 0-0-5 (2007-05-21)
// Author(s): Fer | Raedor
// WARNING: DO NOT DISABLE THIS COMPONENT
f_script_setLocalVars = [] execVM "fcommonf_setLocalVars.sqf";
// ====================================================================================
// BAS f - Mission Conditions Selector
// Version: 0-0-1 (2007-01-03)
// Author(s): Fer
// Translators: Donnervogel | Serclaes | Messiah2 | Gaia | FireflyPL | Kanotson | Varry
[] execVM "fcommonf_setMissionConditions.sqf";
// ====================================================================================
// BAS f - AI Skill Selector (Coop Version)
// Version: 0-0-5 (2007-05-16)
// Author(s): Fer | Raedor
// Translators: Donnervogel | Serclaes | Messiah2 | Gaia | FireflyPL | Kanotson | Varry
f_isFriendlyBLU = 1;
f_isFriendlyRES = 1;
f_isFriendlyOPF = 0;
f_isFriendlyCIV = 1;
// [] execVM "fcommonf_setAISkill.sqf";
// ====================================================================================
// BAS f - AI Skill Selector (Attack & Defend Version)
// Version: 0-0-2 (2007-05-16)
// Author(s): Fer | Raedor
// Translators: Donnervogel | Serclaes | Messiah2 | Gaia | FireflyPL | Kanotson | Varry
f_isFriendlyToBLU_RES = 1;
f_isFriendlyToBLU_CIV = 1;
// [] execVM "fcommonf_setAISkillAD.sqf";
// ====================================================================================
// BAS f - Multiplayer Ending Controller
// Version: 0-0-3 (2007-05-21)
// Author(s): Fer | Rom | Raedor
f_endSelected = -1;
[] execVM "fcommonf_mpEndSetUp.sqf";
// ====================================================================================
// BAS f - Automatic Body Remover
// Version: 0-0-3 (2007-05-21)
// Author(s): Fer | Raedor
f_removeBodyDelay = 180;
f_doNotRemoveBodies = [];
// [] execVM "fcommonf_addRemoveBodyEH.sqf";
// ====================================================================================
// BAS f - Automatic Body Remover (FIFO Version)
// Version: 0-0-2 (2007-07-25)
// Author(s): Raedor
// f_abrFIFOlength = 30;
// f_abrDistance = 150;
// f_abrFIFOmaxLength = 50;
// f_doNotRemoveBodies = [];
// ["fifo"] execVM "fcommonf_addRemoveBodyEH.sqf";
// [] execVM "fserverf_abrFIFO.sqf";
// ====================================================================================
// BAS f - Hide Enemy Objectives
// Version: 0-0-3 (2007-05-21)
// Author(s): Fer | Raedor
f_objectives_BLU = ["1","2","3","4","5","6"];
f_objectives_OPF = ["7","8","9","10","11","12"];
f_objectives_RES = ["13","14","15","16","17","18"];
f_objectives_CIV = ["19","20","21","22","23","24"];
#include "fcommonf_hideEnemyObjectives.sqf"
// ====================================================================================
// BAS f - Authorised Crew Check
// Version: 0-0-4 (2007-05-21)
// Author(s): Fer | Rom | eJay | Raedor
// Translators: Donnervogel | Serclaes | Messiah2 | Gaia | FireflyPL | Kanotson | Varry
// VehicleName addEventhandler ["GetIn", {[_this,[UnitName1,UnitName2]] execVM
"fcommonf_isAuthorisedCrew.sqf"}];
// ====================================================================================
// BAS f - Authorised Crew Type Check
// Version: 0-0-1 (2007-06-6)
// Author(s): Fer | Rom | eJay | Raedor
// Translators: Donnervogel | Serclaes | Messiah2 | Gaia | FireflyPL | Kanotson | Varry
// VehicleName addEventhandler ["GetIn", {[_this,["UnitType1","UnitType2"]] execVM
"fcommonf_isAuthorisedCrewType.sqf"}];
// ====================================================================================
// BAS f - Kegetys Spectator Script for ArmA
// Version: 1-01 (BAS f Edit)
// Author(s): Kegetys
[] execVM "fcommonf_spectspecta_init.sqf";
// ====================================================================================
// BAS f - Dynamic View Distance
// Version: 0-0-4 (2007-05-21)
// Author(s): Fer | Raedor
f_viewDistance_default = 1250;
f_viewDistance_tank = 2000;
f_viewDistance_rotaryWing = 2000;
f_viewDistance_fixedWing = 5000;
// [] execVM "fcommonf_addSetViewDistanceEHs.sqf";
// ====================================================================================
// BAS f - ShackTactical - Group IDs
// Version: 0-0-3 (2007-09-10)
// Author(s): Kevb0 | zx64 | Fer | Messiah2
[] execVM "fcommonShackTac_setGroupIDs.sqf";
// ====================================================================================
// BAS f - ShackTactical - Fireteam Markers
// Version: 0-0-2 (2007-07-19)
// Author(s): Fer | Raedor
// [] execVM "fcommonShackTac_setlocalFTMarkers.sqf";
// ====================================================================================
// BAS f - ShackTactical - Fireteam Markers (Addon Version)
// Version: 0-0-1 (2007-07-19)
// Author(s): Fer | Raedor
[] execVM "fcommon@ShackTac_setlocalFTMarkers.sqf";
// ====================================================================================
// BAS f - ShackTactical - Markers
// Version: 0-0-7 (2007-07-23)
// Author(s): Fer | Raedor
// [] execVM "fcommonShackTac_setLocalMarkers.sqf";
// ShackTac_requireRadio = 0;
// ====================================================================================
// BAS f - ShackTactical - Markers (Addon Version)
// Version: 0-0-2 (2007-07-23)
// Author(s): Fer | Raedor
[] execVM "fcommon@ShackTac_setLocalMarkers.sqf";
// ShackTac_requireRadio = 0;
// ====================================================================================
// BAS f - Casualties Cap
// Version: 0-0-5 (2007-05-25)
// Author(s): Fer | Headspace
// [[f_GrpBLU11A],100,1] execVM "fserverf_endOnCasualtiesCap.sqf";
// ====================================================================================
// BAS f - Casualties Cap (Advanced)
// Version: 0-0-1 (2007-10-05)
// Author(s): Fer
// [[f_GrpBLU11A],100] execVM "fserverf_casualtiesCapAdv.sqf";
// ====================================================================================
locations = [A,B,C,D,E,F,G];
startlocations = [start];
locationnum = 0;
locationstartnum = 0;
heloPosX = 0;
heloPosY = 0;
heloareaX = 0;
heloAreaY = 0;
heloPosX1 = 0;
heloPosY1 = 0;
heloareaX1 = 0;
heloAreaY1 = 0;
eSpawn1 = [];
eSpawn2 = [];
objDestroyed = 0;
objRetrieved = 0;
objRescued = 0;
objEliminated = 0;
bearing1 = 0;
bearing2 = 0;
if isServer then
{
locationnum = (round random 6);
locationstartnum = 0;
_heloArea = (getPos (startlocations select locationstartnum));
heloAreaX = (_heloArea select 0);
heloAreaY = (_heloArea select 1);
heloPosX = (heloAreaX + round random 20);
heloPosY = (heloAreaY + round random 20);
_heloArea1 = (getPos (locations select locationnum));
heloAreaX1 = (_heloArea1 select 0);
heloAreaY1 = (_heloArea1 select 1);
heloPosX1 = (heloAreaX1 + round random 20);
heloPosY1 = (heloAreaY1 + round random 20);
bearing1 = round random 45;
bearing2 = round random 45;
bearing3 = round random 45;
bearing4 = round random 45;
eSpawn1 = [(800 * sin(bearing1)), (800 * cos(bearing1))];
eSpawn2 = [(800 * sin(bearing2)), (800 * cos(bearing2))];
eSpawn3 = [(800 * sin(bearing2)), (800 * cos(bearing2))];
eSpawn4 = [(800 * sin(bearing2)), (800 * cos(bearing2))];
while {(surfaceIsWater[((eSpawn1 select 0) + heloPosX), ((eSpawn1 select 1) +
heloPosY)])} do
{
bearing1 = round random 360;
eSpawn1 = [(800 * sin(bearing1)), (800 * cos(bearing1))];
};
sleep 1;
publicVariable "heloPosX";
sleep 1;
publicVariable "heloPosY";
sleep 1;
publicVariable "heloAreaX";
sleep 1;
publicVariable "heloAreaY";
sleep 1;
sleep 1;
publicVariable "heloPosX1";
sleep 1;
publicVariable "heloPosY1";
sleep 1;
publicVariable "heloAreaX1";
sleep 1;
publicVariable "heloAreaY1";
sleep 1;
publicVariable "eSpawn1";
sleep 1;
truck setPos [heloPosX, heloPosY, 0];
//"Bo_GBU12_LGB" createVehicle [heloPosX, HeloPosY, 2];
truck setdamage 1;
truckdriver setpos [(heloPosX + random 30 +5 ),(heloPosY + random 30 + 5), 0];
ammo3 setpos [(heloPosX + random 30),(heloPosY + random 30), 0];
ammo5 setpos [(heloPosX + random 30),(heloPosY + random 30), 0];
truckdriver2 setpos [(heloPosX + random 30 + 5),(heloPosY + random 30 + 5), 0];
truckdriver setDamage 1;
truckdriver2 setDamage 1;
ammo1 setpos [(heloPosX1 + 30),(heloPosY1 + 30), 0];
ammo2 setpos [(heloPosX1 + 20),(heloPosY1 + 20), 0];
ammo4 setpos [(heloPosX1 + 10),(heloPosY1 + 10), 0];
//};
//if !(isServer) then
//{
player removeweapon "NVGoggles";
sleep 1;
hint "Standby - Mission Initializing";
sleep 15;
if (player in list Wstarttrig) then
{
hint "Standby - Updating Markers";
"arrow1" setMarkerPos (getPos A);
"arrow2" setMarkerPos (getPos B);
"arrow3" setMarkerPos (getPos C);
"arrow4" setMarkerPos (getPos D);
"arrow5" setMarkerPos (getPos E);
"arrow6" setMarkerPos (getPos F);
"arrow7" setMarkerPos (getPos G);
"hotlz" setMarkerPos (getPos start);
hint "Standby - Markers Ready, get ready for Teleport";
sleep 1;
hint "Standby - Teleporting";
preloadCamera [heloPosX, heloPosY, 0];
sleep 3;
player setpos [(heloPosX + random 15 - random 30),(heloPosY + random 15 -
random 30), 0];
hint "Standby - Done";
};
if (player in list EstarttrigA) then
{
hint "Standby - Updating Markers";
"arrow1" setMarkerPos (getPos A);
"arrow2" setMarkerPos (getPos B);
"arrow3" setMarkerPos (getPos C);
"arrow4" setMarkerPos (getPos D);
"arrow5" setMarkerPos (getPos E);
"arrow6" setMarkerPos (getPos F);
"arrow7" setMarkerPos (getPos G);
"hotlz" setMarkerPos (getPos start);
hint "Standby - Markers Ready, get ready for Teleport";
sleep 1;
hint "Standby - Teleporting";
sleep 1;
preloadCamera [(heloPosX1), ( heloPosY1), 0];
sleep 3;
player setpos [(heloPosX1) - random 25, (heloPosY1) - random 25, 0];
hint "Standby - Done";
};
};
if !(isServer) then
{
if (player in list Wstarttrig2) then
{
deleteMarkerLocal "arrow1";
deleteMarkerLocal "arrow2";
deleteMarkerLocal "arrow3";
deleteMarkerLocal "arrow4";
deleteMarkerLocal "arrow5";
deleteMarkerLocal "arrow6";
deleteMarkerLocal "arrow7";
deleteMarkerLocal "hotlz";
hint "Standby - Heli's spawning in 1 min";
};
};
if isServer then
{
sleep 60;
//alarmtrigger setPos (getPos Wstarttrig2);
[] execVM "vroem.sqf";
};
if (true) exitWith {};
Revise this Paste
Children: 4778