From 22fcdee3860bf1fdcc2908fb46eb08fe7e6cb622 Mon Sep 17 00:00:00 2001 From: Vamist Date: Mon, 30 Nov 2020 12:53:56 +0000 Subject: [PATCH] Indent tabs --- Maps/CommonScripts/MapsCore.as | 50 +++++++++---------- Maps/KnightShowcase/KnightShowcase.as | 12 ++--- gamemode.cfg | 71 ++++++++++++++------------- mapcycle.cfg | 2 +- 4 files changed, 68 insertions(+), 67 deletions(-) diff --git a/Maps/CommonScripts/MapsCore.as b/Maps/CommonScripts/MapsCore.as index 709984b..5b6060d 100644 --- a/Maps/CommonScripts/MapsCore.as +++ b/Maps/CommonScripts/MapsCore.as @@ -7,38 +7,38 @@ // Returns true if spawning was done correctly bool AddSpawns(CMap@ map, string markerName, string blobToSpawn, int teamNum = 0) { - Vec2f[] spawns; - if (map.getMarkers(markerName, spawns)) - { - for (int a = 0; a < spawns.length; a++) - { - server_CreateBlob(blobToSpawn, 0, spawns[a]); - } + Vec2f[] spawns; + if (map.getMarkers(markerName, spawns)) + { + for (int a = 0; a < spawns.length; a++) + { + server_CreateBlob(blobToSpawn, 0, spawns[a]); + } - return true; - } - - return false; + return true; + } + + return false; } // Same as above, but we remove all scripts attached to them // This prevents us from using it bool AddSpawnsCosmeticOnly(CMap@ map, string markerName, string blobToSpawn, int teamNum = 0) { - Vec2f[] spawns; - if (map.getMarkers(markerName, spawns)) - { - for (int a = 0; a < spawns.length; a++) - { - CBlob@ blob = server_CreateBlob(blobToSpawn, 0, spawns[a]); - if (blob is null) - continue; + Vec2f[] spawns; + if (map.getMarkers(markerName, spawns)) + { + for (int a = 0; a < spawns.length; a++) + { + CBlob@ blob = server_CreateBlob(blobToSpawn, 0, spawns[a]); + if (blob is null) + continue; - // TODO-> Engine side need a way to get all scripts by name! - } + // TODO-> Engine side need a way to get all scripts by name! + } - return true; - } - - return false; + return true; + } + + return false; } \ No newline at end of file diff --git a/Maps/KnightShowcase/KnightShowcase.as b/Maps/KnightShowcase/KnightShowcase.as index a8cf2d8..c827074 100644 --- a/Maps/KnightShowcase/KnightShowcase.as +++ b/Maps/KnightShowcase/KnightShowcase.as @@ -2,19 +2,19 @@ void onInit(CMap@ this) { - onRestart(this); + onRestart(this); } void onRulesRestart(CMap@ this, CRules@ rules) { - onRestart(this); + onRestart(this); } // NOT A HOOK void onRestart(CMap@ this) { - if(!AddSpawns(this, "blue main spawn", "tent") && AddSpawns(this, "blue spawn", "tent")) - { - error("Could not find spawn markers to place!"); - } + if(!AddSpawns(this, "blue main spawn", "tent") && AddSpawns(this, "blue spawn", "tent")) + { + error("Could not find spawn markers to place!"); + } } \ No newline at end of file diff --git a/gamemode.cfg b/gamemode.cfg index cdbf990..a7825b1 100644 --- a/gamemode.cfg +++ b/gamemode.cfg @@ -2,60 +2,61 @@ # rules name: WAR # rules description: - teams = team1.cfg; team2.cfg; + teams = team1.cfg; team2.cfg; - gamemode_name = Tutorial2 - gamemode_info = Two teams spawn and fight each other to the death + gamemode_name = Tutorial2 + gamemode_info = Two teams spawn and fight each other to the death - scripts = KAG.as; - TutorialMain.as; + scripts = KAG.as; + CharacterCore.as; + TutorialMain.as; RequestSpawnOnDeath.as; ChatCommands.as; - TeamMenuJustSpectator.as; + TeamMenuJustSpectator.as; PlayerCamera.as; - daycycle_speed = 0 # 1 day = X minutes; / 0 no cycle - daycycle_start = 0.3 # 0.0 midnight; 0.5 - midday; 1.0 midnight + daycycle_speed = 0 # 1 day = X minutes; / 0 no cycle + daycycle_start = 0.3 # 0.0 midnight; 0.5 - midday; 1.0 midnight - minimum_players_inteam = 1 + minimum_players_inteam = 1 - autoassign_teams = no #team allocation is smart in this gamemode + autoassign_teams = no #team allocation is smart in this gamemode - auto_bots = no + auto_bots = no - playerrespawn_seconds = 10.0 - nearspawn_multiplier = 1.0 - switch_teams_onrestart = no # doesn't work yet + playerrespawn_seconds = 10.0 + nearspawn_multiplier = 1.0 + switch_teams_onrestart = no # doesn't work yet - death_points = 0 - kill_points = 10 - selfkill_points = -25 + death_points = 0 + kill_points = 10 + selfkill_points = -25 - attackdamage_modifier = 0.5 - friendlydamage_modifier = 0.0 + attackdamage_modifier = 0.5 + friendlydamage_modifier = 0.0 # map resources - mapresource_thickstone = 4 - mapresource_stone = 2 - mapresource_tree = 6 - mapresource_arrow = 1 - mapresource_gold = 2 + mapresource_thickstone = 4 + mapresource_stone = 2 + mapresource_tree = 6 + mapresource_arrow = 1 + mapresource_gold = 2 # end map resources - restartmap_onlastplayer_disconnect = yes - mirrormap = yes + restartmap_onlastplayer_disconnect = yes + mirrormap = yes - coins_death_drop_percentage = 30 - coins_damage_enemy = 5 - coins_build_percentage = 10 - coins_bomb_cost = 20 - coins_arrows_cost = 1 - coins_heal_cost = 2 - coins_unit_cost = 50 + coins_death_drop_percentage = 30 + coins_damage_enemy = 5 + coins_build_percentage = 10 + coins_bomb_cost = 20 + coins_arrows_cost = 1 + coins_heal_cost = 2 + coins_unit_cost = 50 - room_config = + room_config = - waiting_for_respawn_message = "Wait to spawn on your team-mates..."; + waiting_for_respawn_message = "Wait to spawn on your team-mates..."; support_factor = 24 support_added_vertical = 1 diff --git a/mapcycle.cfg b/mapcycle.cfg index 22160ec..aa815a7 100644 --- a/mapcycle.cfg +++ b/mapcycle.cfg @@ -1,2 +1,2 @@ mapcycle = - KnightShowcase.png; \ No newline at end of file + KnightShowcase.png; \ No newline at end of file -- knotmirror 0.0.1