|
Modding Tutorials Information and tutorials related to modding BF2. |
|
Thread Tools | Display Modes |
2015-09-29, 15:45 | #1 |
PR:BF2 Lead Developer
|
Setting custom cache amounts
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:
gameLogic.setDefaultNumberOfTicketsEx <layer> <insurgent team> <caches> 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:
run ../../../Init_ins.con Code:
gameLogic.setDefaultNumberOfTicketsEx 32 1 3 gameLogic.setDefaultNumberOfTicketsEx 64 1 3 gameLogic.setDefaultNumberOfTicketsEx 128 1 3 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
|
|
Last edited by [R-DEV]Mineral; 2015-11-01 at 20:56..
|
2015-11-01, 20:56 | #2 |
PR:BF2 Lead Designer
Join Date: Jan 2012
Posts: 8,514
Belgium
|
re: Setting custom cache amounts
new tutorial for setting custom cache amounts for insurgency for v1.3.5
|
|
|
Tags |
amounts, cache, custom, setting, tutorial |
|
|