Applying Co-Op rules to Skirmish maps

General discussion of the Project Reality: BF2 modification.
Post Reply
Rymosrac
Posts: 18
Joined: 2009-06-09 20:34

Applying Co-Op rules to Skirmish maps

Post by Rymosrac »

How difficult would it be to apply Co-Op rules to skirmish maps, for use with small player counts at a LAN party?
I don't actually want to have bots on the map.
My initial thought is to just use the skirmish gameplay objects file, put it in the co-op folder and run it that way. Are there any problems with that approach? And would the change need to be made on clients, or just the server?
Last edited by Rymosrac on 2014-04-22 18:59, edited 1 time in total.
User avatar
Mats391
PR:BF2 Lead Developer
Posts: 7643
Joined: 2010-08-06 18:06

Re: Applying Co-Op rules to Skirmish maps

Post by Mats391 »

I assume you are mostly after the kit amounts, request requirements, spawn times etc. and not after the bot vehicles?
If thats the case it is really simple: Just go to python/game/realityconfig_coop and copy everything in there to the realityconfig_local. You can also make your own rule sets if you like.
Rymosrac
Posts: 18
Joined: 2009-06-09 20:34

Re: Applying Co-Op rules to Skirmish maps

Post by Rymosrac »

... Wow, can't believe I didn't think of that. Thanks!

Update: Minor thing, but enabling KIT_RALLY_REQUEST is failing to allow people to request kits at rally points. Any idea why?
Last edited by Rymosrac on 2014-04-23 13:34, edited 1 time in total.
Brisk187
Posts: 103
Joined: 2013-09-15 23:07

Re: Applying Co-Op rules to Skirmish maps

Post by Brisk187 »

I was fooling around with the python files, but there's one thing about the co-op rules that have me puzzled. Where exactly is it dictated that FOBs and emplacements are automatically built, in that you don't need to shovel them up?
User avatar
Mats391
PR:BF2 Lead Developer
Posts: 7643
Joined: 2010-08-06 18:06

Re: Applying Co-Op rules to Skirmish maps

Post by Mats391 »

You have to look for the templates the ones with "_sp" at the end are the instant build ones. For example for FOBs:

Code: Select all

C['OUTPOST_TEMPLATES'] = { 
	'us':  ['deployable_firebase_sp'],
	'usa': ['deployable_firebase_sp'],
	'cf':  ['deployable_firebase_sp'],
	'gb':  ['deployable_firebase_sp'], 
	'ger': ['deployable_firebase_sp'], 
	'ch':  ['deployable_firebase_sp'], 
	'mec': ['deployable_firebase_sp'],
	'ru':  ['deployable_firebase_sp'],
	'idf': ['deployable_firebase_sp'],
	'arf':         ['deployable_insurgent_hideout_sp'],
	'fsa':         ['deployable_insurgent_hideout_sp'],
	'chinsurgent': ['deployable_firebase_sp'],
	'hamas':       ['deployable_insurgent_hideout_sp'],
	'taliban':     ['deployable_insurgent_hideout_sp'],
	'meinsurgent': ['deployable_insurgent_hideout_sp'],
	'vnusa':       ['deployable_firebase_sp'],
	'vnusmc':      ['deployable_firebase_sp'],
	'vnnva':       ['deployable_firebase_sp'],
	'gb82':  ['deployable_firebase_sp'], 
	'arg82':  ['deployable_firebase_sp'],
	'fr': ['deployable_firebase_sp']
}
The others are 'ANTIAIR_TEMPLATES', 'HMG_TEMPLATES', 'TOW_TEMPLATES', 'MORTAR_TEMPLATES', 'FOXHOLE_TEMPLATES', 'RAZORWIRES_TEMPLATES', 'SANDBAGS_TEMPLATES'.
Dont worry about the "_dummy" stuff just leave those as they are.
Brisk187
Posts: 103
Joined: 2013-09-15 23:07

Re: Applying Co-Op rules to Skirmish maps

Post by Brisk187 »

Interesting. Thanks a lot.
Post Reply

Return to “PR:BF2 General Discussion”