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
|
2025-10-09 09:48:26 +08:00
|
|
|
include_once behavior/behavior_fire.txt
|
|
|
|
|
include_once behavior/behavior_move.txt
|
|
|
|
|
include_once behavior/behavior_wait.txt
|
2025-09-12 15:20:28 +08:00
|
|
|
|
2025-09-23 11:18:33 +08:00
|
|
|
platform_type LARGE_SAM_LAUNCHER WSF_PLATFORM
|
2025-09-12 15:20:28 +08:00
|
|
|
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
|
|
|
|
2025-09-23 11:18:33 +08:00
|
|
|
|
|
|
|
|
mover WSF_GROUND_MOVER
|
|
|
|
|
end_mover
|
|
|
|
|
|
|
|
|
|
comm cmdr_net RED_DATALINK
|
2025-09-12 15:20:28 +08:00
|
|
|
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
|
|
|
|
|
|
2025-10-09 09:48:26 +08:00
|
|
|
processor task_mgr WSF_SCRIPT_PROCESSOR
|
|
|
|
|
|
2025-09-23 11:18:33 +08:00
|
|
|
update_interval 5 sec
|
|
|
|
|
advanced_behavior_tree
|
2025-10-09 09:48:26 +08:00
|
|
|
btt on
|
2025-09-23 11:18:33 +08:00
|
|
|
selector
|
2025-10-09 09:48:26 +08:00
|
|
|
behavior_node behavior_fire
|
|
|
|
|
behavior_node behavior_move
|
|
|
|
|
behavior_node behavior_wait
|
2025-09-23 11:18:33 +08:00
|
|
|
end_selector
|
|
|
|
|
|
|
|
|
|
end_advanced_behavior_tree
|
2025-09-19 10:27:31 +08:00
|
|
|
|
2025-09-23 11:18:33 +08:00
|
|
|
# script void on_task_assign(WsfTask aTask, WsfTrack aTrack)
|
|
|
|
|
#
|
|
|
|
|
# if (aTask.TaskType() == "ENGAGE")
|
|
|
|
|
# {
|
|
|
|
|
# WsfWeapon missile = PLATFORM.Weapon("sam");
|
|
|
|
|
# missile.Fire(aTrack);
|
|
|
|
|
# writeln("fire,remain weapon:", missile.QuantityRemaining());
|
|
|
|
|
# }
|
|
|
|
|
# if (aTask.TaskType() == "MOVE")
|
|
|
|
|
# {
|
|
|
|
|
# if(!aTrack.WithinZoneOf(PLATFORM,"battalion_sector"))
|
|
|
|
|
# {
|
|
|
|
|
# double relativeAzimuthOf=
|
|
|
|
|
# PLATFORM.RelativeAzimuthOf(aTrack.CurrentLocation());
|
|
|
|
|
# PLATFORM.TurnToRelativeHeading(relativeAzimuthOf);
|
|
|
|
|
# PLATFORM.GoToSpeed(16);#m/s
|
|
|
|
|
#
|
|
|
|
|
# }
|
|
|
|
|
# }
|
|
|
|
|
# if (aTask.TaskType() == "WAIT")
|
|
|
|
|
# {
|
|
|
|
|
# PLATFORM.GoToSpeed(0);#m/s
|
|
|
|
|
# }
|
|
|
|
|
#
|
|
|
|
|
#
|
|
|
|
|
# end_script
|
2025-09-17 17:53:39 +08:00
|
|
|
|
|
|
|
|
|
2025-09-12 15:20:28 +08:00
|
|
|
end_processor
|
2025-09-23 11:18:33 +08:00
|
|
|
|
|
|
|
|
|
2025-09-12 15:20:28 +08:00
|
|
|
weapon sam LARGE_SAM
|
2025-09-19 10:27:31 +08:00
|
|
|
quantity 10
|
2025-09-12 15:20:28 +08:00
|
|
|
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
|