Go Back   Project Reality Forums > Project Reality Mod Forums > PR Community Modding
PR Community Modding : Discussion on PR community mod projects.

Welcome to the Project Reality Forums! Join the Project Reality forums! Contact Us


Reply
 
LinkBack Thread Tools Display Modes
Old 01-20-2008, 09:46 PM   #1
PR Contributor
Gameserver Administrator

[R-CON]Hfett's Avatar
[Question] Counterattack gamemod?

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?

[R-CON]Hfett is offline Reply With Quote
Old 01-21-2008, 12:32 AM   #2
PR Lead Coder
Supporting Member

[R-DEV]dbzao's Avatar
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
[R-DEV]dbzao is offline Reply With Quote
Reply


Bookmarks

Tags
counterattack, gamemod, question
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -4. The time now is 03:40 AM.


Powered by: vBulletin. ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO.
All Content Copyright ©2004 - 2008, Project Reality.