Ticket #3174: disable_ptol_lighthouse.patch
File disable_ptol_lighthouse.patch, 2.4 KB (added by , 9 years ago) |
---|
-
binaries/data/mods/public/maps/random/belgian_uplands.json
7 7 "BaseTerrain" : ["temp_grass", "temp_grass_b", "temp_grass_c", "temp_grass_d", "temp_grass_long_b", "temp_grass_clovers_2", "temp_grass_mossy", "temp_grass_plants"], 8 8 "BaseHeight" : 0, 9 9 "Preview" : "belgian_uplands.png", 10 "TriggerScripts": [ 11 "scripts/disable_ptol_lighthouse.js" 12 ], 10 13 "XXXXXX" : "Optionally define other things here, like we would for a scenario" 11 14 } 12 15 } -
binaries/data/mods/public/maps/scenarios/Belgian_Bog_night.xml
70 70 } 71 71 ], 72 72 "Preview": "belgian_bog_night.png", 73 "RevealMap": false 73 "RevealMap": false, 74 "TriggerScripts": [ 75 "scripts/disable_ptol_lighthouse.js" 76 ] 74 77 } 75 78 ]]></ScriptSettings> 76 79 <Entities> -
binaries/data/mods/public/maps/scripts/disable_ptol_lighthouse.js
1 let cmpPlayerManager = Engine.QueryInterface(SYSTEM_ENTITY, IID_PlayerManager); 2 3 for (let i = 1; i < cmpPlayerManager.GetNumPlayers(); ++i) 4 { 5 let cmpPlayer = Engine.QueryInterface(cmpPlayerManager.GetPlayerByID(i), IID_Player); 6 if (cmpPlayer) 7 cmpPlayer.AddDisabledTemplate("structures/ptol_lighthouse"); 8 } -
binaries/data/mods/public/maps/skirmishes/Belgian
55 55 } 56 56 ], 57 57 "Preview": "belgian_bog.png", 58 "RevealMap": false 58 "RevealMap": false, 59 "TriggerScripts": [ 60 "scripts/disable_ptol_lighthouse.js" 61 ] 59 62 } 60 63 ]]></ScriptSettings> 61 64 <Entities>