Insurgency

Insurgency

Loadout/Presets
39 Comments
Linothorax  [author] 15 Nov, 2022 @ 11:36am 
It might be the similar limitation.
Shartyfartblast 15 Nov, 2022 @ 3:24am 
Is there any way to set up 2 primary or 2 secondary weapons? (so you have 3 guns, not including grenade types). I've tried a few times but they just overwrite the previous selection. Understand if this may be a limitation similar to the grenades issue...
Shartyfartblast 5 Nov, 2022 @ 4:51pm 
You are exactly right, silly of me not to think of that. All working perfectly now, and thank you so much again for making this - wish I'd found it years ago! :claptrap:
Linothorax  [author] 5 Nov, 2022 @ 8:40am 
sounds like you are missing player gear (sec_chest_rig, ins_chest_rig, sec_chest_carrier or sec_chest_carrier) or how it is called in your theater.
Here the ID lists for the default theaters, not sure if the game had a update since 2017:
normal
coop
Guide to look for ID's yourself.
Shartyfartblast 5 Nov, 2022 @ 5:45am 
This is amazing, thank you, but there is 1 issue I have: On our server, there are 4 explosive slots. If I choose equipment manually, I can select a grenade for all 4. But if I use the preset then grenade slots 2, 3 and 4 cannot be selected at all, only slot 1. This happens even if there is no grenade item at all in the preset cfg - even if I just set a primary and nothing else, it locks out the last 3 grenade slots. Can this be fixed? I'm happy to pick them manually, just need them not to be locked out.
Linothorax  [author] 16 Aug, 2020 @ 7:37am 
Yes, while on the server type into console: listtheateritems
Then copy the contents from the console into seperate files
For example the output could look like this:

weapon_mp5a4
weapon_uzi
weapon_colt9mm
weapon_katana
Weapons: 4

weapon_mod_mp5sd6
base_standard
base_heavybarrel
base_recoilstock
base_silencer
Weapon Upgrades: 5

grenade_m79
grenade_m79_smoke
grenade_m79_incen
Explosives: 3

ins_chest_rig
ins_chest_carrier
Player Gear: 2

----
Now if you seperate each section into its own file you can simply count the line number as ID
So if we want the uzi it'll be ID 2 and if we want a grenade it will be ID 1 or if we want smoke grenade ID 2.

bird0861 15 Aug, 2020 @ 6:18am 
Sorry, me again, will this work with the armory expanded mod? I'm currently trying to make a loadout buy script from scratch and it's painful so far -__-
This would be so much better and armory+35angrybots is all I play now.

Linothorax  [author] 9 Jul, 2020 @ 9:24am 
Players need to install it manually
bird0861 8 Jul, 2020 @ 7:55pm 
Can this be added to a server?

Running this on a custom coop server with armory expanded would be great.
Linothorax  [author] 16 Apr, 2020 @ 8:45am 
You have to create the preset before you enter the game, guide available here:
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1253879807
peen macheen 16 Apr, 2020 @ 7:35am 
I downloaded this but when I join servers I don't see any option to save a preset, am I doing something wrong ?
Kelnic 6 Oct, 2019 @ 1:57pm 
Thanks Lino!
Linothorax  [author] 6 Oct, 2019 @ 12:06pm 
I'm / We are only able to access the first slot of the explosives - maybe you can create a sourcemod plugin which would handle the storage of loadouts on the server, and assign them correctly - not sure.
Kelnic 6 Oct, 2019 @ 11:40am 
Hi Lino, in the mod we are using it has 4 sub slots for throwables, medkits, and smoke. I see from your screen shots that you have a second throwables sub slot, do you have a way to see the value that is assigned by the server when clicking the second slot and adding an item? I am trying to determine how to reach the value for each of the slots and determine how to type this into the console for the inventory_buy value(s)... I am working on a client side script.
Linothorax  [author] 4 Oct, 2019 @ 8:52am 
You need to have enough supply points, otherwise it will just stop at the item which it is not able to buy.
Make sure you got the right IDs - described in the installation guide.
Kelnic 3 Oct, 2019 @ 7:13pm 
we are using medic / engineer 18 player coop not pvp.
Kelnic 3 Oct, 2019 @ 7:12pm 
Yes. I can reach the gear and the primary. I am unable to figure out how to get the console to reach the additional nade/ health kit slots Inventory_buy_. So your UI buttons to select, you are unable to reach those slots server side code?
Linothorax  [author] 3 Oct, 2019 @ 1:24pm 
You mean the grenade slots? No, don't think it is possible :(
Kelnic 3 Oct, 2019 @ 11:05am 
Lino did you ever figure out how to get to the additional slots in the loadout.?.. I'm trying to figure out how to reach this through the console inventory_buy.
Linothorax  [author] 3 Jul, 2019 @ 12:13pm 
sadly not :-(
Carbonautics 3 Jul, 2019 @ 11:15am 
Another but last thing, how can i buy the nade for the second slot? Have you got it working yet?
Carbonautics 3 Jul, 2019 @ 11:07am 
It worked ! thanks for the help, my eyes missed such a silly detail lol:srfrag:
Linothorax  [author] 3 Jul, 2019 @ 11:01am 
\custom\MyPresets\cfg\linoCFG\sec\rifleman1.cfg
should be:
\custom\MyPresets\cfg\linoCFG\loadout\sec\rifleman1.cfg
Carbonautics 3 Jul, 2019 @ 11:00am 
This is how my file structure is: H:\SteamLibrary\steamapps\common\insurgency2\insurgency\custom\MyPresets\cfg\linoCFG\sec\rifleman1.cfg or rifleman2.cfg
rifleman1.cfg is my created loadout, rifleman2 is the example loadout from the installation process guide. both didnt work
Carbonautics 3 Jul, 2019 @ 10:57am 
Team set to Security
Unknown command: soundBtn
-=SEC_RIFLEMAN=-
Loadout #1
exec: couldn't exec linoCFG/loadout/sec/rifleman1
-=SEC_RIFLEMAN=-
Loadout #2
exec: couldn't exec linoCFG/loadout/sec/rifleman2
-=SEC_RIFLEMAN=-
Loadout #3
exec: couldn't exec linoCFG/loadout/sec/rifleman3
Linothorax  [author] 3 Jul, 2019 @ 10:56am 
What does the full message say?
Carbonautics 3 Jul, 2019 @ 10:40am 
Yeah, that's what i did, check like 3 times, now. Didn't work
Linothorax  [author] 3 Jul, 2019 @ 10:36am 
Make sure that have/created the right path: https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1253879807#2250009
--
insurgency/custom/FOLDER/cfg/linoCFG/loadout/sec/rifleman1.cfg

As well check if you have double extensions i.e. rifleman1.cfg.cfg, in newer windows operating systems they annoyingly disabled the full name so you only see rifleman1.cfg (eventhough windows sees rifleman1.cfg.cfg)
Carbonautics 3 Jul, 2019 @ 10:28am 
So, i just discovered this, and im trying to use it now, i did all the exact things above, created a rifleman1.cfg, but when i try to use it in game it doesnt work.
error mesage: couldn't exec loadout rifleman1 something something. i rechecked the file, it does exist but doesn't get executed.
Linothorax  [author] 7 Nov, 2018 @ 12:45pm 
Yes does work, however players need to subscribe to it manually - you can't really force them to use it. If you use a custom theater you need different IDs but those are all listed in the guide.
Dmo1982 7 Nov, 2018 @ 12:33pm 
Hi, this works? can I implement this in a dedicate server ? thanks
Linothorax  [author] 21 Jul, 2018 @ 12:20pm 
@ AnormaL you need the IDs for each server you are playing except for default servers, if you play on multiple servers with different theaters then you need different IDs.
If you enable the subtitles, you will see which preset it loaded for debuging (see guide for info)

@ Forty sadly not, but having my main guns and armor already set is still less of a hasle.
Gomez Addams 21 Jul, 2018 @ 8:48am 
Did you ever find out how to add items to the explosvies2 section?
AnormaL 20 Jul, 2018 @ 12:37pm 
Yeah that is the problem right now. Also, I am a little bit confused, how the game will understand which preset that I made it has to load to the right type of the server, when and where do I need to set it for coop, for pvp, for custom coop, etc? In the file that I made? couldn't find it on guide
Linothorax  [author] 20 Jul, 2018 @ 8:01am 
They do work you just need to find the right IDs.
AnormaL 15 Jul, 2018 @ 7:30pm 
Yeeap, dont work with those seerver-side mods.
AnormaL 15 Jul, 2018 @ 5:41pm 
Is this compatible with server mods that adds new itens into the game? Those mods defnilly requires some save loadout system!! Omw testing it.
Linothorax  [author] 14 Apr, 2018 @ 9:57am 
No those are two (2) different workshop items.
𓅃 スノ 𓅃 9 Apr, 2018 @ 2:07am 
tho make this owrk do i need the advance mod too?