Skip to content

Commit

Permalink
Updated map generation scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
agiantwhale committed May 28, 2018
1 parent a9f59dd commit 3fdbef8
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
16 changes: 8 additions & 8 deletions content/static_goal.acs
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,14 @@ script 1 ENTER
SetActorVelocity(0, 0, 0, 0, FALSE, FALSE);

// Spawn goals
GOAL_LOC_ID = SPAWN_LOC_ID;
until(GOAL_LOC_ID!=SPAWN_LOC_ID) GOAL_LOC_ID = random(TARGET_ID_START, TARGET_ID_END);
if(IsTIDUsed(GOAL_TID)) Thing_Remove(GOAL_TID);

until(SpawnSpot("TallRedColumn", GOAL_LOC_ID, GOAL_TID));
goal_x = GetActorX(GOAL_LOC_ID);
goal_y = GetActorY(GOAL_LOC_ID);
goal_z = GetActorZ(GOAL_LOC_ID);
if(!IsTIDUsed(GOAL_TID)) {
GOAL_LOC_ID = SPAWN_LOC_ID;
until(GOAL_LOC_ID!=SPAWN_LOC_ID) GOAL_LOC_ID = random(TARGET_ID_START, TARGET_ID_END);
until(SpawnSpot("TallRedColumn", GOAL_LOC_ID, GOAL_TID));
goal_x = GetActorX(GOAL_LOC_ID);
goal_y = GetActorY(GOAL_LOC_ID);
goal_z = GetActorZ(GOAL_LOC_ID);
}

// Wait
until(fdistance(0, GOAL_TID) < 64.0)
Expand Down
16 changes: 8 additions & 8 deletions content/static_goal_train.acs
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,14 @@ script 1 ENTER
SetActorVelocity(0, 0, 0, 0, FALSE, FALSE);

// Spawn goals
GOAL_LOC_ID = SPAWN_LOC_ID;
until(GOAL_LOC_ID!=SPAWN_LOC_ID) GOAL_LOC_ID = random(TARGET_ID_START, TARGET_ID_END);
if(IsTIDUsed(GOAL_TID)) Thing_Remove(GOAL_TID);

until(SpawnSpot("TallRedColumn", GOAL_LOC_ID, GOAL_TID));
goal_x = GetActorX(GOAL_LOC_ID);
goal_y = GetActorY(GOAL_LOC_ID);
goal_z = GetActorZ(GOAL_LOC_ID);
if(!IsTIDUsed(GOAL_TID)) {
GOAL_LOC_ID = SPAWN_LOC_ID;
until(GOAL_LOC_ID!=SPAWN_LOC_ID) GOAL_LOC_ID = random(TARGET_ID_START, TARGET_ID_END);
until(SpawnSpot("TallRedColumn", GOAL_LOC_ID, GOAL_TID));
goal_x = GetActorX(GOAL_LOC_ID);
goal_y = GetActorY(GOAL_LOC_ID);
goal_z = GetActorZ(GOAL_LOC_ID);
}

// Spawn rewards
int REWARD_LOC_ID = 0, REWARD_TID = 0;
Expand Down

0 comments on commit 3fdbef8

Please sign in to comment.