forked from mirrors/0ad
Disable the Ptolemaic lighthouse on some maps with a lot of little water spots.
Refs #3174. This was SVN commit r16629.
This commit is contained in:
@@ -7,6 +7,9 @@
|
||||
"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"],
|
||||
"BaseHeight" : 0,
|
||||
"Preview" : "belgian_uplands.png",
|
||||
"TriggerScripts": [
|
||||
"scripts/disable_ptol_lighthouse.js"
|
||||
],
|
||||
"XXXXXX" : "Optionally define other things here, like we would for a scenario"
|
||||
}
|
||||
}
|
||||
|
||||
Binary file not shown.
@@ -0,0 +1,8 @@
|
||||
let cmpPlayerManager = Engine.QueryInterface(SYSTEM_ENTITY, IID_PlayerManager);
|
||||
|
||||
for (let i = 1; i < cmpPlayerManager.GetNumPlayers(); ++i)
|
||||
{
|
||||
let cmpPlayer = Engine.QueryInterface(cmpPlayerManager.GetPlayerByID(i), IID_Player);
|
||||
if (cmpPlayer)
|
||||
cmpPlayer.AddDisabledTemplate("structures/ptol_lighthouse");
|
||||
}
|
||||
Binary file not shown.
Reference in New Issue
Block a user