侦察,干扰,指挥,开火构建完毕

This commit is contained in:
2025-09-19 10:27:31 +08:00
parent 826c030dc5
commit bc21884da0
9 changed files with 191 additions and 114 deletions

View File

@@ -22,6 +22,8 @@ platform_type LARGE_SAM_LAUNCHER WSF_PLATFORM
internal_link data_mgr
internal_link task_mgr
end_comm
mover WSF_GROUND_MOVER
end_mover
processor data_mgr WSF_TRACK_PROCESSOR
purge_interval 60 sec
@@ -32,37 +34,34 @@ platform_type LARGE_SAM_LAUNCHER WSF_PLATFORM
if (aTask.TaskType() == "ENGAGE")
{
if (!aTrack.Exists())
{
writeln("[SAM] ");
return;
}
WsfWeapon missile = PLATFORM.Weapon("sam");
missile.Fire(aTrack);
writeln("fire,remain weapon:", missile.QuantityRemaining());
}
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
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
end_processor
weapon sam LARGE_SAM
quantity 4
quantity 10
end_weapon
zone battalion_sector