Advertisement
DareDevilThaGr8

config - bf_109_scripts

Sep 19th, 2023
833
0
2 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 8.77 KB | None | 0 0
  1. #include "BIS_AddonInfo.hpp"
  2. //do not binarize this file else Arma 3 won't be able to find the scripts and sounds
  3.  
  4. class CfgPatches
  5. {
  6.     class bf_109_scripts
  7.     {
  8.         author = "blackgun121";
  9.         units[] = {};
  10.         sounds[] =
  11.         {
  12.             "stuka_siren"
  13.         };
  14.         requiredVersion = 1.0;
  15.         requiredAddons[] = {};
  16.     };
  17. };
  18.  
  19. class cfgSounds
  20. {
  21.     class stuka_siren
  22.     {
  23.         name = "Ju-87 Stuka Siren";
  24.         sound[] = {"bf_109_scripts\sounds\stuka_siren.wav", db+25, 1.0};    //sound path, volume, pitch
  25.         titles[] = {};
  26.     };
  27. };
  28.  
  29. class CfgFunctions
  30. {
  31.     class Bf_109
  32.     {
  33.         tag = "LIB";    //custom tag
  34.        
  35.         class Functions
  36.         {
  37.             //use "[this] spawn LIB_fnc_X;" command, replace X with any of the class name below (Note: do not replace "spawn" with "call" or the game may crash when using Stuka Siren function)
  38.             class Bf_109a_Loadout
  39.             {
  40.                 file = "bf_109_scripts\loadout_scripts\bf_109a_loadout.sqf";
  41.                 description = "Adds selected weapons to the plane as a component";
  42.             };
  43.             class Bf_109b_early_Loadout
  44.             {
  45.                 file = "bf_109_scripts\loadout_scripts\bf_109b_early_loadout.sqf";
  46.                 description = "Adds selected weapons to the plane as a component";
  47.             };
  48.             class Bf_109b_Loadout
  49.             {
  50.                 file = "bf_109_scripts\loadout_scripts\bf_109b_loadout.sqf";
  51.                 description = "Adds selected weapons to the plane as a component";
  52.             };
  53.             class Bf_109c_Loadout
  54.             {
  55.                 file = "bf_109_scripts\loadout_scripts\bf_109c_loadout.sqf";
  56.                 description = "Adds selected weapons to the plane as a component";
  57.             };
  58.             class Bf_109d_Loadout
  59.             {
  60.                 file = "bf_109_scripts\loadout_scripts\bf_109d_loadout.sqf";
  61.                 description = "Adds selected weapons to the plane as a component";
  62.             };
  63.             class Bf_109e_early_Loadout
  64.             {
  65.                 file = "bf_109_scripts\loadout_scripts\bf_109e_early_loadout.sqf";
  66.                 description = "Adds selected weapons to the plane as a component";
  67.             };
  68.             class Bf_109e_Loadout
  69.             {
  70.                 file = "bf_109_scripts\loadout_scripts\bf_109e_loadout.sqf";
  71.                 description = "Adds selected weapons to the plane as a component";
  72.             };
  73.             class Bf_109f_Loadout
  74.             {
  75.                 file = "bf_109_scripts\loadout_scripts\bf_109f_loadout.sqf";
  76.                 description = "Adds selected weapons to the plane as a component";
  77.             };
  78.             class Bf_109g_early_Loadout
  79.             {
  80.                 file = "bf_109_scripts\loadout_scripts\bf_109g_early_loadout.sqf";
  81.                 description = "Adds selected weapons to the plane as a component";
  82.             };
  83.             class Bf_109g_Loadout
  84.             {
  85.                 file = "bf_109_scripts\loadout_scripts\bf_109g_loadout.sqf";
  86.                 description = "Adds selected weapons to the plane as a component";
  87.             };
  88.             class Bf_109g_late_Loadout
  89.             {
  90.                 file = "bf_109_scripts\loadout_scripts\bf_109g_late_loadout.sqf";
  91.                 description = "Adds selected weapons to the plane as a component";
  92.             };
  93.             class Bf_109g_very_late_Loadout
  94.             {
  95.                 file = "bf_109_scripts\loadout_scripts\bf_109g_very_late_loadout.sqf";
  96.                 description = "Adds selected weapons to the plane as a component";
  97.             };
  98.             class Bf_109k_Loadout
  99.             {
  100.                 file = "bf_109_scripts\loadout_scripts\bf_109k_loadout.sqf";
  101.                 description = "Adds selected weapons to the plane as a component";
  102.             };
  103.             class Bf_109k_late_Loadout
  104.             {
  105.                 file = "bf_109_scripts\loadout_scripts\bf_109k_late_loadout.sqf";
  106.                 description = "Adds selected weapons to the plane as a component";
  107.             };
  108.             class Fw_190_Loadout
  109.             {
  110.                 file = "bf_109_scripts\loadout_scripts\fw_190_loadout.sqf";
  111.                 description = "Adds patched weapons to the plane and removes default weapons and magazines";
  112.             };
  113.             class Ju_87_early_Loadout
  114.             {
  115.                 file = "bf_109_scripts\loadout_scripts\ju_87_early_loadout.sqf";
  116.                 description = "Adds patched weapons to the plane and removes default weapons and magazines";
  117.             };
  118.             class Ju_87_Loadout
  119.             {
  120.                 file = "bf_109_scripts\loadout_scripts\ju_87_loadout.sqf";
  121.                 description = "Adds patched weapons to the plane and removes default weapons and magazines";
  122.             };
  123.             class P_39_Loadout
  124.             {
  125.                 file = "bf_109_scripts\loadout_scripts\p_39_loadout.sqf";
  126.                 description = "Adds patched weapons to the plane and removes default weapons and magazines";
  127.             };
  128.             class P_47_Loadout
  129.             {
  130.                 file = "bf_109_scripts\loadout_scripts\p_47_loadout.sqf";
  131.                 description = "Adds patched weapons to the plane and removes default weapons and magazines";
  132.             };
  133.             class Pe_2_Loadout
  134.             {
  135.                 file = "bf_109_scripts\loadout_scripts\pe_2_loadout.sqf";
  136.                 description = "Adds patched weapons to the plane and removes default weapons and magazines";
  137.             };
  138.             class Stuka_Siren
  139.             {
  140.                 file = "bf_109_scripts\stuka_siren_script\stuka_siren.sqf";
  141.                 description = "Plays stuka siren when the plane enters a dive";
  142.             };
  143.             class Ju_87_Init
  144.             {
  145.                 file = "bf_109_scripts\init_scripts\ju_87_init.sqf";
  146.                 description = "Adds bullet trail effects and functions to the plane";
  147.             };
  148.             class Fw_190_Init
  149.             {
  150.                 file = "bf_109_scripts\init_scripts\fw_190_init.sqf";
  151.                 description = "Adds bullet trail effects to the plane";
  152.             };
  153.             class P_39_Init
  154.             {
  155.                 file = "bf_109_scripts\init_scripts\p_39_init.sqf";
  156.                 description = "Adds bullet trail effects to the plane";
  157.             };
  158.             class P_47_Init
  159.             {
  160.                 file = "bf_109_scripts\init_scripts\p_47_init.sqf";
  161.                 description = "Adds bullet trail effects to the plane";
  162.             };
  163.             class Pe_2_Init
  164.             {
  165.                 file = "bf_109_scripts\init_scripts\pe_2_init.sqf";
  166.                 description = "Adds bullet trail effects to the plane";
  167.             };
  168.             class Drop_Tank
  169.             {
  170.                 file = "bf_109_scripts\fired_scripts\drop_tank.sqf";
  171.                 description = "Simulates a drop tank (requires drop tank weapon to function)";
  172.             };
  173.             class Multi_Fire
  174.             {
  175.                 file = "bf_109_scripts\fired_scripts\multi_fire.sqf";
  176.                 description = "Allows multiple weapons to be fired at the same time";
  177.             };
  178.             class Mistel_Init
  179.             {
  180.                 file = "bf_109_scripts\mistel_scripts\mistel_init.sqf";
  181.                 description = "Adds Mistel 1 and eventhandlers to the plane and mistel";
  182.             };
  183.             class Mistel_Player
  184.             {
  185.                 file = "bf_109_scripts\mistel_scripts\mistel_player.sqf";
  186.                 description = "Locks mistel controls for player controlled mistel";
  187.             };
  188.             class Mistel_AI
  189.             {
  190.                 file = "bf_109_scripts\mistel_scripts\mistel_ai.sqf";
  191.                 description = "Tells mistel ai to move the plane's locked target position and crash into the ground when close to the target";
  192.             };
  193.             class Mistel_Remove_Weapon
  194.             {
  195.                 file = "bf_109_scripts\mistel_scripts\mistel_remove_weapon.sqf";
  196.                 description = "Removes Mistel weapon and pylon magazine after an X amount of time";
  197.             };
  198.             class Mistel_Add_Weapon
  199.             {
  200.                 file = "bf_109_scripts\mistel_scripts\mistel_add_weapon.sqf";
  201.                 description = "Adds Mistel pylon weapon after an X amount of time";
  202.             };
  203.             class Mistel_Gear_Init
  204.             {
  205.                 file = "bf_109_scripts\mistel_scripts\mistel_gear_init.sqf";
  206.                 description = "Raises landing gear if Mistel starts in the air";
  207.             };
  208.             class Mistel_Gear
  209.             {
  210.                 file = "bf_109_scripts\mistel_scripts\mistel_gear.sqf";
  211.                 description = "Animates landing gear on Mistel 1 (requires gear eventhandler to function)";
  212.             };
  213.             class Mistel_Animate_Gear
  214.             {
  215.                 file = "bf_109_scripts\mistel_scripts\mistel_animate_gear.sqf";
  216.                 description = "Animates Mistel landing gear";
  217.             };
  218.             class Mistel_Animate_Gear_On_Plane
  219.             {
  220.                 file = "bf_109_scripts\mistel_scripts\mistel_animate_gear_on_plane.sqf";
  221.                 description = "Animates Mistel landing gear on plane";
  222.             };
  223.             class Mistel_Jettison
  224.             {
  225.                 file = "bf_109_scripts\mistel_scripts\mistel_jettison.sqf";
  226.                 description = "Adds Mistel jettison user menu";
  227.             };
  228.             class Mistel_Attach
  229.             {
  230.                 file = "bf_109_scripts\mistel_scripts\mistel_attach.sqf";
  231.                 description = "Attaches Mistel to plane";
  232.             };
  233.             class Mistel_Detach
  234.             {
  235.                 file = "bf_109_scripts\mistel_scripts\mistel_detach.sqf";
  236.                 description = "Adds Mistel detach user menu and detaches Mistel from plane, script places mistel in a safe random position near the plane";
  237.             };
  238.             class Clear_Blast
  239.             {
  240.                 file = "bf_109_scripts\modifier_scripts\clear_blast.sqf";
  241.                 description = "Forces plane to flying to a safe height when using very high explosive weapons";
  242.             };
  243.             class Disable_Damage
  244.             {
  245.                 file = "bf_109_scripts\modifier_scripts\disable_damage.sqf";
  246.                 description = "Disable damage for an X (in seconds) amount of time";
  247.             };
  248.             class Mass_Adjust
  249.             {
  250.                 file = "bf_109_scripts\modifier_scripts\mass_adjust.sqf";
  251.                 description = "Adjust mass to an aircraft to increase/decrease its handling";
  252.             };
  253.             class Lock_Controls
  254.             {
  255.                 file = "bf_109_scripts\modifier_scripts\lock_controls.sqf";
  256.                 description = "Locks vehicle controls for an X (in seconds) or infinite amount of time";
  257.             };
  258.             class Taxiing
  259.             {
  260.                 file = "bf_109_scripts\fixes_scripts\taxiing.sqf";
  261.                 description = "Fixes taxiing if the plane gets stuck";
  262.             };
  263.         };
  264.     };
  265. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement