mirror of
https://github.com/iTracerFacer/DCS_MissionDev.git
synced 2025-12-03 04:14:46 +00:00
Fixed moose patcher.
This commit is contained in:
parent
599e2f7820
commit
396c268e86
@ -233,79 +233,79 @@ env.info("Spawning MANPADS...")
|
||||
RandomSpawns_RU_MANPADS = SPAWN:New( "RU_MANPADS-1" )
|
||||
:InitLimit( MAX_RU_MANPADS, MAX_RU_MANPADS )
|
||||
:InitRandomizeZones( RandomSpawnZoneTable )
|
||||
:SpawnScheduled( 5, .5 )
|
||||
:SpawnScheduled( 1, .5 )
|
||||
|
||||
-- Anti-Aircraft Artillery
|
||||
env.info("Spawning AAA...")
|
||||
RandomSpawns_RU_AAA = SPAWN:New( "RU_AAA-1" )
|
||||
:InitLimit( MAX_RU_AAA, MAX_RU_AAA )
|
||||
:InitRandomizeZones( RandomSpawnZoneTable )
|
||||
:SpawnScheduled( 5, .5 )
|
||||
:SpawnScheduled( 2.1, .3 )
|
||||
|
||||
-- Main Battle Tanks
|
||||
env.info("Spawning T-90 tanks...")
|
||||
RandomSpawns_RU_TANK_T90 = SPAWN:New( "RU_TANK_T90" )
|
||||
:InitLimit( MAX_RU_TANK_T90, MAX_RU_TANK_T90 )
|
||||
:InitRandomizeZones( RandomSpawnZoneTable )
|
||||
:SpawnScheduled( 5, .5 )
|
||||
:SpawnScheduled( 3.3, .5 )
|
||||
|
||||
env.info("Spawning T-55 tanks...")
|
||||
RandomSpawns_RU_TANK_T55 = SPAWN:New( "RU_TANK_T55" )
|
||||
:InitLimit( MAX_RU_TANK_T55, MAX_RU_TANK_T55 )
|
||||
:InitRandomizeZones( RandomSpawnZoneTable )
|
||||
:SpawnScheduled( 5, .5 )
|
||||
:SpawnScheduled( 1.3, .4 )
|
||||
|
||||
-- Infantry Fighting Vehicles
|
||||
env.info("Spawning IFVs...")
|
||||
RandomSpawns_RU_IFV = SPAWN:New( "RU_IFV-1" )
|
||||
:InitLimit( MAX_RU_IFV, MAX_RU_IFV )
|
||||
:InitRandomizeZones( RandomSpawnZoneTable )
|
||||
:SpawnScheduled( 5, .5 )
|
||||
:SpawnScheduled( 1.6, .5 )
|
||||
|
||||
env.info("Spawning Technical vehicles...")
|
||||
RandomSpawns_RU_IFV_Technicals = SPAWN:New( "RU_IFV-Technicals" )
|
||||
:InitLimit( MAX_RU_IFV_Technicals, MAX_RU_IFV_Technicals )
|
||||
:InitRandomizeZones( RandomSpawnZoneTable )
|
||||
:SpawnScheduled( 5, .5 )
|
||||
:SpawnScheduled( 3.1, .6 )
|
||||
|
||||
-- Short Range SAM Systems
|
||||
env.info("Spawning SA-08 SAMs...")
|
||||
RandomSpawns_RU_SA08 = SPAWN:New( "RU_SA-08" )
|
||||
:InitLimit( MAX_RU_SA08, MAX_RU_SA08 )
|
||||
:InitRandomizeZones( RandomSpawnZoneTable )
|
||||
:SpawnScheduled( 5, .5 )
|
||||
:SpawnScheduled( 5.1, .8 )
|
||||
|
||||
-- Medium Range SAM Systems
|
||||
env.info("Spawning SA-19 SAMs...")
|
||||
RandomSpawns_RU_SA19 = SPAWN:New( "RU_SA-19" )
|
||||
:InitLimit( MAX_RU_SA19, MAX_RU_SA19 )
|
||||
:InitRandomizeZones( RandomSpawnZoneTable )
|
||||
:SpawnScheduled( 5, .5 )
|
||||
:SpawnScheduled( 4.6, .7 )
|
||||
|
||||
-- Long Range SAM Systems
|
||||
env.info("Spawning SA-15 SAMs...")
|
||||
RandomSpawns_RU_SA15 = SPAWN:New( "RU_SA-15" )
|
||||
:InitLimit( MAX_RU_SA15, MAX_RU_SA15 )
|
||||
:InitRandomizeZones( RandomSpawnZoneTable )
|
||||
:SpawnScheduled( 5, .5 )
|
||||
:SpawnScheduled( 6.3, .5 )
|
||||
|
||||
env.info("Spawning SA-02 SAMs...")
|
||||
RandomSpawns_RU_SA02 = SPAWN:New( "RU_SA2" )
|
||||
:InitLimit( MAX_RU_SA2, MAX_RU_SA2 )
|
||||
:InitRandomizeZones( RandomSpawnZoneTable )
|
||||
:SpawnScheduled( 5, .5 )
|
||||
:SpawnScheduled( 60, .5 )
|
||||
|
||||
env.info("Spawning SA6 SAMs...")
|
||||
RandomSpawns_RU_SA6 = SPAWN:New( "RU_SA6" )
|
||||
:InitLimit( MAX_RU_SA6, MAX_RU_SA6 )
|
||||
:InitRandomizeZones( RandomSpawnZoneTable )
|
||||
:SpawnScheduled( 5, .5 )
|
||||
:SpawnScheduled( 60, .5 )
|
||||
|
||||
env.info("Spawning SA10 SAMs...")
|
||||
RandomSpawns_RU_SA10 = SPAWN:New( "RU_SA10Site" )
|
||||
:InitLimit( MAX_RU_SA10, MAX_RU_SA10 )
|
||||
:InitRandomizeZones( RandomSpawnZoneTable )
|
||||
:SpawnScheduled( 5, .5 )
|
||||
:SpawnScheduled( 3600, .5 )
|
||||
|
||||
--[[
|
||||
RU_INTERCEPTOR_SPAWN = SPAWN:New("RU_INTERCEPT-1")
|
||||
|
||||
1921
Moose_.lua
1921
Moose_.lua
File diff suppressed because it is too large
Load Diff
@ -2,15 +2,37 @@
|
||||
|
||||
[CmdletBinding()]
|
||||
param(
|
||||
# Destination path for Moose_.lua. Defaults to repo root alongside Patch-MooseMissions folder
|
||||
# Destination path for Moose_.lua. If not provided, defaults to repo root alongside Patch-MooseMissions folder
|
||||
[Parameter(Mandatory=$false)]
|
||||
[string]$MooseLuaPath = (Join-Path (Split-Path $PSScriptRoot -Parent) 'Moose_.lua'),
|
||||
[string]$MooseLuaPath,
|
||||
|
||||
# Use -Force to actually download; otherwise runs in WhatIf/preview mode
|
||||
[Parameter(Mandatory=$false)]
|
||||
[switch]$Force
|
||||
)
|
||||
|
||||
# Resolve a robust script root that works even when dot-sourced or in older hosts
|
||||
$__scriptRoot = $PSScriptRoot
|
||||
if ([string]::IsNullOrWhiteSpace($__scriptRoot)) {
|
||||
try { $__scriptRoot = Split-Path -Parent $PSCommandPath } catch {}
|
||||
}
|
||||
if ([string]::IsNullOrWhiteSpace($__scriptRoot)) {
|
||||
try { $__scriptRoot = Split-Path -Parent $MyInvocation.MyCommand.Path } catch {}
|
||||
}
|
||||
|
||||
# If destination wasn't provided, default to the repo root (parent of Patch-MooseMissions)
|
||||
if ([string]::IsNullOrWhiteSpace($MooseLuaPath)) {
|
||||
$parentOfScriptRoot = $__scriptRoot
|
||||
if (-not [string]::IsNullOrWhiteSpace($parentOfScriptRoot)) {
|
||||
try { $parentOfScriptRoot = Split-Path -Path $parentOfScriptRoot -Parent } catch { $parentOfScriptRoot = $null }
|
||||
}
|
||||
if ([string]::IsNullOrWhiteSpace($parentOfScriptRoot)) {
|
||||
# Final fallback: current directory
|
||||
$parentOfScriptRoot = (Get-Location).Path
|
||||
}
|
||||
$MooseLuaPath = Join-Path -Path $parentOfScriptRoot -ChildPath 'Moose_.lua'
|
||||
}
|
||||
|
||||
# Determine WhatIf mode (preview by default)
|
||||
$runInWhatIfMode = -not $Force
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user