Author Topic: linkCPs  (Read 602 times)

Offline Paasky

  • Sr. Member
  • ****
  • Posts: 1.801
  • DON'T PANIC! DON'T PANIC!
    • View Profile
linkCPs
« on: 07-10-2009, 02:10:21 »
Doesn't work :(

Code: [Select]
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
Code: [Select]
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.
It's half naked people on boats. That's all.
Here in Finland we call that "summer".

azreal

  • Guest
Re: linkCPs
« Reply #1 on: 18-10-2009, 21:10:12 »
is your linkCP setup still not working Paasky?

Offline Paasky

  • Sr. Member
  • ****
  • Posts: 1.801
  • DON'T PANIC! DON'T PANIC!
    • View Profile
Re: linkCPs
« Reply #2 on: 18-10-2009, 23:10:11 »
Works. I had forgotten one ] from somewhere IIRC.
It's half naked people on boats. That's all.
Here in Finland we call that "summer".