zagr 38 Posted April 17, 2022 so, i have a class CfgSounds that look like this: Quote class CfgSounds { class quest_finished { name = "quest_finished"; sound[] = {"\Sounds\quest_finished.ogg", db+3, 1}; titles[]={}; }; class quest_failed { name = "quest_failed"; sound[] = {"\Sounds\quest_failed.ogg", db+3, 1}; titles[]={}; }; class quest_select { name = "quest_select"; sound[] = {"\Sounds\quest_select.ogg", db+3, 1}; titles[]={}; }; class quest_start { name = "quest_start"; sound[] = {"\Sounds\quest_start.ogg", db+3, 1}; titles[]={}; }; class mission_start_music { name = "mission_start_music"; sound[] = {"\Sounds\mission_start_music.ogg", db+0, 1}; titles[]={}; }; class trade_item { name = "trade_item"; sound[] = {"\Sounds\trade_item.ogg", db+3, 1}; titles[]={}; }; class deployable_cycle_inventory { name = "deployable_cycle_inventory"; sound[] = {"\Sounds\deployable_cycle_inventory.wav", db+7, 1}; titles[]={}; }; class uni_weapon_draw_01 { name = "uni_weapon_draw_01"; sound[] = {"\Sounds\uni_weapon_draw_03.wav", db+3, 1}; titles[]={}; }; class uni_weapon_draw_02 { name = "uni_weapon_draw_02"; sound[] = {"\Sounds\uni_weapon_draw_04.wav", db+3, 1}; titles[]={}; }; class uni_weapon_draw_03 { name = "uni_weapon_draw_03"; sound[] = {"\Sounds\uni_weapon_draw_05.wav", db+3, 1}; titles[]={}; }; class uni_weapon_holster_01 { name = "uni_weapon_holster_01"; sound[] = {"\Sounds\uni_weapon_holster_03.wav", db+3, 1}; titles[]={}; }; class uni_weapon_holster_02 { name = "uni_weapon_holster_02"; sound[] = {"\Sounds\uni_weapon_holster_04.wav", db+3, 1}; titles[]={}; }; class uni_weapon_holster_03 { name = "uni_weapon_holster_03"; sound[] = {"\Sounds\uni_weapon_holster_05.wav", db+3, 1}; titles[]={}; }; class ironsights_in { name = "ironsights_in"; sound[] = {"\Sounds\ironsights_in.wav", db-0, 1}; titles[] = {0, ""}; }; class ironsights_out { name = "ironsights_out"; sound[] = {"\Sounds\ironsights_out.wav", db-0, 1}; titles[] = {0, ""}; }; class hitfeedback_kill_1 { name = "hitfeedback_kill_1"; sound[] = {"\Sounds\hitfeedback_kill_1.wav", db-1, 1}; titles[] = {0, ""}; }; class hitfeedback_kill_2 { name = "hitfeedback_kill_2"; sound[] = {"\Sounds\hitfeedback_kill_2.wav", db-1, 1}; titles[] = {0, ""}; }; class hitfeedback_kill_3 { name = "hitfeedback_kill_3"; sound[] = {"\Sounds\hitfeedback_kill_3.wav", db-1, 1}; titles[] = {0, ""}; }; class hitfeedback_kill_4 { name = "hitfeedback_kill_4"; sound[] = {"\Sounds\hitfeedback_kill_4.wav", db-1, 1}; titles[] = {0, ""}; }; class hitfeedback_kill_5 { name = "hitfeedback_kill_5"; sound[] = {"\Sounds\hitfeedback_kill_5.wav", db-1, 1}; titles[] = {0, ""}; }; class hit_1 { name = "hit_1"; sound[] = {"\Sounds\hit_1.wav", db+3, 1}; titles[] = {0, ""}; }; class hit_2 { name = "hit_2"; sound[] = {"\Sounds\hit_2.wav", db+3, 1}; titles[] = {0, ""}; }; class hit_3 { name = "hit_3"; sound[] = {"\Sounds\hit_3.wav", db+3, 1}; titles[] = {0, ""}; }; class hit_4 { name = "hit_4"; sound[] = {"\Sounds\hit_4.wav", db+3, 1}; titles[] = {0, ""}; }; class scav_coverMe_1 { name = "scav_coverMe_1"; sound[] = {"Sounds\scav\scav_coverMe_1.ogg", db+10, 1}; titles[]={}; } class scav_coverMe_2 { name = "scav_coverMe_2"; sound[] = {"Sounds\scav\scav_coverMe_2.ogg", db+10, 1}; titles[]={}; } class scav_coverMe_3 { name = "scav_coverMe_3"; sound[] = {"Sounds\scav\scav_coverMe_3.ogg", db+10, 1}; titles[]={}; } class scav_coverMe_4 { name = "scav_coverMe_4"; sound[] = {"Sounds\scav\scav_coverMe_4.ogg", db+10, 1}; titles[]={}; } class scav_death_1 { name = "scav_death_1"; sound[] = {"Sounds\scav\scav_death_1.ogg", db+10, 1}; titles[]={}; } class scav_death_2 { name = "scav_death_2"; sound[] = {"Sounds\scav\scav_death_2.ogg", db+10, 1}; titles[]={}; } class scav_death_3 { name = "scav_death_3"; sound[] = {"Sounds\scav\scav_death_3.ogg", db+10, 1}; titles[]={}; } class scav_death_4 { name = "scav_death_4"; sound[] = {"Sounds\scav\scav_death_4.ogg", db+10, 1}; titles[]={}; } class scav_death_5 { name = "scav_death_5"; sound[] = {"Sounds\scav\scav_death_5.ogg", db+10, 1}; titles[]={}; } class scav_death_6 { name = "scav_death_6"; sound[] = {"Sounds\scav\scav_death_6.ogg", db+10, 1}; titles[]={}; } class scav_death_7 { name = "scav_death_7"; sound[] = {"Sounds\scav\scav_death_7.ogg", db+10, 1}; titles[]={}; } class scav_death_8 { name = "scav_death_8"; sound[] = {"Sounds\scav\scav_death_8.ogg", db+10, 1}; titles[]={}; } class scav_death_9 { name = "scav_death_9"; sound[] = {"Sounds\scav\scav_death_9.ogg", db+10, 1}; titles[]={}; } class scav_death_10 { name = "scav_death_10"; sound[] = {"Sounds\scav\scav_death_10.ogg", db+10, 1}; titles[]={}; } class scav_death_11 { name = "scav_death_11"; sound[] = {"Sounds\scav\scav_death_11.ogg", db+10, 1}; titles[]={}; } class scav_death_12 { name = "scav_death_12"; sound[] = {"Sounds\scav\scav_death_12.ogg", db+10, 1}; titles[]={}; } class scav_death_13 { name = "scav_death_13"; sound[] = {"Sounds\scav\scav_death_13.ogg", db+10, 1}; titles[]={}; } class scav_death_14 { name = "scav_death_14"; sound[] = {"Sounds\scav\scav_death_14.ogg", db+10, 1}; titles[]={}; } class scav_death_15 { name = "scav_death_15"; sound[] = {"Sounds\scav\scav_death_15.ogg", db+10, 1}; titles[]={}; } class scav_death_16 { name = "scav_death_16"; sound[] = {"Sounds\scav\scav_death_16.ogg", db+10, 1}; titles[]={}; } class scav_enemy_1 { name = "scav_enemy_1"; sound[] = {"Sounds\scav\scav_enemy_1.ogg", db+10, 1}; titles[]={}; } class scav_enemy_2 { name = "scav_enemy_2"; sound[] = {"Sounds\scav\scav_enemy_2.ogg", db+10, 1}; titles[]={}; } class scav_enemy_3 { name = "scav_enemy_3"; sound[] = {"Sounds\scav\scav_enemy_3.ogg", db+10, 1}; titles[]={}; } class scav_enemy_4 { name = "scav_enemy_4"; sound[] = {"Sounds\scav\scav_enemy_4.ogg", db+10, 1}; titles[]={}; } class scav_enemy_5 { name = "scav_enemy_5"; sound[] = {"Sounds\scav\scav_enemy_5.ogg", db+10, 1}; titles[]={}; } class scav_enemy_6 { name = "scav_enemy_6"; sound[] = {"Sounds\scav\scav_enemy_6.ogg", db+10, 1}; titles[]={}; } class scav_enemy_7 { name = "scav_enemy_7"; sound[] = {"Sounds\scav\scav_enemy_7.ogg", db+10, 1}; titles[]={}; } class scav_enemy_8 { name = "scav_enemy_8"; sound[] = {"Sounds\scav\scav_enemy_8.ogg", db+10, 1}; titles[]={}; } class scav_enemy_9 { name = "scav_enemy_9"; sound[] = {"Sounds\scav\scav_enemy_9.ogg", db+10, 1}; titles[]={}; } class scav_enemy_10 { name = "scav_enemy_10"; sound[] = {"Sounds\scav\scav_enemy_10.ogg", db+10, 1}; titles[]={}; } class scav_enemy_11 { name = "scav_enemy_11"; sound[] = {"Sounds\scav\scav_enemy_11.ogg", db+10, 1}; titles[]={}; } class scav_enemy_12 { name = "scav_enemy_12"; sound[] = {"Sounds\scav\scav_enemy_12.ogg", db+10, 1}; titles[]={}; } class scav_enemy_13 { name = "scav_enemy_13"; sound[] = {"Sounds\scav\scav_enemy_13.ogg", db+10, 1}; titles[]={}; } class scav_enemyGrenade_1 { name = "scav_enemyGrenade_1"; sound[] = {"Sounds\scav\scav_enemyGrenade_1.ogg", db+10, 1}; titles[]={}; } class scav_enemyGrenade_2 { name = "scav_enemyGrenade_2"; sound[] = {"Sounds\scav\scav_enemyGrenade_2.ogg", db+10, 1}; titles[]={}; } class scav_enemyKilled_1 { name = "scav_enemyKilled_1"; sound[] = {"Sounds\scav\scav_enemyKilled_1.ogg", db+10, 1}; titles[]={}; } class scav_enemyKilled_2 { name = "scav_enemyKilled_2"; sound[] = {"Sounds\scav\scav_enemyKilled_2.ogg", db+10, 1}; titles[]={}; } class scav_enemyKilled_3 { name = "scav_enemyKilled_3"; sound[] = {"Sounds\scav\scav_enemyKilled_3.ogg", db+10, 1}; titles[]={}; } class scav_enemyKilled_4 { name = "scav_enemyKilled_4"; sound[] = {"Sounds\scav\scav_enemyKilled_4.ogg", db+10, 1}; titles[]={}; } class scav_enemyKilled_5 { name = "scav_enemyKilled_5"; sound[] = {"Sounds\scav\scav_enemyKilled_5.ogg", db+10, 1}; titles[]={}; } class scav_enemyKilled_6 { name = "scav_enemyKilled_6"; sound[] = {"Sounds\scav\scav_enemyKilled_6.ogg", db+10, 1}; titles[]={}; } class scav_enemyKilled_7 { name = "scav_enemyKilled_7"; sound[] = {"Sounds\scav\scav_enemyKilled_7.ogg", db+10, 1}; titles[]={}; } class scav_friendlyKilled_1 { name = "scav_friendlyKilled_1"; sound[] = {"Sounds\scav\scav_friendlyKilled_1.ogg", db+10, 1}; titles[]={}; } class scav_friendlyKilled_2 { name = "scav_friendlyKilled_2"; sound[] = {"Sounds\scav\scav_friendlyKilled_2.ogg", db+10, 1}; titles[]={}; } class scav_friendlyKilled_3 { name = "scav_friendlyKilled_3"; sound[] = {"Sounds\scav\scav_friendlyKilled_3.ogg", db+10, 1}; titles[]={}; } class scav_grenade_1 { name = "scav_grenade_1"; sound[] = {"Sounds\scav\scav_grenade_1.ogg", db+10, 1}; titles[]={}; } class scav_grenade_2 { name = "scav_grenade_2"; sound[] = {"Sounds\scav\scav_grenade_2.ogg", db+10, 1}; titles[]={}; } class scav_hit_1 { name = "scav_hit_1"; sound[] = {"Sounds\scav\scav_hit_1.ogg", db+10, 1}; titles[]={}; } class scav_hit_2 { name = "scav_hit_2"; sound[] = {"Sounds\scav\scav_hit_2.ogg", db+10, 1}; titles[]={}; } class scav_hit_3 { name = "scav_hit_3"; sound[] = {"Sounds\scav\scav_hit_3.ogg", db+10, 1}; titles[]={}; } class scav_hit_4 { name = "scav_hit_4"; sound[] = {"Sounds\scav\scav_hit_4.ogg", db+10, 1}; titles[]={}; } class scav_hitByFriendly_1 { name = "scav_hitByFriendly_1"; sound[] = {"Sounds\scav\scav_hitByFriendly_1.ogg", db+10, 1}; titles[]={}; } class scav_hitByFriendly_2 { name = "scav_hitByFriendly_2"; sound[] = {"Sounds\scav\scav_hitByFriendly_2.ogg", db+10, 1}; titles[]={}; } class scav_hitByFriendly_3 { name = "scav_hitByFriendly_3"; sound[] = {"Sounds\scav\scav_hitByFriendly_3.ogg", db+10, 1}; titles[]={}; } class scav_hitByFriendly_4 { name = "scav_hitByFriendly_4"; sound[] = {"Sounds\scav\scav_hitByFriendly_4.ogg", db+10, 1}; titles[]={}; } class scav_inFight_1 { name = "scav_inFight_1"; sound[] = {"Sounds\scav\scav_inFight_1.ogg", db+10, 1}; titles[]={}; } class scav_inFight_2 { name = "scav_inFight_2"; sound[] = {"Sounds\scav\scav_inFight_2.ogg", db+10, 1}; titles[]={}; } class scav_inFight_3 { name = "scav_inFight_3"; sound[] = {"Sounds\scav\scav_inFight_3.ogg", db+10, 1}; titles[]={}; } class scav_inFight_4 { name = "scav_inFight_4"; sound[] = {"Sounds\scav\scav_inFight_4.ogg", db+10, 1}; titles[]={}; } class scav_inFight_5 { name = "scav_inFight_5"; sound[] = {"Sounds\scav\scav_inFight_5.ogg", db+10, 1}; titles[]={}; } class scav_inFight_7 { name = "scav_inFight_7"; sound[] = {"Sounds\scav\scav_inFight_7.ogg", db+10, 1}; titles[]={}; } class scav_inFight_8 { name = "scav_inFight_8"; sound[] = {"Sounds\scav\scav_inFight_8.ogg", db+10, 1}; titles[]={}; } class scav_inFight_9 { name = "scav_inFight_9"; sound[] = {"Sounds\scav\scav_inFight_9.ogg", db+10, 1}; titles[]={}; } class scav_inFight_10 { name = "scav_inFight_10"; sound[] = {"Sounds\scav\scav_inFight_10.ogg", db+10, 1}; titles[]={}; } class scav_inFight_11 { name = "scav_inFight_11"; sound[] = {"Sounds\scav\scav_inFight_11.ogg", db+10, 1}; titles[]={}; } class scav_inFight_12 { name = "scav_inFight_12"; sound[] = {"Sounds\scav\scav_inFight_12.ogg", db+10, 1}; titles[]={}; } class scav_inFight_13 { name = "scav_inFight_13"; sound[] = {"Sounds\scav\scav_inFight_13.ogg", db+10, 1}; titles[]={}; } class scav_inFight_14 { name = "scav_inFight_14"; sound[] = {"Sounds\scav\scav_inFight_14.ogg", db+10, 1}; titles[]={}; } class scav_inFight_15 { name = "scav_inFight_15"; sound[] = {"Sounds\scav\scav_inFight_15.ogg", db+10, 1}; titles[]={}; } class scav_inFight_16 { name = "scav_inFight_16"; sound[] = {"Sounds\scav\scav_inFight_16.ogg", db+10, 1}; titles[]={}; } class scav_inFight_17 { name = "scav_inFight_17"; sound[] = {"Sounds\scav\scav_inFight_17.ogg", db+10, 1}; titles[]={}; } class scav_inFight_18 { name = "scav_inFight_18"; sound[] = {"Sounds\scav\scav_inFight_18.ogg", db+10, 1}; titles[]={}; } class scav_inFight_19 { name = "scav_inFight_19"; sound[] = {"Sounds\scav\scav_inFight_19.ogg", db+10, 1}; titles[]={}; } class scav_followMe_1 { name = "scav_followMe_1"; sound[] = {"Sounds\scav\scav_followMe_1.ogg", db+10, 1}; titles[]={}; } class scav_followMe_2 { name = "scav_followMe_2"; sound[] = {"Sounds\scav\scav_followMe_2.ogg", db+10, 1}; titles[]={}; } class scav_followMe_3 { name = "scav_followMe_3"; sound[] = {"Sounds\scav\scav_followMe_3.ogg", db+10, 1}; titles[]={}; } class scav_clear_1 { name = "scav_clear_1"; sound[] = {"Sounds\scav\scav_clear_1.ogg", db+10, 1}; titles[]={}; } class scav_clear_2 { name = "scav_clear_2"; sound[] = {"Sounds\scav\scav_clear_2.ogg", db+10, 1}; titles[]={}; } class scav_lostVisual_1 { name = "scav_lostVisual_1"; sound[] = {"Sounds\scav\scav_lostVisual_1.ogg", db+10, 1}; titles[]={}; } class scav_lostVisual_2 { name = "scav_lostVisual_2"; sound[] = {"Sounds\scav\scav_lostVisual_2.ogg", db+10, 1}; titles[]={}; } class scav_lostVisual_3 { name = "scav_lostVisual_3"; sound[] = {"Sounds\scav\scav_lostVisual_3.ogg", db+10, 1}; titles[]={}; } class scav_lostVisual_4 { name = "scav_lostVisual_4"; sound[] = {"Sounds\scav\scav_lostVisual_4.ogg", db+10, 1}; titles[]={}; } class headshot_tp_01 { name = "headshot_tp_01"; sound[] = {"Sounds\player\headshot_tp_01.wav", db+10, 1}; titles[]={}; } class headshot_tp_02 { name = "headshot_tp_02"; sound[] = {"Sounds\player\headshot_tp_02.wav", db+10, 1}; titles[]={}; } class headshot_tp_03 { name = "headshot_tp_03"; sound[] = {"Sounds\player\headshot_tp_03.wav", db+10, 1}; titles[]={}; } class headshot_tp_04 { name = "headshot_tp_04"; sound[] = {"Sounds\player\headshot_tp_04.wav", db+10, 1}; titles[]={}; } class player_death_1 { name = "player_death_1"; sound[] = {"Sounds\player\player_death_1.ogg", db+10, 1}; titles[]={}; } class player_death_2 { name = "player_death_2"; sound[] = {"Sounds\player\player_death_2.ogg", db+10, 1}; titles[]={}; } class player_death_3 { name = "player_death_3"; sound[] = {"Sounds\player\player_death_3.wav", db+10, 1}; titles[]={}; } class player_death_4 { name = "player_death_4"; sound[] = {"Sounds\player\player_death_4.wav", db+10, 1}; titles[]={}; } class player_death_5 { name = "player_death_5"; sound[] = {"Sounds\player\player_death_5.wav", db+10, 1}; titles[]={}; } class player_death_6 { name = "player_death_6"; sound[] = {"Sounds\player\player_death_6.wav", db+10, 1}; titles[]={}; } class player_death_7 { name = "player_death_7"; sound[] = {"Sounds\player\player_death_7.wav", db+10, 1}; titles[]={}; } class player_death_8 { name = "player_death_8"; sound[] = {"Sounds\player\player_death_8.ogg", db+10, 1}; titles[]={}; } class shellshock_loop { name = "shellshock_loop"; sound[] = {"Sounds\player\player_death_7.wav", db-1, 1}; titles[]={}; } }; the problem is, how can i add #include "scripts\tts_emission\cfgSounds.hpp": Quote class CfgSounds { sounds[] = {}; #include "scripts\tts_emission\cfgSounds.hpp" }; i'm just making a stalker mission and i want emission script but i'm not sure how to add cfgSounds.hpp into my line because i already have other sounds in my description.ext, what should i do? how to add #include into the line. 😞 Share this post Link to post Share on other sites
POLPOX 778 Posted April 17, 2022 Just #include "scripts\tts_emission\cfgSounds.hpp" Instead of class CfgSounds { sounds[] = {}; #include "scripts\tts_emission\cfgSounds.hpp" }; #include does dumb copy&paste, nothing else. So your config has CfgSounds in CfgSounds. Share this post Link to post Share on other sites
zagr 38 Posted April 17, 2022 4 minutes ago, POLPOX said: Just #include "scripts\tts_emission\cfgSounds.hpp" Instead of class CfgSounds { sounds[] = {}; #include "scripts\tts_emission\cfgSounds.hpp" }; #include does dumb copy&paste, nothing else. So your config has CfgSounds in CfgSounds. ah i get it, thanks you so much >_< Share this post Link to post Share on other sites