地对地导弹测试
This commit is contained in:
@@ -14,17 +14,24 @@
|
||||
include_once platforms/red_radar.txt
|
||||
include_once sensors/radar/acq_radar.txt
|
||||
|
||||
platform_type ACQ_RADAR RED_RADAR
|
||||
platform_type ACQ_RADAR WSF_PLATFORM
|
||||
icon Ground_Radar
|
||||
category ACQUISITION
|
||||
|
||||
radar_signature VEHICLE_RADAR_SIGNATURE
|
||||
|
||||
sensor acq_radar ACQ_RADAR
|
||||
off
|
||||
on
|
||||
internal_link data_mgr
|
||||
ignore_same_side
|
||||
end_sensor
|
||||
|
||||
processor data_mgr WSF_LINKED_PROCESSOR
|
||||
report_to commander via sub_net
|
||||
end_processor
|
||||
|
||||
aux_data
|
||||
double max_range = 92600 # meters = 50 nm
|
||||
end_aux_data
|
||||
comm sub_net DATALINK
|
||||
network_name <local:slave>
|
||||
#internal_link task_mgr
|
||||
end_comm
|
||||
|
||||
end_platform_type
|
||||
|
||||
@@ -24,7 +24,7 @@ processor IADS_CMDR_TASK_MGR WSF_TASK_PROCESSOR
|
||||
script_variables
|
||||
int MAX_SAMS_PER_TARGET = 2;
|
||||
int MAX_ASSIGNMENTS_PER_SAM = 4;
|
||||
string WEAPON_NAME = "sam";
|
||||
string WEAPON_NAME = "";
|
||||
end_script_variables
|
||||
|
||||
// determine if TRACK is assignable
|
||||
@@ -45,7 +45,8 @@ processor IADS_CMDR_TASK_MGR WSF_TASK_PROCESSOR
|
||||
bool weaponsAvailable = false;
|
||||
|
||||
int quantity = 0;
|
||||
WsfWeapon weapon = aAssignee.Weapon(WEAPON_NAME);
|
||||
string weapon_name=aAssignee->weapon_name;
|
||||
WsfWeapon weapon = aAssignee.Weapon(weapon_name);
|
||||
if (weapon.IsTurnedOn())
|
||||
{
|
||||
quantity = quantity + weapon.QuantityRemaining();
|
||||
@@ -140,7 +141,7 @@ processor IADS_CMDR_TASK_MGR WSF_TASK_PROCESSOR
|
||||
foreach (WsfPlatform sub in PLATFORM.Subordinates())
|
||||
{
|
||||
#writeln("is Subordinates");
|
||||
if (sub.Type() == "LARGE_SAM_LAUNCHER")
|
||||
if (sub.Type() == "LARGE_SAM_LAUNCHER"||sub.Type() == "MORTAR")
|
||||
{
|
||||
#writeln("is LARGE_SAM_LAUNCHER");
|
||||
if (WeaponsAvailable(sub) &&
|
||||
|
||||
@@ -32,7 +32,10 @@ platform_type LARGE_SAM_LAUNCHER WSF_PLATFORM
|
||||
processor data_mgr WSF_TRACK_PROCESSOR
|
||||
purge_interval 60 sec
|
||||
end_processor
|
||||
|
||||
|
||||
script_variables
|
||||
string weapon_name="sam";
|
||||
end_script_variables
|
||||
processor task_mgr WSF_SCRIPT_PROCESSOR
|
||||
|
||||
update_interval 5 sec
|
||||
|
||||
46
platforms/mortar.txt
Normal file
46
platforms/mortar.txt
Normal file
@@ -0,0 +1,46 @@
|
||||
# File generated by Wizard 2.9.0 on Oct 14, 2025.
|
||||
include_once base_types/weapons/ssm/red_srbm_1.txt
|
||||
include_once behavior/behavior_fire.txt
|
||||
include_once behavior/behavior_move.txt
|
||||
include_once behavior/behavior_wait.txt
|
||||
|
||||
platform_type MORTAR WSF_PLATFORM
|
||||
icon SA-10_Launcher
|
||||
radar_signature VEHICLE_RADAR_SIGNATURE
|
||||
mover WSF_GROUND_MOVER end_mover
|
||||
|
||||
weapon red_srbm_1 RED_SRBM_1
|
||||
quantity 10
|
||||
end_weapon
|
||||
|
||||
comm cmdr_net 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
|
||||
|
||||
script_variables
|
||||
string weapon_name="red_srbm_1";
|
||||
end_script_variables
|
||||
|
||||
processor task_mgr WSF_SCRIPT_PROCESSOR
|
||||
update_interval 5 sec
|
||||
advanced_behavior_tree
|
||||
btt on
|
||||
selector
|
||||
behavior_node behavior_fire
|
||||
behavior_node behavior_move
|
||||
behavior_node behavior_wait
|
||||
end_selector
|
||||
|
||||
end_advanced_behavior_tree
|
||||
end_processor
|
||||
|
||||
zone battalion_sector
|
||||
circular maximum_radius 20 nm
|
||||
end_zone
|
||||
end_platform_type
|
||||
@@ -25,10 +25,10 @@ include_once behavior/UCAV_wait.txt
|
||||
platform_type UCAV WSF_PLATFORM
|
||||
icon UCAV
|
||||
|
||||
infrared_signature UCAV_INFRARED_SIG
|
||||
optical_signature UCAV_OPTICAL_SIG
|
||||
radar_signature UCAV_RADAR_SIG
|
||||
|
||||
# infrared_signature UCAV_INFRARED_SIG
|
||||
# optical_signature UCAV_OPTICAL_SIG
|
||||
# radar_signature UCAV_RADAR_SIG
|
||||
radar_signature VEHICLE_RADAR_SIGNATURE
|
||||
# sensor esm UCAV_ESM
|
||||
# on
|
||||
# internal_link data_mgr
|
||||
|
||||
Reference in New Issue
Block a user