Setting custom cache amounts

Information and tutorials related to modding BF2.
Post Reply
User avatar
Mats391
PR:BF2 Lead Developer
Posts: 7636
Joined: 2010-08-06 18:06

Setting custom cache amounts

Post 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.
Last edited by Mineral on 2015-11-01 20:56, edited 6 times in total.
Image

Mineral: TIL that Wire-guided missiles actually use wire
User avatar
Mineral
Retired PR Developer
Posts: 8533
Joined: 2012-01-02 12:37
Location: Belgium

re: Setting custom cache amounts

Post by Mineral »

new tutorial for setting custom cache amounts for insurgency for v1.3.5
Image
Post Reply

Return to “Modding Tutorials”