2025-09-12 15:20:28 +08:00
|
|
|
# ****************************************************************************
|
|
|
|
|
# CUI
|
|
|
|
|
#
|
|
|
|
|
# The Advanced Framework for Simulation, Integration, and Modeling (AFSIM)
|
|
|
|
|
#
|
|
|
|
|
# The use, dissemination or disclosure of data in this file is subject to
|
|
|
|
|
# limitation or restriction. See accompanying README and LICENSE for details.
|
|
|
|
|
# ****************************************************************************
|
|
|
|
|
# * * ************************************** * *
|
|
|
|
|
# * ****** Demonstration input file ****** *
|
|
|
|
|
# * ****** UNCLASSIFIED ****** *
|
|
|
|
|
# * * ************************************** * *
|
|
|
|
|
|
|
|
|
|
include_once weapons/sam/large_sam.txt
|
|
|
|
|
|
|
|
|
|
platform_type LARGE_SAM_LAUNCHER WSF_PLATFORM
|
|
|
|
|
icon SA-10_Launcher
|
2025-09-17 17:53:39 +08:00
|
|
|
radar_signature VEHICLE_RADAR_SIGNATURE
|
2025-09-12 15:20:28 +08:00
|
|
|
|
|
|
|
|
comm cmdr_net RED_DATALINK
|
|
|
|
|
network_name <local:slave>
|
|
|
|
|
internal_link data_mgr
|
|
|
|
|
internal_link task_mgr
|
|
|
|
|
end_comm
|
|
|
|
|
|
|
|
|
|
processor data_mgr WSF_TRACK_PROCESSOR
|
|
|
|
|
purge_interval 60 sec
|
|
|
|
|
end_processor
|
|
|
|
|
|
|
|
|
|
processor task_mgr WSF_TASK_PROCESSOR
|
2025-09-17 17:53:39 +08:00
|
|
|
script void on_task_assign(WsfTask aTask, WsfTrack aTrack)
|
|
|
|
|
|
|
|
|
|
if (aTask.TaskType() == "ENGAGE")
|
|
|
|
|
{
|
|
|
|
|
if (!aTrack.Exists())
|
|
|
|
|
{
|
|
|
|
|
writeln("[SAM] ");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (!aTrack.WithinZoneOf(PLATFORM, "battalion_sector"))
|
|
|
|
|
writeln("[SAM] 20nm ");
|
|
|
|
|
return;
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
|
if (PLATFORM.Weapon("sam").QuantityRemaining() <= 0) then
|
|
|
|
|
writeln("[SAM] ");
|
|
|
|
|
return;
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
|
PLATFORM.Weapon("sam").FireAt(aTrack);
|
|
|
|
|
writeln("[SAM] : ", aTrack.TargetName());
|
|
|
|
|
else
|
|
|
|
|
writeln("[SAM] ", aTask.Type());
|
|
|
|
|
end
|
|
|
|
|
end_script
|
|
|
|
|
|
|
|
|
|
|
2025-09-12 15:20:28 +08:00
|
|
|
end_processor
|
|
|
|
|
|
|
|
|
|
weapon sam LARGE_SAM
|
|
|
|
|
quantity 4
|
|
|
|
|
end_weapon
|
2025-09-17 17:53:39 +08:00
|
|
|
|
|
|
|
|
zone battalion_sector
|
|
|
|
|
circular maximum_radius 20 nm
|
|
|
|
|
end_zone
|
2025-09-12 15:20:28 +08:00
|
|
|
end_platform_type
|