Boomshire: Added another segment

MimmoO 2010-10-31 21:03:25 +01:00
parent 901186e275
commit c4bc9b3032
2 changed files with 32 additions and 11 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 56 KiB

After

Width:  |  Height:  |  Size: 56 KiB

View File

@ -29,7 +29,13 @@ func Initialize()
goal->AddCheckpoint(2150, 510, mode);
goal->AddCheckpoint(2000, 200, mode);
goal->AddCheckpoint(3090, 300, mode);
goal->SetFinishpoint(3400, 360, true);
var c=goal->AddCheckpoint(1000, 50, mode);
c->SetCPSize(40);
var door=CreateObject(StoneDoor, 225, 60, NO_OWNER);
door->CloseGateDoor();
AddEffect("AutoOpen",door,100,100);
goal->SetFinishpoint(200, 150, true);
//Items
CreateObject(Blackpowder,1904,878,-1);
@ -38,10 +44,6 @@ func Initialize()
CreateObject(Blackpowder,2568,918,-1);
CreateObject(Dynamite,3210,1190,-1);
CreateObject(Dynamite,3205,1190,-1);
CreateObject(Dynamite,3200,1190,-1);
CreateObject(Dynamite,3195,1190,-1);
Edges();
Doors();
@ -65,7 +67,15 @@ global func FxDynamiteEruptionTimer(object nobject, int noum, int timer)
dyn->SetRDir(RandomX(-30,30));
}
global func FxAutoOpenTimer(object pTarget, int noum, int timer)
{
if(FindObject(Find_ID(Plane),Find_InRect(0,0,2000,500)))
{
pTarget->OpenGateDoor();
return -1;
}
else return 1;
}
global func FxSparklingAttentionTimer(object pTarget, int noum, int timer)
{
@ -160,17 +170,28 @@ protected func Doors()
var wheel = CreateObject(SpinWheel, 3260, 328, NO_OWNER);
wheel->SetStoneDoor(gate);
gate->CloseGateDoor();
var gate = CreateObject(StoneDoor, 3285, 1150, NO_OWNER);
var wheel = CreateObject(SpinWheel, 3220, 1200, NO_OWNER);
wheel->SetStoneDoor(gate);
gate->CloseGateDoor();
}
protected func Edges()
global func Edges()
{
var x=[2435, 2555, 2565, 2565, 2565, 2565, 2685, 2765, 2755, 2755, 2745, 2705, 2695, 2685, 2695, 2685, 2675, 2655, 2655, 2665, 2675, 2665, 2645, 2655, 2645, 2635, 2615, 2625, 2635, 2625, 2605, 2615, 2605, 2595, 2575, 2585, 2595, 2585, 2565, 2575, 2565, 2555, 3535, 3525, 3545, 3555, 3555, 3575, 3585, 3595, 3605, 3605, 3595, 3585, 3575, 3385, 1935, 1935, 1915, 1895, 735, 685, 745, 755, 775, 815, 825, 595, 605, 365, 1925, 1915, 1895, 1925, 1935, 1915, 1925, 1925, 1915, 1925, 1935, 1905, 1905, 2085, 2135, 2035, 2035, 2045, 2055, 2195, 2215, 2225, 2245, 2235, 2255, 2585, 2515, 2485, 2565, 2785, 3145, 3085, 3015, 3125, 3085, 2995, 2875, 2865, 2865, 2855, 2555, 2945, 2955, 3005, 2745, 2735, 2705, 2715, 2695, 2685, 2655, 2665, 2515, 2505, 2565, 2575, 2405, 2415, 1885, 1945, 1995, 1985, 1965, 1955, 1945, 1935, 1925, 1885, 1865, 1855, 1845, 1725, 1695, 1595, 1575, 1795, 2555, 2545, 2545, 2555, 2555, 2545, 2545, 2555, 2535, 335, 345, 325, 275, 265, 95, 45, 45, 425, 385, 605, 565, 555, 2155];
var y=[1285, 1305, 1295, 1265, 1245, 1225, 1175, 1225, 1215, 1225, 1215, 1155, 1155, 1145, 1145, 1135, 1135, 1105, 1115, 1115, 1125, 1125, 1105, 1105, 1095, 1095, 1075, 1075, 1085, 1085, 1065, 1065, 1055, 1055, 1035, 1035, 1045, 1045, 1025, 1025, 1015, 1015, 675, 665, 655, 665, 625, 635, 645, 655, 665, 715, 725, 735, 745, 745, 885, 865, 865, 865, 1015, 1155, 1005, 995, 985, 995, 1005, 955, 965, 645, 785, 885, 885, 985, 975, 1065, 1075, 1105, 1115, 1015, 1025, 1055, 1125, 1245, 1245, 1065, 895, 865, 845, 975, 995, 1015, 1035, 1025, 1045, 925, 925, 1205, 1205, 1235, 725, 735, 735, 595, 585, 745, 635, 625, 645, 635, 915, 655, 645, 675, 585, 595, 585, 575, 585, 575, 585, 595, 655, 645, 635, 645, 595, 585, 575, 595, 485, 465, 455, 445, 435, 425, 405, 395, 385, 375, 365, 345, 325, 285, 275, 565, 935, 935, 955, 955, 975, 975, 995, 995, 915, 695, 785, 785, 835, 845, 715, 655, 625, 545, 525, 835, 835, 825, 935];
for(var i=0; i<GetLength(x); i++)
var x=[195, 205, 215, 225, 195, 225, 225, 185, 235, 235, 235, 2155, 555, 565, 605, 385, 425, 45, 45, 95, 265, 275, 325, 345, 335, 2535, 2555, 2545, 2545, 2555, 2555, 2545, 2545, 2555, 1795, 1575, 1595, 1695, 1725, 1845, 1855, 1865, 1885, 1925, 1935, 1945, 1955, 1965, 1985, 1995, 1945, 1885, 2415, 2405, 2575, 2565, 2505, 2515, 2665, 2655, 2685, 2695, 2715, 2705, 2735, 2745, 3005, 2955, 2945, 2555, 2855, 2865, 2865, 2875, 2995, 3085, 3125, 3015, 3085, 3145, 2785, 2565, 2485, 2515, 2585, 2255, 2235, 2245, 2225, 2215, 2195, 2055, 2045, 2035, 2035, 2135, 2085, 1905, 1905, 1935, 1925, 1915, 1925, 1925, 1915, 1935, 1925, 1895, 1915, 1925, 365, 605, 595, 825, 815, 775, 755, 745, 685, 735, 1895, 1915, 1935, 1935, 3385, 3575, 3585, 3595, 3605, 3605, 3595, 3585, 3575, 3555, 3555, 3545, 3525, 3535, 2555, 2565, 2575, 2565, 2585, 2595, 2585, 2575, 2595, 2605, 2615, 2605, 2625, 2635, 2625, 2615, 2635, 2645, 2655, 2645, 2665, 2675, 2665, 2655, 2655, 2675, 2685, 2695, 2685, 2695, 2705, 2745, 2755, 2755, 2765, 2685, 2565, 2565, 2565, 2565, 2555, 2435];
var y=[425, 395, 345, 275, 35, 115, 195, 45, 65, 105, 205, 935, 825, 835, 835, 525, 545, 625, 655, 715, 845, 835, 785, 785, 695, 915, 995, 995, 975, 975, 955, 955, 935, 935, 565, 275, 285, 325, 345, 365, 375, 385, 395, 405, 425, 435, 445, 455, 465, 485, 595, 575, 585, 595, 645, 635, 645, 655, 595, 585, 575, 585, 575, 585, 595, 585, 675, 645, 655, 915, 635, 645, 625, 635, 745, 585, 595, 735, 735, 725, 1235, 1205, 1205, 925, 925, 1045, 1025, 1035, 1015, 995, 975, 845, 865, 895, 1065, 1245, 1245, 1125, 1055, 1025, 1015, 1115, 1105, 1075, 1065, 975, 985, 885, 885, 785, 645, 965, 955, 1005, 995, 985, 995, 1005, 1155, 1015, 865, 865, 865, 885, 745, 745, 735, 725, 715, 665, 655, 645, 635, 625, 665, 655, 665, 675, 1015, 1015, 1025, 1025, 1045, 1045, 1035, 1035, 1055, 1055, 1065, 1065, 1085, 1085, 1075, 1075, 1095, 1095, 1105, 1105, 1125, 1125, 1115, 1115, 1105, 1135, 1135, 1145, 1145, 1155, 1155, 1215, 1225, 1215, 1225, 1175, 1225, 1245, 1265, 1295, 1305, 1285];
var d=[2, 2, 2, 2, 0, 3, 1, 3, 2, 0, 2, 3, 3, 3, 2, 1, 2, 2, 0, 0, 2, 2, 3, 2, 0, 1, 3, 0, 2, 1, 3, 0, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 2, 0, 0, 3, 2, 1, 1, 2, 2, 1, 1, 2, 0, 3, 3, 0, 0, 0, 3, 2, 3, 3, 0, 0, 0, 1, 0, 0, 1, 0, 0, 1, 3, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 1, 3, 1, 1, 2, 0, 3, 1, 2, 3, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 3, 2, 3, 1, 0, 1, 1, 1, 1, 3, 3, 3, 3, 3, 0, 0, 3, 3, 0, 3, 3, 0, 0, 3, 3, 0, 0, 3, 3, 0, 0, 3, 3, 0, 0, 3, 3, 0, 0, 3, 3, 0, 3, 0, 3, 3, 0, 0, 3, 0, 0, 3, 3, 3, 1, 1, 1, 1, 1, 0];
for (var i = 0; i < GetLength(x); i++)
{
CreateObject(BrickEdge,x[i], y[i]+5)->PermaEdge();
var edge=CreateObject(BrickEdge, x[i], y[i] + 5, NO_OWNER);
edge->Initialize();
edge->SetP(d[i]);
edge->SetPosition(x[i],y[i]);
edge->PermaEdge();
}
return 1;
}
// Gamecall from Race-goal, on respawning.