-
Notifications
You must be signed in to change notification settings - Fork 0
/
Setup.as
31 lines (27 loc) · 1.06 KB
/
Setup.as
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
void onInit(CRules@ this)
{
this.addCommandID("error1"); // reserverd for something in engine, crashes game on call
this.addCommandID("C_RequestMapParams");
this.addCommandID("S_SendMapParams");
this.addCommandID("C_RequestMap");
this.addCommandID("S_SendMapPacket");
this.addCommandID("C_ChangeBlock");
this.addCommandID("S_ChangeBlock");
this.addCommandID("C_CreatePlayer");
this.addCommandID("C_PlayerUpdate");
this.addCommandID("S_PlayerUpdate");
this.addCommandID("C_FreezePlayer");
this.addCommandID("S_FreezePlayer");
this.addCommandID("C_PlaySound3D");
this.addCommandID("SC_ChangeSky");
this.addCommandID("S_UText");
this.addCommandID("CC_savemap");
CMap@ map = getMap();
map.topBorder = map.bottomBorder = map.leftBorder = map.rightBorder = map.legacyTileVariations = map.legacyTileEffects = map.legacyTileDestroy = map.legacyTileMinimap = false;
SColor col = 0x00000000;
map.SetBorderColourLeft(col);
map.SetBorderColourRight(col);
map.SetBorderColourTop(col);
map.SetBorderColourBottom(col);
map.MakeMiniMap();
}