-- Callback function for when the player flies a vehicle/lands in the engines
function m23_engine_death_cb(char, trigger)
if character_is_in_vehicle(char) then
vehicle_detonate(get_char_vehicle_name(char))
end
delay(1.0)
m23_insta_kill_character(char, true)
end
-- Continuous Spawn Groups --
M23_spawn_groups = {
defensive_01 = "Group_stag_cs_defense 001",
defensive_02 = "Group_stag_cs_defense 002",
offensive_01 = "Group_stag_cs_offense 001",
offensive_02 = "Group_stag_cs_offense 002",
riotshield_01 = "Group_stag_cs_riotshield 001",
-- sniper_01 = "Group_stag_cs_sniper 001",
}
-- Spawn Regions --
M23_spawn_regions = {
landing_deck = {"spr_landing_deck 001", "spr_landing_deck 002", "spr_landing_deck 003", "spr_landing_deck 004",
"spr_landing_deck 005", "spr_landing_deck 006", "spr_landing_deck 007", "spr_landing_deck 008",
"spr_landing_deck 009", "spr_landing_deck 010", "spr_landing_deck 011" },
cyrus_deck = { "spr_deck_reinforce 001", "spr_deck_reinforce 002", "spr_deck_reinforce 003",
"spr_deck_reinforce 004", "spr_deck_reinforce 005" },
}
-- Setup and start the continuous spawn for the landing deck of the Daedalus
function m23_setup_landing_deck_cont_spawn()
-- Start the continuous spawn
spawn_region_max_spawn_dist(150.0)
continuous_spawn_regions_enable(M23_spawn_regions.landing_deck, true)
continuous_spawn_start(M23_spawn_groups.defensive_01, 0, 5)
continuous_spawn_start(M23_spawn_groups.defensive_02, 0, 5)
continuous_spawn_start(M23_spawn_groups.offensive_01, 0, 5)
continuous_spawn_start(M23_spawn_groups.riotshield_01, 0, 5)
end