Ason wrote:I'm trying to edit the kits on the map to only include the "_alt" versions without scopes.
...
rPoXoTauJIo wrote:...
So sorry Ason, it's not possible in this version. Guess we have to ask dev's to include "iron only" version of factions for a next version.
Seems like Mats were right with this idea, dunno what i made wrong previous time...[R-DEV]Mats391 wrote:Russians. For example the Russians do not use a _ziptie variant yet. For that you just need to create new faction that is called ru_ziptie and create all the kits you want with _ziptie suffix.
=========================================================
Recently during my experiments i found a way to do custom kits on maps with some factions. However, it will require to disable kits customization for spawnscreen, and use only one version there. Kits from apcs\crates\etc still will be different through.

So, the guide:
PR init system for custom factions like paradrop\ziptie\night versions are represented by having "custom" factions for such layouts. As kits on spawnscreen is controlled by kit customization and python, we need to get rid of those.
1)First of all, we need to determine, which "faction variant" we gonna use.
Available variants:
Code: Select all
variantsKits = [
'nvg',
'ziptie',
'md',
'sp',
'pickup',
'night']Now look which one variant is not in your kits - that one we gonna use.
Example - 'ru' faction dont have '_ziptie' kits, so we gonna use this variant.
2) Now lets create a opticless kits for our new faction.
Create folder kits/ru in your mapfolder, and copy all ru_<kit>_night.con kits here, for example.
Rename all of them to ru_<kit>_ziptie.con
Now open them and, rename kit inside:
Code: Select all
...from
ObjectTemplate.create Kit ru_aa_night
...to...
ObjectTemplate.create Kit ru_aa_ziptieCode: Select all
...from
ObjectTemplate.addTemplate rurif_ak74mscopegl
..to
ObjectTemplate.addTemplate rurif_ak74mgl3) Now put kits into objects_server.zip in your mapfolder.
4) Now lets change init system.
Open mods/pr/content/factions_server.zip and extract spawners folder and faction_init.con into your mapfolder.
Open faction_init.con and "rem" those lines:
Code: Select all
...
run ../menu/HUD/HudSetup/Customization/HudCustomizationReset.con
...
run ../menu/HUD/HudSetup/Customization/HudCustomization.con v_arg1 v_arg2
...Code: Select all
...
elseIf v_arg2 == "ru_ziptie"
gameLogic.setTeamName v_arg1 "RU"
gameLogic.setTeamLanguage v_arg1 "RU"
gameLogic.setTeamFlag v_arg1 "flag_ru"
gameLogic.setKit v_arg1 0 "ru_officer_ziptie" "pr_ru_soldier4"
gameLogic.setKit v_arg1 1 "ru_assault_ziptie" "pr_ru_soldier1"
gameLogic.setKit v_arg1 2 "ru_rifleman_ziptie" "pr_ru_soldier3"
gameLogic.setKit v_arg1 3 "ru_support_ziptie" "pr_ru_soldier3"
gameLogic.setKit v_arg1 4 "ru_specialist_ziptie" "pr_ru_soldier1"
gameLogic.setKit v_arg1 5 "ru_medic_ziptie" "pr_ru_soldier2"
gameLogic.setKit v_arg1 6 "ru_riflemanat_ziptie" "pr_ru_soldier2"
run spawners/spawners_ru_ziptie.con
...Navigate into spawner folder, and copy spawners_ru_night.con, and rename it to spawners_ru_ziptie.con.
Then just do a mass-replace from _night to _ziptie
5) Now put create factions folder in your mapfolder, and put spawners folder and faction_init.con there, and pack factions folder into your server.zip
6) Now lets fix init.con...:
Code: Select all
...from
run ../../Factions/faction_init.con 1 "chinsurgent"
run ../../Factions/faction_init.con 2 "ru"
to...
run Factions/faction_init.con 1 "chinsurgent"
run Factions/faction_init.con 2 "ru_ziptie"7) And dont forget about custom content in serverarchives.con
Code: Select all
fileManager.mountArchive Levels/map/objects_server.zip ObjectsCode: Select all
rcon debug
rcon debug kits












