project reality header
Go Back   Project Reality Forums > PR:BF2 Mod Forums > PR:BF2 Community Modding
30 Oct 2024, 00:00:00 (PRT)
Register Developer Blogs Members List Search Quick Links
PR:BF2 Community Modding Making or wanting help making your own asset? Check in here

Reply
 
Thread Tools Display Modes
Old 2024-04-25, 20:11   #1
Spyker2041

Spyker2041's Avatar
Default ByPassing One Voice Set Per Map Restriction

PR finally found out how to bypass the one voice/language per team per map restriction so that we can now have multiple factions with different languages each map.

Please can someone tell me how this is implemented and whether this can be done with vbf2 maps too?


Take a look at my custom PRSP Maps --> Click Here
Take a look at my gameplay vids --> Click Here
Spyker2041 is offline Reply With Quote
Old 2024-04-29, 08:00   #2
[R-DEV]Mats391
PR:BF2 Lead Developer
Supporting Member
PR Server License Administrator

Mats391's Avatar
Default Re: ByPassing One Voice Set Per Map Restriction

You can just check the init.con of test_bootcamp. That uses all factions in game. The magic is done here
Code:
if v_arg1 != BF2Editor
	include ../../Factions/setLayerMode.tweak v_arg7 v_arg8
	if v_mode == "gpm_cq"
		if v_layer == "16"
			include init_aas16.con
		endIf
		if v_layer == "32"
			include init_aas32.con
		endIf
		if v_layer == "128"
			include init_aas128.con
		endIf
	endIf
	if v_mode == "gpm_insurgency"
		if v_layer == "16"
			include init_insurgency16.con
		endIf
		if v_layer == "32"
			include init_insurgency32.con
		endIf
		if v_layer == "64"
			include init_insurgency64.con
		endIf
		if v_layer == "128"
			include init_insurgency128.con
		endIf
	endIf
	if v_mode == "gpm_skirmish"
		if v_layer == "16"
			include init_skirmish16.con
		endIf
		if v_layer == "32"
			include init_skirmish32.con
		endIf
		if v_layer == "64"
			include init_skirmish64.con
		endIf
		if v_layer == "128"
			include init_skirmish128.con
		endIf
	endIf
	if v_mode == "gpm_cnc"
		if v_layer == "16"
			include init_cnc16.con
		endIf
		if v_layer == "32"
			include init_cnc32.con
		endIf
		if v_layer == "64"
			include init_cnc64.con
		endIf
		if v_layer == "128"
			include init_cnc128.con
		endIf
	endIf
	if v_mode == "gpm_tutorial"
		if v_layer == "32"
			include init_tutorial32.con
		endIf
	endIf
endIf
Include (not run!) the bold line and it will create v_mode and v_layer variables that you can then use to run custom init setting the factions. That is all there is to it.
This will work on any map, but only within PR. Vanilla BF2 does not have the necessary code changes required for this.

Mineral: TIL that Wire-guided missiles actually use wire
Mats391 is offline Reply With Quote
Reply


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



All times are GMT. The time now is 17:37.