Page 1 of 1
[Question] Counterattack gamemod?
Posted: 2008-01-21 01:46
by Hfett
How to make a map layout with Counterattack?
Can i just make a regular AAS map with the setting Onlytakeablebyteam 1(or)2 on the flags and put it into the gpm_counter ?
Does it matter if the team that is attacking is team 2 and the one defending team 1?
Posted: 2008-01-21 04:32
by dbzao
Yep, counter-attack is basically AAS with CPs with onlyTakeableByTeam set so the defender team can't capture them back until reinforcements arrive.
The code will guess who is the attacker by the number of CPs. The one with less CPs at start will be set as the attacker. But you can also manually set the attacking team creating an objectSpawner called "gpm_attacker" and set the "team" property to be the attacking team number.
You can also set the counter-attack time with an objectSpawner called "gpm_counter". You can put in a Min and Max time (in seconds) which the code will find a random time in between those 2 values to start the counter-attack, or you can add an exact time by making both times the same.
MinSpawnDelay = Min Time until Counter-Attack
MaxSpawnDelay = Max Time until Counter-Attack