Quantcast
Channel: Project Reality Forums - PR:BF2 Community Modding
Viewing all articles
Browse latest Browse all 924

[Tutorial]tmp.con

$
0
0
This is a simple, basic tutorial over the tmp.con, a file that will help you with lines of code that you wish to load or lines that disappear any time you edit that section of the level, ie when you set
Code:

terrainCuller.setUseStitchedLods 0
into your terrain.con and you edit the terrain, you need to place it back in the file.

Setting up the tmp

First copy your init.con in your level folder, it should copy as "Init - Copy"


Now rename it to "tmp" with out the "". You now have your tmp.con file.

Now this is how my tmp looks for Shikotan Island...

Code:

terrainCuller.setUseStitchedLods 0

run ../../Factions/faction_init.con 1 "chinsurgent"
run ../../Factions/faction_init.con 2 "ru"

windmanager.globalWindSpeed 11
windmanager.globalWinddirection 0/0/1

First you can see I added
Code:

terrainCuller.setUseStitchedLods 0
This usually goes in the terrain.con for a 4km level, the problem you can encounter, is if you place that code in your terrain.con, and you edit your level in the terrain editor, you lose this line. But by placing it in the tmp.con, it will never go away, and will always load.

Same goes with this with your teams, but if you are in your level editor and edit your level, it will corrupt this, setting it up like vBf2 by placing it in the tmp.con, you will not need to worry about it again. (NOTE) You still need to place it the init.con once to over ride the USMC vs PLA so there will not be conflicts.

Code:

run ../../Factions/faction_init.con 1 "chinsurgent"
run ../../Factions/faction_init.con 2 "ru"

Another line of code I like to add is
Code:

windmanager.globalWindSpeed 11
windmanager.globalWinddirection 0/0/1

(NOTE) This does not effect projectiles. Now, what this does change is effects. What I did was bumped it up to speed 80 to show you. Here I threw a smoke grenade in the left along the hesco's and you can see the smoke trailing off to the right.


Here we have black smoke coming from the mid factory building, as you can see because wind is set to "80" in this picture, it's stretched out to the right. Generally settings from 1-11 are best. (1 calm, 11 storm rolling in)


Code:

windmanager.globalWinddirection 0/0/1
This works the direction of the wind, play around with the numbers to find what best suits you and make sure water and clouds are going with it. ;-)

Along with direction you want to make sure cloud speed, water speed, and undergrowth speed fit with what you have.

That's it for the tmp.con Have fun and see you on the battlefield!

Viewing all articles
Browse latest Browse all 924

Trending Articles