Doesn't work
from game.plugins import plugin, destroyObjective, linkCPs
destroyObjective = [
plugin(destroyObjective, controlpoint = 'West_Oilfields', refcount = 7, template = 'lefh18'),
plugin(destroyObjective, controlpoint = 'Center_Oilfields', refcount = 14, template = 'lefh18'),
plugin(destroyObjective, controlpoint = 'East_Oilfields', refcount = 21, template = 'lefh18'),
plugin(destroyObjective, controlpoint = 'Tulcea_Oil_Depot', refcount = 28, template = 'lefh18'),
plugin(destroyObjective, controlpoint = 'Braila_Power_Plant_Objective', refcount = 35, template = 'lefh18'),
plugin(destroyObjective, controlpoint = 'Constanta_Oil_Depot_Objective', refcount = 42, template = 'lefh18'),
]
linkCPs_64 = [
plugin(linkCPs, target = 'Constanta_Oil_Depot', source = ['West_Oilfields','Center_Oilfields','East_Oilfields','Tulcea_Oil_Depot','Braila_Power_Plant_Objective','Constanta_Oil_Depot_Objective']),
plugin(linkCPs, target = 'Braila_Power_Plant', source = ['West_Oilfields','Center_Oilfields','East_Oilfields','Tulcea_Oil_Depot','Braila_Power_Plant_Objective','Constanta_Oil_Depot_Objective']),
plugin(linkCPs, target = 'Constanta_Port', source = ['West_Oilfields','Center_Oilfields','East_Oilfields','Tulcea_Oil_Depot','Braila_Power_Plant_Objective','Constanta_Oil_Depot_Objective']),
plugin(linkCPs, target = 'Constanta_Airfield', source = ['West_Oilfields','Center_Oilfields','East_Oilfields','Tulcea_Oil_Depot','Braila_Power_Plant_Objective','Constanta_Oil_Depot_Objective']),
plugin(linkCPs, target = 'Babadag_Airfield', source = ['West_Oilfields','Center_Oilfields','East_Oilfields','Tulcea_Oil_Depot','Braila_Power_Plant_Objective','Constanta_Oil_Depot_Objective']),
plugin(linkCPs, target = 'Tulcea_Oil_Fields', source = ['West_Oilfields','Center_Oilfields','East_Oilfields','Tulcea_Oil_Depot','Braila_Power_Plant_Objective','Constanta_Oil_Depot_Objective']),
]
gpm_cq = {
64: destroyObjective, linkCPs_64,
}
Objectives work fine, but linkCPs doesn't.
Basically, I have 42 LeFH18's as objectives (to bomb). Each time 7 of them are destroyed, a dummy flag changes sides. Once all 6 have changed, the real flags should all switch sides, and the Axis have no more spawnpoints.
1) Can an uncappable flag be swapped? I tried both types, neither worked.
2) Alternatively (and a much better option) how do I make
gameLogic.setTicketLossPerMin 1 600
gameLogic.setTicketLossPerMin 2 10
work? ATM the code in init.con looks like that but both sides get the default bleed.