Vanilla HOI-2, Doomsday or Armageddon?
In Doomsday (for example), looking in the /db/tech/secret_weapons_tech.txt file, you find:
Code:
# Basic Rocket Interceptor
application =
{ id = 7010
name = TECH_APP_SW_1_NAME
desc = TECH_APP_SW_1_DESC
position = { x = 296 y = 171 }
year = 1941
# Basic Rocket Engine
component = { id = 7011 name = TECH_CMP_SW_1_1_NAME type = rocketry difficulty = 10 }
# Basic Rocket Interceptor Airframe
component = { id = 7012 name = TECH_CMP_SW_1_2_NAME type = aeronautics difficulty = 8 }
# 30mm Cannons
component = { id = 7013 name = TECH_CMP_SW_1_3_NAME type = artillery difficulty = 5 }
# Improved Centimetric Airborne Fighter Radar
component = { id = 7014 name = TECH_CMP_SW_1_4_NAME type = electronics difficulty = 7 }
# Basic Rocket Interceptor Prototype Tests
component = { id = 7015 name = TECH_CMP_SW_1_5_NAME type = technical_efficiency double_time = yes difficulty = 10 }
[COLOR=Yellow]required = { 4090 5560 }[/COLOR]
effects =
{ command = { type = new_model which = interceptor value = 5 }
}
}
It requires techs #4090 and #5560.
Tech #5560 is "Rocket Engine" (a 1939 tech), off the Industry page.
Tech #4090 is "Advanced Interceptor" (a 1943 tech), off the Aircraft page.
However, it also requires the following random event to trigger:
Code:
#########################################################################
# Theoretical Breakthrough - Secret Weapon
#########################################################################
event = {
id = 8000
random = no
invention = yes
trigger = {
technology = 4090
technology = 5560
NOT = {
is_tech_active = 7010
}
}
name = "EVT_8000_NAME"
desc = "EVT_8000_DESC"
picture = "scientist"
style = 0
action_a = {
name = "ACTIONNAME3201A" # OK
command = { type = activate which = 7010 }# Basic Rocket Interceptor
command = { type = activate which = 7020 }# Impr Rocket Interceptor
}
}
This is a random invention event... it will trigger once you have both of the required techs ("Rocket Engine" and "Advanced Interceptor") researched; with a random MTTH (Mean Time To Happen) of about three or four months.