Skip to content

Instantly share code, notes, and snippets.

@phumberdroz
Created April 12, 2015 19:38
Show Gist options
  • Save phumberdroz/a0dab1f2789df719f129 to your computer and use it in GitHub Desktop.
Save phumberdroz/a0dab1f2789df719f129 to your computer and use it in GitHub Desktop.
// --- TICKET SYSTEM & LOGGING ----------------------------------------------------------------------------------------------------------------------
// Modify this value to change the initial ticket count.
#define ACE3 0
#define ACRE 0
TICKETS_WEST = 100;
// Max Tickets the Team may ever have - tickets gained beyond that point are lost
TICKETS_SOFTCAP = 100;
TICKETS_HARDCAP = 120;
// This is the Mission ID for the Database Log - set to 0 to disable DB Logging
// 0 ... disabled
// 1 ... Takistan Domination
// 2 ... Fallujah Insurgency
// 3 ... Reshmaan Patrol Ops
// 4 ... Takistan Domination Mod Version
// 5 ... Takistan Domination Gefechtsübungszentrum (GUeZ) Version
// 7 ... ISLA DI CAPRAIA PatrolOps Mod
// 99 ... Development Server
TF47_MISSIONID = 99;
// Mission Name/Version Info for Log
TF47_MISSIONINFO = "{MISSIONINFO}";
// ACRE Info
_ACREChannelID = 411;
_ACREChannelPW = "mz9ZkY";
_ACREBlackout = true;
_pathtoscripts = "tf47CoreScripts\";
// _infantryStaminaClass = "US_Delta_Force_EP1";
// --- DESPAWN PREVENTION MARKERS -------------------------------------------------------------------------------------------------------------------
_despawnPreventionMarkers = [
["DespawnZoneCenter1", 200]
];
// --- BASE CLEAN-UP MARKERS ------------------------------------------------------------------------------------------------------------------------
// see basecleanup.sqf for details
// Markers to Check for Base Clean-up Process
// [Marker Name, Clean-up Distance]
_baseCleanupMarkers = [
["respawn_west", 30],
["ammo", 20],
["vehicle_service_2", 20],
["vehicle_service_1", 20],
["air_service_1", 20]
];
// --- MAP CONTROL MARKERS --------------------------------------------------------------------------------------------------------------------------
// see mcmarker.sqf and mcmarkerchange.sqf for details
_statusMarkersInit = false;
_statusMarkerData = [
["mc1", ["mc1marker", "CommandTeam", "ColorGreen", "CCT - Command and Control ""SHEPHERD""", true]],
["mc2", ["mc2marker", "CommandTeam", "ColorGreen", "CCT - 1st Joint Terminal Attack Controller ""REAPER-01""", true]],
//["mc3", ["mc3marker", "CommandTeam", "ColorGreen", "CCT - 2nd Joint Terminal Attack Controller ""REAPER-01""", true]],
["mc3", ["mc4marker", "AirTeam", "ColorGreen", "Air Traffic Control ""TOWER""", true]],
//["mc5", ["mc5marker", "Headquarters", "ColorGreen", "TOC - Tactical Operations Center ""GODFATHER""", true]],
["raven1", ["callsign_raven1", "b_air", "ColorBrown", "RAVEN-01", false]],
["raven2", ["callsign_raven2", "b_air", "ColorBrown", "RAVEN-02", false]],
["butterfly1", ["callsign_butterfly1", "b_air", "ColorBrown", "BUTTERFLY-01", false]],
["firefly1", ["callsign_firefly1", "b_air", "ColorBrown", "FIREFLY-01", false]],
["merlin1", ["callsign_merlin1", "b_air", "ColorBrown", "MERLIN-01", false]],
["pelican1", ["callsign_pelican1", "b_air", "ColorBrown", "PELICAN-01", false]],
["dragon1", ["callsign_dragon1", "b_air", "ColorOrange", "DRAGON-01", false]],
["dragon2", ["callsign_dragon2", "b_air", "ColorOrange", "DRAGON-02", false]],
["thunderbird1",["callsign_thunderbird1", "b_plane", "ColorOrange", "THUNDERBIRD-01", false]],
["hornet1", ["callsign_hornet1", "b_plane", "ColorOrange", "HORNET-01", false]],
// F15c
//["strike1", ["callsign_strike1", "b_plane", "ColorOrange", "STRIKE-01", false]],
//["strike2", ["callsign_strike2", "b_plane", "ColorOrange", "STRIKE-02", false]],
["albatros1", ["callsign_albatros1", "b_plane", "ColorOrange", "ALBATROS-01", false]],
["albatros2", ["callsign_albatros2", "b_plane", "ColorOrange", "ALBATROS-02", false]],
["tiger1", ["callsign_tiger1", "b_mech_inf", "ColorOrange", "TIGER-01", false]],
["tiger2", ["callsign_tiger2", "b_mech_inf", "ColorOrange", "TIGER-02", false]],
["rhino1", ["callsign_tiger2", "b_mech_inf", "ColorOrange", "DUCKBILL-01", false]],
["rhino1", ["callsign_tiger2", "b_mech_inf", "ColorOrange", "DUCKBILL-02", false]],
["puma1", ["callsign_tiger2", "b_mech_inf", "ColorOrange", "PUMA-01", false]],
["puma2", ["callsign_tiger2", "b_mech_inf", "ColorOrange", "PUMA-02", false]]
];
_statusMarkers = [_statusMarkerData, []] call CBA_fnc_hashCreate;
// --- LIFT RULES -----------------------------------------------------------------------------------------------------------------------------------
// see vehicleOnSpawn.sqf
// _LiftHelicopters = ["seagull1","seagull2","pelican1"];
// _NoLiftHelicopters = ["crow1", "crow2", "dustoff1", "griffin1", "goose1", "manticore1"];
// --- No JUMP OUT VEH -----------------------------------------------------------------------------------------------------------------------------------
// see vehicleOnEnter.sqf
_JumpOutHelicopters = ["crow1","crow2","dustoff1"];
// --- VEHICLE RESTRICTIONS -------------------------------------------------------------------------------------------------------------------------
// Vehicle Name, Driver Whitelist ID (0 for None), Crew Whitelist ID (0 for None), Driver Slots, Crew Slots
_vehicleRestrictionData = [
["raven1", [1, 1, ["rotwt11","rotwt12","rotwt21","rotwt22","mc2","mc3"], ["rotwt11","rotwt12","rotwt13","rotwt14","rotwt15","rotwt21","rotwt22","rotwt23","rotwt24"]]],
["raven2", [1, 1, ["rotwt11","rotwt12","rotwt21","rotwt22","mc2","mc3"], ["rotwt11","rotwt12","rotwt13","rotwt14","rotwt15","rotwt21","rotwt22","rotwt23","rotwt24"]]],
["butterfly1", [1, 1, ["rotwt11","rotwt12","rotwt21","rotwt22","mc2","mc3"], ["rotwt11","rotwt12","rotwt13","rotwt14","rotwt15","rotwt21","rotwt22","rotwt23","rotwt24"]]],
["butterfly2", [1, 1, ["rotwt11","rotwt12","rotwt21","rotwt22","mc2","mc3"], ["rotwt11","rotwt12","rotwt13","rotwt14","rotwt15","rotwt21","rotwt22","rotwt23","rotwt24"]]],
["pelican1", [1, 1, ["rotwt11","rotwt12","rotwt21","rotwt22","mc2","mc3"], ["rotwt11","rotwt12","rotwt13","rotwt14","rotwt15","rotwt21","rotwt22","rotwt23","rotwt24"]]],
["dragon1", [1, 1, ["rotwa11","rotwa21","mc2","mc3"], ["rotwa12","rotwa22"]]],
["dragon2", [1, 1, ["rotwa21","rotwa11,mc2","mc3"], ["rotwa22","rotwa12"]]],
["firefly1", [1, 1, ["rotwt11","rotwt12","rotwt21","rotwa11","rotwa21","rotwt22","mc2","mc3"], ["rotwt11","rotwt12","rotwt13","rotwt14","rotwt15","rotwt21","rotwt22","rotwt23","rotwt24"]]],
["hornet1", [1, 1, ["fixwa11","mc2","mc3"], ["fixwa12"]]],
["hornet2", [1, 1, ["fixwa21","mc2","mc3"], []]],
["thunderbird1", [1, 1, ["fixwa31","mc2","mc3"], []]],
["albatros1", [1, 1, ["fixwa11","fixwa12","fixwa21","fixwa31","mc2","mc3"], []]],
//["towtrac1", [1, 0, ["rotwt11","rotwt12","rotwt21","rotwt22","fixwa11","fixwa12","fixwa13","mc4","mc5"], []]],
//["towtrac2", [1, 0, ["rotwt11","rotwt12","rotwt21","rotwt22","fixwa11","fixwa12","fixwa13","mc4","mc5"], []]],
["tiger1", [2, 2, ["armor11","armor21","armor11","armor12","armor13","armor21","armor22","armor23","mc5"], ["armor11","armor21","armor11","armor12","armor13","armor21","armor22","armor23"]]],
["tiger2", [2, 2, ["armor11","armor21","armor11","armor12","armor13","armor21","armor22","armor23","mc5"], ["armor11","armor21","armor11","armor12","armor13","armor21","armor22","armor23"]]],
["rhino1", [2, 2, ["armor11","armor21","armor11","armor12","armor13","armor21","armor22","armor23","mc5"], ["armor11","armor21","armor11","armor12","armor13","armor21","armor22","armor23"]]],
["rhino2", [2, 2, ["armor11","armor21","armor11","armor12","armor13","armor21","armor22","armor23","mc5"], ["armor11","armor21","armor11","armor12","armor13","armor21","armor22","armor23"]]],
["puma1", [2, 2, ["armor11","armor21","armor11","armor12","armor13","armor21","armor22","armor23","mc5"], ["armor11","armor21","armor11","armor12","armor13","armor21","armor22","armor23"]]],
["puma2", [2, 2, ["armor11","armor21","armor11","armor12","armor13","armor21","armor22","armor23","mc5"], ["armor11","armor21","armor11","armor12","armor13","armor21","armor22","armor23"]]]
];
_vehicleRestrictions = [_vehicleRestrictionData, []] call CBA_fnc_hashCreate;
// --- SECURE SLOTS ---------------------------------------------------------------------------------------------------------------------------------
// Slot Name, Whitelist ID
_secureSlots = [
["mc1", 3], // CCT Command and Control
["mc2", 3], // CCT 1st JTAC
["mc3", 1], // TOWER
["bis_curatorUnit", 4],
["bis_curatorUnit_1", 4],
["bis_curatorUnit_2", 4]
];
// --- ALL SLOTS ------------------------------------------------------------------------------------------------------------------------------------
// used by Domination for Playermarkers, etc...
_allslots = ["alphaact","alpha01","alpha11","alpha12","alpha13","alpha14","alpha15","alpha16","alpha21","alpha22","alpha23","alpha24","alpha25","alpha26","bravo01","bravoact","bravo11","bravo12","bravo13","bravo14","bravo15","bravo16","bravo21","bravo22","bravo23","bravo24","bravo25","bravo26","charlieact","charlie01","charlie21","charlie22","charlie23","charlie24","charlie25","charlie26","charlie11","charlie12","charlie13","charlie14","charlie15","charlie16","rotwt11","rotwt12","rotwt13","rotwt14","rotwt21","rotwt22","rotwt23","rotwt24","rotwa21","rotwa22","rotwa11","rotwa12","fixwa21","fixwa11","fixwa12","fixwa31","armor23","armor21","armor22","armor24","armor13","armor11","armor12","armor14","mc1","mc2","mc3","bis_curatorUnit","bis_curatorUnit_1","bis_curatorUnit_2"];
// --- Infantry Ticket Costs ------------------------------------------------------------------------------------------------------------------------
// Infantry: 2 Tickets
// Infantry Medics: 3 Tickets
// Sniper/Spotter: 2 Tickets
// Tank Crew: 3 Tickets
// Rotary Transport Pilot/AC: 5 Tickets
// Rotary Transport Crew: 2 Tickets
// Rotary Transport Air Medic: 3 Tickets
// Rotary Attack Pilot/AC/Gunner: 5 Tickets
// Fixed Attack Pilot: 10 Tickets
// Mission Control Slots: 10 Tickets
// Admin Slot: 0 Tickets
_infantryTicketsDefault = 2;
_infantryTicketsData = [
//["mace12", 3], ["mace22", 3], ["mace32", 3],
//["hammer12", 3], ["hammer22", 3], ["hammer32", 3],
["armor11", 3], ["armor12", 3], ["armor13", 3], ["armor14", 3],
["armor21", 3], ["armor22", 3], ["armor23", 3], ["armor14", 3],
["rotwt11", 5], ["rotwt12", 5], ["rotwt16", 3], ["rotwt17", 3],
["rotwt21", 5], ["rotwt22", 5],
["rotwa11", 5], ["rotwa12", 5],
["rotwa21", 5], ["rotwa22", 5],
["fixwa11", 10], ["fixwa12", 10], ["fixwa21", 10], [ 10], ["fixwa31", 10],
["mc1", 10], ["mc2", 10], ["mc3", 10]
];
_infantryTickets = [_infantryTicketsData, _infantryTicketsDefault] call CBA_fnc_hashCreate;
// --- SatCon----------------------------------------------------------------------------------------------------------------------------------------
_satConSlotsData = [
//["mc1", true]
];
_satConSlots = [_satConSlotsData, false] call CBA_fnc_hashCreate;
// --- Active Mods ----------------------------------------------------------------------------------------------------------------------------------
_activeModsData = [
["ACRE", false],
["SOTG", false],
["USEC", false],
["MIDF", false],
["AAW", false],
["AAWwp", false],
["RH", false],
["MARSOC",false]
];
_activeMods = [_activeModsData, false] call CBA_fnc_hashCreate;
// --- Default Loadouts -----------------------------------------------------------------------------------------------------------------------------
_defaultLoadoutsData = [
//OCP
["alphaact", "ocp"],
["alpha01", "ocp"],
["alpha11", "ocp"],
["alpha12", "ocp"],
["alpha13", "ocp"],
["alpha14", "ocp"],
["alpha15", "ocp"],
["alpha16", "ocp"],
["alpha21", "ocp"],
["alpha22", "ocp"],
["alpha23", "ocp"],
["alpha24", "ocp"],
["alpha25", "ocp"],
["alpha26", "ocp"],
//UCP
["bravo01", "ucp"],
["bravoact", "ucp"],
["bravo11", "ucp"],
["bravo12", "ucp"],
["bravo13", "ucp"],
["bravo14", "ucp"],
["bravo15", "ucp"],
["bravo16", "ucp"],
["bravo21", "ucp"],
["bravo22", "ucp"],
["bravo23", "ucp"],
["bravo24", "ucp"],
["bravo25", "ucp"],
["bravo26", "ucp"],
//BW Tropen
["charlieact", "tropentarn"],
["charlie01", "tropentarn"],
["charlie21", "tropentarn"],
["charlie22", "tropentarn"],
["charlie23", "tropentarn"],
["charlie24", "tropentarn"],
["charlie25", "tropentarn"],
["charlie26", "tropentarn"],
["charlie11", "tropentarn"],
["charlie12", "tropentarn"],
["charlie13", "tropentarn"],
["charlie14", "tropentarn"],
["charlie15", "tropentarn"],
["charlie16", "tropentarn"],
["rotwt11", "rotwtpilot"],
["rotwt12", "rotwtpilot"],
["rotwt13", "rotwtrotwa"],
["rotwt14", "rotwtrotwa"],
["rotwt21", "rotwtpilot"],
["rotwt22", "rotwtpilot"],
["rotwt23", "rotwtcrew"],
["rotwt24", "rotwtcrew"],
["rotwa21", "rotwa"],
["rotwa22", "rotwa"],
["rotwa11", "rotwa"],
["rotwa12", "rotwa"],
["fixwa21", "fixwa"],
["fixwa11", "fixwa"],
["fixwa12", "fixwa"],
["fixwa31", "fixwa"],
["armor13", "crew_army"],
["armor11", "crew_army"],
["armor12", "crew_army"],
["armor14", "crew_army"],
["armor23", "crew_ger"],
["armor21", "crew_ger"],
["armor22", "crew_ger"],
["armor24", "crew_ger"],
["mc1", "basic"],
["mc2", "basic"],
["mc3", "basic"],
["bis_curatorUnit", "basic"],
["bis_curatorUnit_1", "basic"],
["bis_curatorUnit_2", "basic"]
];
_defaultLoadouts = [_defaultLoadoutsData, "basic"] call CBA_fnc_hashCreate;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment