project reality header
Go Back   Project Reality Forums > PR:BF2 Mod Forums > PR:BF2 Community Modding > Modding Tutorials
21 Sep 2024, 00:00:00 (PRT)
Register Developer Blogs Members List Search Quick Links
Modding Tutorials Information and tutorials related to modding BF2.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 2015-09-29, 15:45   #1
[R-DEV]Mats391
PR:BF2 Lead Developer
Supporting Member
PR Server License Administrator

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

Code:
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 20:56..
Reply With Quote
 


Tags
amounts, cache, custom, setting, tutorial

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 13:53.