-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFillMap.chai
More file actions
42 lines (37 loc) · 790 Bytes
/
Copy pathFillMap.chai
File metadata and controls
42 lines (37 loc) · 790 Bytes
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
32
33
34
35
36
37
38
39
40
41
42
global setshit = false;
global Init = true;
global counter = 64;
def spawn_thing_at_random_pos()
{
var c2dd = find_random_land_pos_c2d();
var c3d = Coord3D();
coord2D_to_coord3D(c2dd,c3d);
createThing(T_EFFECT,M_EFFECT_RAISE_LAND,TRIBE_HOSTBOT,c3d,false,false);
}
def OnTurn()
{
if (!setshit)
{
global c2d = Coord2D();
c2d.Xpos = G_RANDOM(65535);
c2d.Zpos = G_RANDOM(65535);
setshit = true;
}
if (Init)
{
c2d.Xpos += 256;
--counter;
if (counter == 0)
{
c2d.Zpos += 128;
counter = 64;
}
if (is_map_point_land(c2d) == FALSE)
{
var c2dd = c2d;
var c3d = Coord3D();
coord2D_to_coord3D(c2dd,c3d);
createThing(T_EFFECT,M_EFFECT_RAISE_LAND,TRIBE_HOSTBOT,c3d,false,false);
}
}
}