project reality header
Go Back   Project Reality Forums > PR:BF2 Mod Forums > PR:BF2 Community Modding > Modding Tutorials
09 Jul 2020, 00:00:00 (PRT)
Register Developer Blogs Project Reality Members List Search Today's Posts Mark Forums Read
Modding Tutorials Information and tutorials related to modding BF2.

Thread Tools Display Modes
Old 2015-09-29, 15:45   #1
PR:BF2 Lead Developer
Supporting Member

Mats391's Avatar
Default Setting custom cache amounts


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.
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 (at the moment 5).

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).
 run ../../../Init_ins.con
Now we set the cache amount in this new init.con:

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.

Mineral: TIL that Wire-guided missiles actually use wire
Mats391 is offline
Last edited by [R-DEV]Mineral; 2015-11-01 at 19:56..
Reply With Quote
Old 2015-11-01, 19:56   #2
PR:BF2 Lead Designer
Supporting Member
PR Server License Administrator

Mineral's Avatar
Default re: Setting custom cache amounts

new tutorial for setting custom cache amounts for insurgency for v1.3.5

Mineral is offline Reply With Quote

amounts, cache, custom, setting, tutorial
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

All times are GMT. The time now is 22:55.