Hi there. I'm trying to make a Push map with reinforcements moving with the frontlines. But I've run into a problem: To make this work, I have to use dummy flags obviously, for which I've set up LinkCPs, and it's running well, until...
What I have:
Stage1_dummy is flag that is allied while the "1st Stage" of the map (a naval invasion to capture 3 flags the axis can't recap) is being played, and then switches to being axis once all three flags are capped. This works fine.
However, when I want to switch other dummy flags over, to give the axis more reinforcements and move the allied spawners forward, I have to use Stage1_dummy as one of the linked CPs (as my equipment are spawning on capturable flags so I have to check flag_a is axis & stage1_dummy is axis). This doesn't work though, as when Stage1_dummy is set to a new team, it doesn't register as a flag switch and the next stage doesn't become active.
Is there any way to hook the LinkCP to both a flag being captured and a flag owner being set? Looking at the LinkCPs.py file I believe hooker.register('ControlPointChangedOwner', self.cpchanged) & game.utilities.cp_setTeam(target, team, 0) to be the key.
Is there some way to do this through mapdata.py or do I have to slightly modify LinkCPs.py? It's been a while since I last coded in python (for civ4) so a nudge in the right direction would be greatly appreciated! Hopefully this could also be implemented in FH2 proper as it gives the mappers more options for gameplay styles.