//////////////////////////////////////////////////////////////////////////////////////////////// //Martin Gühmann's Soundfix V1.0 //////////////////////////////////////////////////////////////////////////////////////////////// // //This file contains a small sound fix for CTP2. I never liked the fact that I never herd //a sound when I built a tileimprovement. This small slic file will solve this problem. //Feel free to copy, modify or use it for your own mod as it is. // //To install this file open the file script.slc in your ..\ctp2_data\default\gamedata\ derectory. //Go to the end of this file and add the line: //#include "MG_soundfix.slc" //If you load your old savegames you have to open the Chat-Window. Use this key without the //brackets ('). And type /reloadslic. // //Unfortunatly I couldn't find sounds for the tile improvements new in CTP2. Therefore I used //the sound of the Elephant good for the nature preserve, road sound for outled mall and //trading post, the net sound for the port, the water mine sound for the drilling platform and //the sound for the since fiction screen for the endgame obelisk. Maybe you have better ideas. //Let me know. //////////////////////////////////////////////////////////////////////////////////////////////// HandleEvent(CreateImprovement) 'MG_createimprovement' pre { int_t MG_tilimpcreate; MG_tilimpcreate = value[0]; improvement[0] = MG_tilimpcreate; if (MG_tilimpcreate == TerrainImprovementDB(TILEIMP_FARMS)){ PlaySound("SOUND_ID_IRRIGATION_1"); } elseif (MG_tilimpcreate == TerrainImprovementDB(TILEIMP_ADVANCED_FARMS)){ PlaySound("SOUND_ID_IRRIGATION_2"); } elseif (MG_tilimpcreate == TerrainImprovementDB(TILEIMP_HYDROPONIC_FARMS)){ PlaySound("SOUND_ID_IRRIGATION_3"); } elseif (MG_tilimpcreate == TerrainImprovementDB(TILEIMP_NETS)){ PlaySound("SOUND_ID_IRRIGATION_1_WATER"); } elseif (MG_tilimpcreate == TerrainImprovementDB(TILEIMP_FISHERIES)){ PlaySound("SOUND_ID_IRRIGATION_2_WATER"); } elseif (MG_tilimpcreate == TerrainImprovementDB(TILEIMP_AUTOMATED_FISHERIES)){ PlaySound("SOUND_ID_IRRIGATION_3_WATER"); } elseif (MG_tilimpcreate == TerrainImprovementDB(TILEIMP_MINES)){ PlaySound("SOUND_ID_MINE_1"); } elseif (MG_tilimpcreate == TerrainImprovementDB(TILEIMP_ADVANCED_MINES)){ PlaySound("SOUND_ID_MINE_2"); } elseif (MG_tilimpcreate == TerrainImprovementDB(TILEIMP_MEGA_MINES)){ PlaySound("SOUND_ID_MINE_3"); } elseif (MG_tilimpcreate == TerrainImprovementDB(TILEIMP_UNDERSEA_MINES)){ PlaySound("SOUND_ID_MINE_1_WATER"); } elseif (MG_tilimpcreate == TerrainImprovementDB(TILEIMP_ADVANCED_UNDERSEA_MINES)){ PlaySound("SOUND_ID_MINE_2_WATER"); } elseif (MG_tilimpcreate == TerrainImprovementDB(TILEIMP_MEGA_UNDERSEA_MINES)){ PlaySound("SOUND_ID_MINE_3_WATER"); } elseif (MG_tilimpcreate == TerrainImprovementDB(TILEIMP_ROAD)){ PlaySound("SOUND_ID_ROAD_1"); } elseif (MG_tilimpcreate == TerrainImprovementDB(TILEIMP_RAILROAD)){ PlaySound("SOUND_ID_ROAD_2"); } elseif (MG_tilimpcreate == TerrainImprovementDB(TILEIMP_MAGLEV)){ PlaySound("SOUND_ID_ROAD_3"); } elseif (MG_tilimpcreate == TerrainImprovementDB(TILEIMP_UNDERSEA_TUNNEL)){ PlaySound("SOUND_ID_ROAD_3_WATER"); } elseif (MG_tilimpcreate == TerrainImprovementDB(TILEIMP_LISTENING_POSTS)){ PlaySound("SOUND_ID_LISTENING_POSTS"); } elseif (MG_tilimpcreate == TerrainImprovementDB(TILEIMP_RADAR_STATIONS)){ PlaySound("SOUND_ID_RADAR_STATIONS"); } elseif (MG_tilimpcreate == TerrainImprovementDB(TILEIMP_AIR_BASES)){ PlaySound("SOUND_ID_AIR_BASES"); } elseif (MG_tilimpcreate == TerrainImprovementDB(TILEIMP_SONAR_BUOYS)){ PlaySound("SOUND_ID_SONAR_BUOYS"); } elseif (MG_tilimpcreate == TerrainImprovementDB(TILEIMP_FORTIFICATIONS)){ PlaySound("SOUND_ID_FORTIFICATIONS"); } elseif (MG_tilimpcreate == TerrainImprovementDB(TILEIMP_DRILLING_PLATFORM)){ PlaySound("SOUND_ID_MINE_2_WATER"); } elseif (MG_tilimpcreate == TerrainImprovementDB(TILEIMP_NATURE_PRESERVE)){ PlaySound("SOUND_ID_ELEPHANT"); } elseif (MG_tilimpcreate == TerrainImprovementDB(TILEIMP_OUTLET_MALL)){ PlaySound("SOUND_ID_ROAD_1"); } elseif (MG_tilimpcreate == TerrainImprovementDB(TILEIMP_PORT)){ PlaySound("SOUND_ID_IRRIGATION_1_WATER"); } elseif (MG_tilimpcreate == TerrainImprovementDB(TILEIMP_PROCESSING_TOWER)){ PlaySound("SOUND_ID_SCIFI_SCREEN"); } elseif (MG_tilimpcreate == TerrainImprovementDB(TILEIMP_TRADING_POST)){ PlaySound("SOUND_ID_ROAD_1"); } }