Skip to content

Commit

Permalink
repack 1
Browse files Browse the repository at this point in the history
  • Loading branch information
nazarpunk committed Dec 13, 2024
1 parent 536374d commit d674a2f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 32 deletions.
Empty file.
43 changes: 11 additions & 32 deletions Writerside/resources/map/as/main.as
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
namespace Map {

void config() {
void main() {
print("Map::main()\n");

print("Map::config()\n");
SetTimeOfDayScale(10);

SetMapName("Moonlight");
SetMapDescription("Praise the Moon!");
SetPlayers(12);
SetTeams(12);
DefineStartLocation(0, 0, 0);
SetCameraBounds( - 2048.0f + GetCameraMargin(CAMERA_MARGIN_LEFT), - 2048.0f + GetCameraMargin(CAMERA_MARGIN_BOTTOM), 2048.0f - GetCameraMargin(CAMERA_MARGIN_RIGHT), 2048.0f - GetCameraMargin(CAMERA_MARGIN_TOP), - 2048.0f + GetCameraMargin(CAMERA_MARGIN_LEFT), 2048.0f - GetCameraMargin(CAMERA_MARGIN_TOP), 2048.0f - GetCameraMargin(CAMERA_MARGIN_RIGHT), - 2048.0f + GetCameraMargin(CAMERA_MARGIN_BOTTOM));
SetDayNightModels("Environment\\DNC\\DNCLordaeron\\DNCLordaeronTerrain\\DNCLordaeronTerrain.mdl", "Environment\\DNC\\DNCLordaeron\\DNCLordaeronUnit\\DNCLordaeronUnit.mdl");
NewSoundEnvironment("Default");
SetMapMusic("Music", true, 0);

// set bj_mapInitialPlayableArea = Rect(GetCameraBoundMinX()-GetCameraMargin(CAMERA_MARGIN_LEFT), GetCameraBoundMinY()-GetCameraMargin(CAMERA_MARGIN_BOTTOM), GetCameraBoundMaxX()+GetCameraMargin(CAMERA_MARGIN_RIGHT), GetCameraBoundMaxY()+GetCameraMargin(CAMERA_MARGIN_TOP))

TimerStart(CreateTimer(), 0.f, false, function() {
DestroyTimer(GetExpiredTimer());
Expand All @@ -17,36 +19,13 @@ void config() {
player p = Player(i);
if (GetPlayerController(p) == MAP_CONTROL_USER && GetPlayerSlotState(p) == PLAYER_SLOT_STATE_PLAYING) {
unit u = CreateUnit(p, 'Hjai', 0, 0, 0);
PanCameraToTimed(0, 0,0);
SelectUnit(u, true);
AddSpecialEffectTarget("Attach\\CosmicElvenWings\\Void\\Void.mdx", u, "chest");
AddSpecialEffectTarget("Attach\\CosmicElvenWings\\Divine\\Divine.mdx", u, "chest");
AddSpecialEffectTarget("Attach\\Torch.mdx", u, "hand left");
}
}

});

for (int i = 0; i < 12; ++i) {
player pi = Player(i);
SetPlayerTeam(pi, 0);
SetPlayerState(pi, PLAYER_STATE_ALLIED_VICTORY, 1);
SetPlayerStartLocation(pi, 0);
SetPlayerColor(pi, ConvertPlayerColor(i));
SetPlayerRacePreference(pi, RACE_PREF_HUMAN);
SetPlayerRaceSelectable(pi, false);
SetPlayerController(pi, MAP_CONTROL_USER);

for (int j = 0; j < 12; ++j) {
if (i == j) continue;
player pj = Player(j);
SetPlayerAlliance(pi, pj, ALLIANCE_PASSIVE, true);
SetPlayerAlliance(pi, pj, ALLIANCE_HELP_REQUEST, true);
SetPlayerAlliance(pi, pj, ALLIANCE_HELP_RESPONSE, true);
SetPlayerAlliance(pi, pj, ALLIANCE_SHARED_XP, true);
SetPlayerAlliance(pi, pj, ALLIANCE_SHARED_SPELLS, true);
SetPlayerAlliance(pi, pj, ALLIANCE_SHARED_VISION, true);
}
}

}

}
2 changes: 2 additions & 0 deletions Writerside/resources/pack/_map.bat
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ rd %WinMapDir% /s /q

%MPQEditor% /extract %w3x% "*" "%WinMapDir%" /fp

@echo off
for /d %%D in ("%WinMapDir%\*") do (
if exist %%D (rmdir %%D /s /q)
)
@echo on

robocopy %MacMapDir% %WinMapDir% *.* /s /nfl /ndl

Expand Down

0 comments on commit d674a2f

Please sign in to comment.