Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FIREFIGHTER
- -------------------------------------------------------------------------------------
- PICK SPAWN COORDINATES::
- {
- SpawnZoneRadius := 60*CurrentFirefighterLevel
- If SpawnZoneRadius < 170.0
- SpawnZoneRadius = 170.0
- SpawnZoneCurrentLevelLowerX := PlayerX-SpawnZoneRadius
- If SpawnZoneCurrentLevelLowerX < SpawnZoneLowerX
- SpawnZoneCurrentLevelLowerX := SpawnZoneLowerX
- SpawnZoneCurrentLevelUpperX := PlayerX+SpawnZoneRadius
- If SpawnZoneCurrentLevelUpperX < SpawnZoneUpperX
- SpawnZoneCurrentLevelUpperX := SpawnZoneUpperX
- SpawnZoneCurrentLevelLowerY := PlayerY-SpawnZoneRadius
- If SpawnZoneCurrentLevelLowerY < SpawnZoneLowerY
- SpawnZoneCurrentLevelLowerY := SpawnZoneLowerY
- SpawnZoneCurrentLevelUpperY := PlayerY+SpawnZoneRadius
- If SpawnZoneCurrentLevelUpperY < SpawnZoneUpperY
- SpawnZoneCurrentLevelLowerX := SpawnZoneUpperY
- }
- FirePotentialX := Get a random X on the road between SpawnZoneCurrentLevelLowerX and SpawnZoneCurrentLevelUpperX
- FirePotentialY := Get a random Y on the road between SpawnZoneCurrentLevelLowerY and SpawnZoneCurrentLevelUpperY
- FirePotentialZ := PlayerZ
- If Distance between Player and Potential Fire Spawn < 140.0
- Goto PICK SPAWN COORDINATES
- For 0 cities unlocked:
- {
- ; Check that the fire doesn't spawn in an area which hasn't been unlocked.
- if ((FirePotentialX < 78.4427) AND (FirePotentialY < -699.519))
- Goto PICK SPAWN COORDINATES
- if ((FirePotentialX < -252.6557) AND (FirePotentialY < -285.766))
- Goto PICK SPAWN COORDINATES
- if (FirePotentialX < -948.3447)
- Goto PICK SPAWN COORDINATES
- if ((FirePotentialX > 1473.448) AND (FirePotentialY > 403.7353))
- Goto PICK SPAWN COORDINATES
- if (FirePotentialY > 578.6325)
- Goto PICK SPAWN COORDINATES
- if ((FirePotentialX < 837.5551) AND (FirePotentialY > 347.4097))
- Goto PICK SPAWN COORDINATES
- }
- For 1 city unlocked:
- {
- ; Check that the fire doesn't spawn in an area which hasn't been unlocked.
- if ((FirePotentialX > 1473.448) AND (FirePotentialY > 403.7353))
- Goto PICK SPAWN COORDINATES
- if ((FirePotentialX > -1528.498) AND (FirePotentialY > 578.6325))
- Goto PICK SPAWN COORDINATES
- if ((-1528.498 < FirePotentialX < 837.5551) AND (FirePotentialY > 347.4097))
- Goto PICK SPAWN COORDINATES
- if (FirePotentialY > 1380.0)
- Goto PICK SPAWN COORDINATES
- }
- ; Check that the fire doesn't spawn in a location where it can't (such as water?).
- if ((1970.0 < FirePotentialX < 2150.0) AND (-2670.0 < FirePotentialY < -2274.0))
- Goto PICK SPAWN COORDINATES
- if ((1590.0 < FirePotentialX < 2150.0) AND (-2670.0 < FirePotentialY < -2397.0))
- Goto PICK SPAWN COORDINATES
- if ((-1737.0 < FirePotentialX < -1070.0) AND (-590.0 < FirePotentialY < -185.0))
- Goto PICK SPAWN COORDINATES
- if ((-1600.0 < FirePotentialX < -1081.0) AND (-185.0 < FirePotentialY < 415.0))
- Goto PICK SPAWN COORDINATES
- if ((1500.0 < FirePotentialX < 1733.0) AND (1529.0 < FirePotentialY < 1702.0))
- Goto PICK SPAWN COORDINATES
- if Distance between Potential Fire Spawn and Other Fires < 25.0
- Goto PICK SPAWN COORDINATES
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement