Insurgency

Insurgency

Advanced options, loadout/preset
 This topic has been pinned, so it's probably important
Linothorax  [developer] 21 Dec, 2017 @ 2:00pm
[Help] Loadout/Presets
Folder structure

  1. Move to game directory (i.e. \steamapps\common\insurgency2\insurgency\)
  2. Move into custom folder, if doesn't exist create one and enter it.
  3. Inside it create a folder with a name you like (i.e. mypresets)
  4. Move into it and create folder structure:
cfg linocfg loadout ins sec

Creating loadouts/presets
Now that you created the folder structure needed for the mod, we can start with the presets :)
If you want to create a preset for 'Insurgents' go into the ins folder, if for 'Security' go into the sec folder.

As example we will create a preset for the 'Rifleman' in 'Security' team.

Create a file called 'rifleman1.cfg' for preset slot one(1), for slot two(2) use 'rifleman2.cfg' or for slot three(3) 'rifleman3.cfg'.

Filename - Reference:
_Insurgents_ bomber1.cfg bomber2.cfg bomber3.cfg fighter1.cfg fighter2.cfg fighter3.cfg gunner1.cfg gunner2.cfg gunner3.cfg scout1.cfg scout2.cfg scout3.cfg sniper1.cfg sniper2.cfg sniper3.cfg specialist1.cfg specialist2.cfg specialist3.cfg striker1.cfg striker2.cfg striker3.cfg _Security_ breacher1.cfg breacher2.cfg breacher3.cfg marksman1.cfg marksman2.cfg marksman3.cfg recon1.cfg recon2.cfg recon3.cfg rifleman1.cfg rifleman2.cfg rifleman3.cfg sniper1.cfg sniper2.cfg sniper3.cfg specialist1.cfg specialist2.cfg specialist3.cfg support1.cfg support2.cfg support3.cfg


Open the file with a text editor, here we will put some commands which get executed once you press the button ingame.
We will be using following commands to set your preset:
inventory_buy_weapon [ID] inventory_buy_upgrade [SLOT] [ID] inventory_buy_gear [ID]

As you can see we need some IDs for the commands, check out discussions with [List] for IDs for certain theaters, I currently provide lists for default theaters:
Normal (firefight, push etc.)
Coop (checkpoint)

Before we start, the file gets read from top to bottom. Which means what you really want must be close to the top, because I don't know how much points you got available to purchase stuff.
Note: 'Slot' can change depending in which order you buy the weapons (i.e. knife=0, primary=1,secondary=2,grenade=3 or secondary=0, grenade=1, knife=2, primary=3 etc. I hope you get what I mean)

Here a template with comments:
// RIFLEMAN 1 // COOP - Preset // AMMO inventory_buy_gear 5 // sec_chest_rig // ARMOR inventory_buy_gear 3 // sec_heavy_armor // KNIFE SLOT 0 (Normally there is always a knife therefor // knife = 0, if not primary = 0, secondary = 0 or grenade = 0) // PRIMARY SLOT 1 inventory_buy_weapon 1 // weapon_m16a4 // PRIMARY UPGRADES inventory_buy_upgrade 1 47 // ammo_ap_m16a4 inventory_buy_upgrade 1 9 // siderail_flashlight_rail inventory_buy_upgrade 1 80 // underbarrel_foregrip_sec1 inventory_buy_upgrade 1 13 // barrel_heavybarrel // SECONDARY SLOT 2 inventory_buy_weapon 3 // weapon_m9 // SECONDARY UPGRADES inventory_buy_upgrade 2 23 // ammo_ap_m9 // GRENADES SLOT 3 inventory_buy_weapon 26 // weapon_m67

In the example above we really want to have the ammo > armor > primary > secondary > and if enough points > grenades.

Once you have your build done save the file and startup the game, if you don't know how to create a autoexec there is a small button in the inventory screen which will setup all the variables needed for this game session.

Sad thing is I didn't find out how to add a second grenade if for example you got the chest carrier selected.
Last edited by Linothorax; 28 Dec, 2017 @ 3:53am
< >
Showing 1-2 of 2 comments
Linothorax  [developer] 21 Dec, 2017 @ 2:00pm 
Are you playing on a custom server and want to create presets for it, but you miss the IDs for it?
Create a discussion with title [Request] in it + link to workshop item and I'll look into it.
Last edited by Linothorax; 23 Dec, 2017 @ 3:28pm
Linothorax  [developer] 21 Dec, 2017 @ 2:03pm 
placeholder
Last edited by Linothorax; 23 Dec, 2017 @ 11:46am
< >
Showing 1-2 of 2 comments
Per page: 1530 50