cod4-sdk/raw/maps/village_defend_amb.gsc
2008-01-19 00:00:00 +00:00

78 lines
No EOL
3.2 KiB
Text

#include maps\_ambient;
main()
{
// Set the underlying ambient track
level.ambient_track ["exterior0"] = "ambient_village_defend_ext0";
level.ambient_track ["exterior3"] = "ambient_village_defend_ext3";
level.ambient_track ["exterior4"] = "ambient_village_defend_ext4";
level.ambient_track ["exterior5"] = "ambient_village_defend_ext5";
thread maps\_utility::set_ambient("exterior3");
ambientDelay("exterior0", 2.0, 8.0); // Trackname, min and max delay between ambient events
ambientEvent("exterior0", "elm_wind_leafy", 12.0);
ambientEvent("exterior0", "null", 0.3);
ambientDelay("exterior3", 2.0, 8.0); // Trackname, min and max delay between ambient events
ambientEvent("exterior3", "elm_wind_leafy", 12.0);
ambientEvent("exterior3", "elm_jet_flyover_dist", 1.0);
ambientEvent("exterior3", "elm_explosions_dist", 3.0);
ambientEvent("exterior3", "elm_gunfire_50cal_dist", 3.0);
ambientEvent("exterior3", "elm_gunfire_ak47_dist", 3.0);
ambientEvent("exterior3", "elm_gunfire_m16_dist", 3.0);
ambientEvent("exterior3", "null", 0.3);
ambientDelay("exterior4", 2.0, 8.0); // Trackname, min and max delay between ambient events
ambientEvent("exterior4", "elm_wind_leafy", 6.0);
ambientEvent("exterior4", "elm_helicopter_flyover_med", 2.0);
ambientEvent("exterior4", "elm_jet_flyover_med", 1.0);
ambientEvent("exterior4", "elm_jet_flyover_dist", 1.0);
ambientEvent("exterior4", "elm_explosions_dist", 3.0);
ambientEvent("exterior4", "elm_explosions_med", 3.0);
ambientEvent("exterior4", "elm_gunfire_50cal_dist", 3.0);
ambientEvent("exterior4", "elm_gunfire_50cal_med", 3.0);
ambientEvent("exterior4", "elm_gunfire_ak47_dist", 3.0);
ambientEvent("exterior4", "elm_gunfire_ak47_med", 3.0);
ambientEvent("exterior4", "elm_gunfire_m16_dist", 3.0);
ambientEvent("exterior4", "elm_gunfire_m16_med", 3.0);
ambientEvent("exterior4", "null", 0.3);
ambientDelay("exterior5", 2.0, 8.0); // Trackname, min and max delay between ambient events
ambientEvent("exterior5", "elm_wind_leafy", 3.0);
ambientEvent("exterior5", "elm_helicopter_flyover_med", 3.0);
ambientEvent("exterior5", "elm_jet_flyover_med", 1.0);
ambientEvent("exterior5", "elm_jet_flyover_dist", 1.0);
ambientEvent("exterior5", "elm_explosions_dist", 3.0);
ambientEvent("exterior5", "elm_explosions_med", 3.0);
ambientEvent("exterior5", "elm_artillery_med", 1.0);
ambientEvent("exterior5", "elm_gunfire_50cal_dist", 3.0);
ambientEvent("exterior5", "elm_gunfire_50cal_med", 3.0);
ambientEvent("exterior5", "elm_gunfire_ak47_dist", 3.0);
ambientEvent("exterior5", "elm_gunfire_ak47_med", 3.0);
ambientEvent("exterior5", "elm_gunfire_m16_dist", 3.0);
ambientEvent("exterior5", "elm_gunfire_m16_med", 3.0);
ambientEvent("exterior5", "null", 0.3);
ambientEventStart("exterior3");
//level waittill ("action moment");
level waittill ( "southern_hill_action_started" );
thread maps\_utility::set_ambient("exterior4");
ambientEventStart("exterior4");
level waittill ( "objective_price_orders_minigun" );
thread maps\_utility::set_ambient("exterior5");
ambientEventStart("exterior5");
//ambientEventStart("action ambient");
}