Page 1 of 1

Setting custom cache amounts

Posted: 2015-09-29 15:45
by Mats391
Howto:

This is how to set custom cache amounts for your maps.
In your init.con for the layout you want to change set the amount of caches similar to how you set tickets on AAS.

Code: Select all

gameLogic.setDefaultNumberOfTicketsEx <layer> <insurgent team> <caches>
The amount of caches can only be 10 as maximum. Every higher number will default back to the amount set in the realityconfig_public.py (at the moment 5).

Example:
Sbeneh is a real hard map for the MEC to win on insurgency. Let us compensate this by only having to destroy 3 caches on all layouts:
First we create a new init.con. We call it init_ins.con and run it at the top of all out insurgency GamplayObjects (gamemodes\gpm_insurgency).

Code: Select all

 run ../../../Init_ins.con
Now we set the cache amount in this new init.con:

Code: Select all

gameLogic.setDefaultNumberOfTicketsEx 32 1 3
gameLogic.setDefaultNumberOfTicketsEx 64 1 3
gameLogic.setDefaultNumberOfTicketsEx 128 1 3
If needed you can obviously change the BlueFor tickets just like you are used to from AAS. It's advisable for new maps and layers to keep the default of 5 caches and only change it after maptesting on public servers.

If you set it for any layer, i suggest to always set it for all even if the others are supposed to have the default amount. This prevents bugs when different layers are played after each other.

re: Setting custom cache amounts

Posted: 2015-11-01 20:56
by Mineral
new tutorial for setting custom cache amounts for insurgency for v1.3.5