指挥所接收雷达并下发任务通信建立

This commit is contained in:
2025-09-17 17:53:39 +08:00
parent c177eeafeb
commit 826c030dc5
7 changed files with 222 additions and 120 deletions

View File

@@ -15,6 +15,7 @@ include_once weapons/sam/large_sam.txt
platform_type LARGE_SAM_LAUNCHER WSF_PLATFORM
icon SA-10_Launcher
radar_signature VEHICLE_RADAR_SIGNATURE
comm cmdr_net RED_DATALINK
network_name <local:slave>
@@ -27,9 +28,44 @@ platform_type LARGE_SAM_LAUNCHER WSF_PLATFORM
end_processor
processor task_mgr WSF_TASK_PROCESSOR
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
end_processor
weapon sam LARGE_SAM
quantity 4
end_weapon
zone battalion_sector
circular maximum_radius 20 nm
end_zone
end_platform_type