Bus System configuration loading working! next to actually make it
This commit is contained in:
7
SQF/Bus%20System.Altis/RR_functions/fn_loadConfig.sqf
Normal file
7
SQF/Bus%20System.Altis/RR_functions/fn_loadConfig.sqf
Normal file
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* Copyright© Benjamin Kyd 2019
|
||||
* loadConfig.sqf
|
||||
*/
|
||||
|
||||
private _stops = getArray (missionConfigFile >> "cfgBus" >> "stops" >> "names");
|
||||
hint format ["%1", _stops];
|
||||
5
SQF/Bus%20System.Altis/RR_functions/fn_setupSigns.sqf
Normal file
5
SQF/Bus%20System.Altis/RR_functions/fn_setupSigns.sqf
Normal file
@@ -0,0 +1,5 @@
|
||||
/**
|
||||
* Copyright© Benjamin Kyd 2019
|
||||
* fn_setupSigns.sqf
|
||||
*/
|
||||
|
||||
53
SQF/Bus%20System.Altis/config_bus.hpp
Normal file
53
SQF/Bus%20System.Altis/config_bus.hpp
Normal file
@@ -0,0 +1,53 @@
|
||||
class cfgBus {
|
||||
|
||||
class stops {
|
||||
names[] = {
|
||||
"Abdera",
|
||||
"Agios",
|
||||
"Airport",
|
||||
"Athira",
|
||||
"Chalkia",
|
||||
"Charkia",
|
||||
"Feres",
|
||||
"Kavala",
|
||||
"Kore",
|
||||
"Lakka",
|
||||
"Molos",
|
||||
"Negardes",
|
||||
"Neochori",
|
||||
"Oreokastro",
|
||||
"Panagia",
|
||||
"Panochori",
|
||||
"Paros",
|
||||
"Pyrgos",
|
||||
"Sofia",
|
||||
"Telos",
|
||||
"Therisa",
|
||||
"Zaros"
|
||||
};
|
||||
locations[] = {
|
||||
{9414,20294,0},
|
||||
{9344,15885,0},
|
||||
{14502,16889,0},
|
||||
{14070,18584,0}, //athira
|
||||
{19983,11471,0},
|
||||
{18087,15195,0},
|
||||
{21785,7482,0}, //feres
|
||||
{3651,13273,0},
|
||||
{7096,16414,0},
|
||||
{12372,15778,0},//lakka
|
||||
{27012,23282,0},
|
||||
{4908,16140,0},
|
||||
{12568,14349,0},//neochori
|
||||
{4577,21392,0},
|
||||
{20602,8841,0},
|
||||
{5093,11263,0},//panochori
|
||||
{20917,16908,0},
|
||||
{16658,12463,0},
|
||||
{25742,21387,0},//sofia
|
||||
{16269,17325,0},
|
||||
{10714,12312,0},
|
||||
{9055,11985,0}//zaros
|
||||
};
|
||||
};
|
||||
};
|
||||
1447
SQF/Bus%20System.Altis/defines.hpp
Normal file
1447
SQF/Bus%20System.Altis/defines.hpp
Normal file
File diff suppressed because it is too large
Load Diff
9
SQF/Bus%20System.Altis/description.ext
Normal file
9
SQF/Bus%20System.Altis/description.ext
Normal file
@@ -0,0 +1,9 @@
|
||||
disableAI = 1;
|
||||
|
||||
#include "defines.hpp"
|
||||
|
||||
#include "config_bus.hpp"
|
||||
|
||||
class cfgFunctions {
|
||||
#include "functions.hpp"
|
||||
};
|
||||
8
SQF/Bus%20System.Altis/functions.hpp
Normal file
8
SQF/Bus%20System.Altis/functions.hpp
Normal file
@@ -0,0 +1,8 @@
|
||||
class RR {
|
||||
tag = "RR";
|
||||
class functions {
|
||||
file = "RR_functions";
|
||||
class loadConfig {};
|
||||
class setupSigns {};
|
||||
};
|
||||
};
|
||||
8
SQF/Bus%20System.Altis/init.sqf
Normal file
8
SQF/Bus%20System.Altis/init.sqf
Normal file
@@ -0,0 +1,8 @@
|
||||
/**
|
||||
* Copyright© Benjamin Kyd 2019
|
||||
* init.sqf
|
||||
*/
|
||||
|
||||
[] call RR_fnc_loadConfig;
|
||||
|
||||
|
||||
BIN
SQF/Bus%20System.Altis/mission.sqm
Normal file
BIN
SQF/Bus%20System.Altis/mission.sqm
Normal file
Binary file not shown.
Reference in New Issue
Block a user