Commit cffa6fde authored by Legodev's avatar Legodev

fixed indentions of the mod config

parent ccc795e5
...@@ -3,11 +3,11 @@ static string BRDataFileSaveLocation = "$profile:BRData.json"; ...@@ -3,11 +3,11 @@ static string BRDataFileSaveLocation = "$profile:BRData.json";
class StaticBRData class StaticBRData
{ {
//Array of items/clothing to give the player before the round starts. //Array of items/clothing to give the player before the round starts.
ref array<string> Player_Items = {"TrackSuitJacket_Red","TrackSuitPants_Red","JoggingShoes_Red"}; ref array<string> Player_Items = {"TrackSuitJacket_Red", "TrackSuitPants_Red", "JoggingShoes_Red"};
vector debug_position = "14829.2 72.3148 14572.3"; vector debug_position = "14829.2 72.3148 14572.3";
vector cherno_center = "6497.66 6.01245 2519.26"; vector cherno_center = "6497.66 6.01245 2519.26";
int num_parallel_matches = 1; // Must be > 0 | The number of matches to run simultaneously int num_parallel_matches = 1; // Must be > 0 | The number of matches to run simultaneously
int death_show_names = 1; // 0 == off, 1 == on, 2 == including distance int death_show_names = 1; // 0 == off, 1 == on, 2 == including distance
...@@ -26,34 +26,37 @@ class StaticBRData ...@@ -26,34 +26,37 @@ class StaticBRData
float shrink_min_playtime = 10.0; // Measured in minutes float shrink_min_playtime = 10.0; // Measured in minutes
float shrink_max_playtime = 30.0; // Measured in minutes float shrink_max_playtime = 30.0; // Measured in minutes
int start_timer = 60; // time to wait until the round starts when the min player count was reached measured in seconds int start_timer = 60; // time to wait until the round starts when the min player count was reached measured in seconds
int zone_lock_time = 60; // time between zone shrink and punishing players outside the new zone measured in seconds int zone_lock_time = 60; // time between zone shrink and punishing players outside the new zone measured in seconds
int wait_for_players = 5; // Measured in seconds int wait_for_players = 5; // Measured in seconds
int check_round_end = 5; // Measured in seconds int check_round_end = 5; // Measured in seconds
int start_shrink_zone = 120; // time until the zoning starts measured in seconds int start_shrink_zone = 120; // time until the zoning starts measured in seconds
int shrink_zone_every = 120; // time between zone shrinks measured in seconds int shrink_zone_every = 120; // time between zone shrinks measured in seconds
int include_start_shrink_zone_in_roundtime = 1; // 0 == off, 1 == on int include_start_shrink_zone_in_roundtime = 1; // 0 == off, 1 == on
static ref StaticBRData LoadDataServer() static ref StaticBRData
{ LoadDataServer()
ref StaticBRData data = new ref StaticBRData; {
ref StaticBRData data = new ref StaticBRData;
if ( FileExist(BRDataFileSaveLocation) )
{ if(FileExist(BRDataFileSaveLocation))
Print( "BR Data exists, loading!" ); {
JsonFileLoader<StaticBRData>.JsonLoadFile(BRDataFileSaveLocation, data); Print("BR Data exists, loading!");
} else { JsonFileLoader<StaticBRData>.JsonLoadFile(BRDataFileSaveLocation, data);
Print( "BR Data doesn't exist, creating file!" ); }
SaveDataServer( data ); else
} {
Print("BR Data doesn't exist, creating file!");
return data; SaveDataServer(data);
} }
static void SaveDataServer( ref StaticBRData data ) return data;
{ }
JsonFileLoader<StaticBRData>.JsonSaveFile(BRDataFileSaveLocation, data);
} static void SaveDataServer(ref StaticBRData data)
{
JsonFileLoader<StaticBRData>.JsonSaveFile(BRDataFileSaveLocation, data);
}
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment