diff --git a/SPS - Spawning Statics/SPS-100 - Simple Spawning/SPS-100 - Simple Spawning.lua b/SPS - Spawning Statics/SPS - 010 - Simple Spawning/SPS - 010 - Simple Spawning.lua similarity index 96% rename from SPS - Spawning Statics/SPS-100 - Simple Spawning/SPS-100 - Simple Spawning.lua rename to SPS - Spawning Statics/SPS - 010 - Simple Spawning/SPS - 010 - Simple Spawning.lua index 44b5fdaf5f..a533d78eef 100644 --- a/SPS - Spawning Statics/SPS-100 - Simple Spawning/SPS-100 - Simple Spawning.lua +++ b/SPS - Spawning Statics/SPS - 010 - Simple Spawning/SPS - 010 - Simple Spawning.lua @@ -1,31 +1,31 @@ ---- Name: SPS-100 - Simple Spawning --- Author: FlightControl --- Date Created: 09 Apr 2017 --- --- # Situation: --- --- At Gudauta spawn a static. --- --- # Test cases: --- --- 1. Observe that the static is spawned. - - -local ZonePosition = ZONE:New( "Position" ) - -local SpawnBuilding = SPAWNSTATIC:NewFromStatic( "Building", country.id.GERMANY ) -local SpawnBarrack = SPAWNSTATIC:NewFromStatic( "Barrack", country.id.GERMANY ) - -local ZonePointVec2 = ZonePosition:GetPointVec2() - -local Building = SpawnBuilding:SpawnFromZone( ZonePosition, 0 ) - -for Heading = 0, 360,60 do - local Radial = Heading * ( math.pi*2 ) / 360 - local x = ZonePointVec2:GetLat() + math.cos( Radial ) * 150 - local y = ZonePointVec2:GetLon() + math.sin( Radial ) * 150 - SpawnBarrack:SpawnFromPointVec2( POINT_VEC2:New( x, y ), Heading + 90 ) -end - - - +--- Name: SPS-100 - Simple Spawning +-- Author: FlightControl +-- Date Created: 09 Apr 2017 +-- +-- # Situation: +-- +-- At Gudauta spawn a static. +-- +-- # Test cases: +-- +-- 1. Observe that the static is spawned. + + +local ZonePosition = ZONE:New( "Position" ) + +local SpawnBuilding = SPAWNSTATIC:NewFromStatic( "Building", country.id.GERMANY ) +local SpawnBarrack = SPAWNSTATIC:NewFromStatic( "Barrack", country.id.GERMANY ) + +local ZonePointVec2 = ZonePosition:GetPointVec2() + +local Building = SpawnBuilding:SpawnFromZone( ZonePosition, 0 ) + +for Heading = 0, 360,60 do + local Radial = Heading * ( math.pi*2 ) / 360 + local x = ZonePointVec2:GetLat() + math.cos( Radial ) * 150 + local y = ZonePointVec2:GetLon() + math.sin( Radial ) * 150 + SpawnBarrack:SpawnFromPointVec2( POINT_VEC2:New( x, y ), Heading + 90 ) +end + + + diff --git a/SPS - Spawning Statics/SPS - 010 - Simple Spawning/SPS - 010 - Simple Spawning.miz b/SPS - Spawning Statics/SPS - 010 - Simple Spawning/SPS - 010 - Simple Spawning.miz new file mode 100644 index 0000000000..68d1bdaece Binary files /dev/null and b/SPS - Spawning Statics/SPS - 010 - Simple Spawning/SPS - 010 - Simple Spawning.miz differ diff --git a/SPS - Spawning Statics/SPS - 050- Spawn FARPs/SPS - 050 - Spawn FARPs.miz b/SPS - Spawning Statics/SPS - 050- Spawn FARPs/SPS - 050 - Spawn FARPs.miz new file mode 100644 index 0000000000..424c2043ad Binary files /dev/null and b/SPS - Spawning Statics/SPS - 050- Spawn FARPs/SPS - 050 - Spawn FARPs.miz differ diff --git a/SPS - Spawning Statics/SPS-100 - Simple Spawning/SPS-100 - Simple Spawning.miz b/SPS - Spawning Statics/SPS-100 - Simple Spawning/SPS-100 - Simple Spawning.miz deleted file mode 100644 index 86f6dee5e7..0000000000 Binary files a/SPS - Spawning Statics/SPS-100 - Simple Spawning/SPS-100 - Simple Spawning.miz and /dev/null differ diff --git a/SPS - Spawning Statics/SPS-100 - Simple Spawning/pack.ps1 b/SPS - Spawning Statics/SPS-100 - Simple Spawning/pack.ps1 deleted file mode 100644 index bbac66e7c1..0000000000 --- a/SPS - Spawning Statics/SPS-100 - Simple Spawning/pack.ps1 +++ /dev/null @@ -1,10 +0,0 @@ -$dir = split-path -parent $MyInvocation.MyCommand.Definition -cd $dir -$file = Split-Path $dir -leaf - -$dir -$file - -cd "_unpacked" -. 7z a -r -y -tzip "..\$file.miz" * -cd .. diff --git a/SPS - Spawning Statics/SPS-100 - Simple Spawning/unpack.ps1 b/SPS - Spawning Statics/SPS-100 - Simple Spawning/unpack.ps1 deleted file mode 100644 index c208a31858..0000000000 --- a/SPS - Spawning Statics/SPS-100 - Simple Spawning/unpack.ps1 +++ /dev/null @@ -1,7 +0,0 @@ -$dir = split-path -parent $MyInvocation.MyCommand.Definition -cd $dir -$file = Split-Path $dir -leaf -Remove-Item .\_unpacked -Force -Recurse -md "_unpacked" -cd "_unpacked" -. 7z x -r -y "..\$file.miz" *