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?
ByPassing One Voice Set Per Map Restriction
-
- Posts: 1076
- Joined: 2010-03-18 16:25
- Mats391
- PR:BF2 Lead Developer
- Posts: 7636
- Joined: 2010-08-06 18:06
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
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.
Code: Select all
if v_arg1 != BF2Editor
[b]include ../../Factions/setLayerMode.tweak v_arg7 v_arg8[/b]
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
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