Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- _Rus = [
- "NovySobor",
- "Elektrozavodsk",
- "Pusta",
- "Kamyshovo",
- "Staroye",
- "Tulga",
- "Solnichniy",
- "Orlovets",
- "Guglovo",
- "Dolina",
- "Shakhovka",
- "Nizhnoye",
- "Polana",
- "Gorka",
- "Dubrovka",
- "Berezino",
- "Petrovka",
- "Gvozdno",
- "Khelm",
- "Olsha",
- "Grishino",
- "Skalka",
- // extra cities
- "Krasnostav",
- "KrasnostavAirfield",
- "Lumber"
- ];
- _Usa = [
- "Kabanino",
- "Kamenka",
- "Komarovo",
- "Pavlovo",
- "Prigorodki",
- "Bor",
- "Chernogorsk",
- "Drozhino",
- "Kozlovka",
- "Nadezhdino",
- "Mogilevka",
- "Zelenogorsk",
- "Pulkowo",
- "Vyshnoye",
- "Sosnovka",
- "Pogorevka",
- "Rogovo",
- "Myshkino",
- "Pustoschka",
- "Vybor",
- "StarySobor",
- "Lopatino",
- // extra cities
- "BalotaAirfield"
- ];
- _location = _this Select 0;
- if (isNil "towns") then {towns = []};
- towns = towns + [_location];
- _locationName = _this Select 1;
- _resistanceTeamTypes = ["DefaultTeam","DefaultTeam"];
- _probability = 70;
- _startingSupplyValue = 10;
- _maxSupplyValue = 50;
- _range = 400;
- _name = Str _location;
- if (Count _this > 3) then {_startingSupplyValue = _this Select 2};
- if (Count _this > 4) then {_maxSupplyValue = _this Select 3};
- if (Count _this > 5) then {_range = _this Select 4};
- if (Count _this > 6) then {_resistanceTeamTypes = _this Select 5};
- if (Count _this > 7) then {_probability = _this Select 6};
- waitUntil {commonInitComplete};
- diag_log format["[TeTeT] LOG: Location init %1", _name];
- Call Compile Format["%1Name = _locationName",_name];
- Call Compile Format["%1Range = _range",_name];
- Call Compile Format["%1SideID = RESISTANCEID",_name];
- {
- diag_log format["[TeTeT] LOG: Checking for %1", _x];
- if (_x == _name) then {
- diag_log "[TeTeT] LOG: Setting side to east";
- Call Compile Format["%1SideID = EASTID",_name];
- };
- } foreach _Rus;
- {
- diag_log format["[TeTeT] LOG: Checking for %1", _x];
- if (_x == _name) then {
- diag_log "[TeTeT] LOG: Setting side to west";
- Call Compile Format["%1SideID = WESTID",_name];
- };
- } foreach _Usa;
- // if (_name == "KrasnostavAirfield") then {
- // Call Compile Format["%1SideID = EASTID",_name];
- // } else {
- // Call Compile Format["%1SideID = WESTID",_name];
- // };
- Call Compile Format["%1SupplyValue = _startingSupplyValue",_name];
- Call Compile Format["%1StartingSupplyValue = _startingSupplyValue",_name];
- Call Compile Format["%1MaxSupplyValue = _maxSupplyValue",_name];
- if (IsServer) then {
- Sleep (Random 1);
- [_location,_resistanceTeamTypes,_range,_probability] ExecVM "Server\Server_UpdateTown.sqf";
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement