Home > Battlefield 2, BF2, General & News > How to change spawn time in Battlefield 2 & lots more! Part III

How to change spawn time in Battlefield 2 & lots more! Part III

In this post I’m gonna write some cool tweaks for Battlefield2, Please make sure you’ve already read Part I & Part II because things here won’t be explained in much detail.
Open any .tweak file of a weapon and try these tweaks ๐Ÿ˜‰

1-Shoot walls from your gun
To protect your self against tanks or other soldiers you can shoot a wall!ย  just change the projectile type of a weapon to barrier_blocks_high_8m , if you try it now you’ll end up stuck inside the wall haha! ๐Ÿ˜€
You have to add this line (got it from c4_explosives.tweak and changed some values):
ObjectTemplate.fire.projectileStartPosition 0/0/7
Search for the block that begins with the line
rem —BeginComp:SingleFireComp —
and add it there..
This means the projectile (a wall in our case) will have a position of 0 units on X, 0 units on Y , 7 units on Z which means the wall will be 7 units in front of you. note thatย  x,y,z are relative to the player…
The cool thing is that these walls are real! yes, bullets cannot get through :D!

A bunker ๐Ÿ˜‰ make sure you leave a door!

Someone! help me get down! ๐Ÿ˜ฆ

2-Change reload time & magazine size
Search for the block that begins with the line
rem —BeginComp:DefaultAmmoComp —
and inside the block you’ll find the lines that define the number of magazines (nrOfMags) , magazine capacity (magSize) and reload time (reloadTime).
Note that changing reload time will break the sync between actual reloading and reloading animation.

3-Projectile velocity
The line ObjectTemplate.velocity defines the speed of the projectile..if your projectile is something static like a wall, the velocity will have no effect and the wall won’t move!
4-Define maximum number of objects allowed
If you’ve ever increased the ammo of c4, you’ll notice that you can only plant 5 at a time… to get rid of this,open c4_explosives.tweak find the line
ObjectTemplate.fire.maxProjectilesInWorld 5
and replace the 5 with any number you want..

5-Weapon of destruction!
Use agm65_maverick as a projectile ๐Ÿ˜‰ every thing can be destroyed with one shot! tanks, radar , UAV posts and artillery canons! soldiers will fly when get hit with such a weapon! ๐Ÿ˜€

6-Tweaking vehicles
In the folder Objects_server\Vehicles you’ll find the .tweak files you need!.
The principle is the same, open the .tweak file, replace some values… vehicles .tweak files are very long! but every thing is organized and should be clear if you go through the file line by line..

7-Kits and soldiers
The folder Objects_server\soldiers will enable you to change two main types of soldiers : light & heavy
the main thing you might wanna change is the hit points (health) and the stamina.
The folder Objects_server\Kits you’ll find .con files that well enable you to change the weapons each soldiers carries & unlock levels.

8-Unlock locked weapons
In the folder Objects_server\Kits choose an army (eg. ch for china) then choose a soldier (eg. CH_Assault) and change the lines:
ObjectTemplate.unlockLevel 1
ObjectTemplate.unlockLevel 2

ObjectTemplate.unlockLevel 0

9-That’s All ๐Ÿ˜‰

You might wonder “Why would I ever want to modify the original game?”
My Answer : you’re right! The game is great as it is!
but I did what I did only after playing the original game for countless hours ๐Ÿ™‚ so for fun I wanted to see the game structure, and then I found the file Objects_server.zip and began to mess with it!

Again I have to remind you : your modified game won’t work in multiplayer games unless you replace the Objects_server.zip with the original one…
But if all players have the same version of the file the game should work!

The file Objects_client.zip contains the same files found in Objects_server.zip…My guess is that when you create a multiplayer game you’ll use the file Objects_server.zip while other players will use Objects_client.zip

I hope you had fun reading this series ๐Ÿ˜€
If you have any notes, ideas or questions feel free to use comments on my blog ๐Ÿ˜€

  1. 19/03/2011 at 10:59 pm

    Hey! Thanks for all this info, this series has been really helpful to me!

    • Fuchs
      20/03/2011 at 12:33 am

      Thanks for reading ๐Ÿ˜€
      Battlefield 2 is one of my most favorite games ๐Ÿ˜€

  2. stijn
    26/03/2011 at 1:57 pm

    many thanks for this i’ve changed the projectile of a c4 to sandbags but iam stuck in the wall so thanks for the ObjectTemplate.fire.projectileStartPosition 0/0/7
    code ๐Ÿ˜›

    • Fuchs
      26/03/2011 at 3:33 pm

      One idea I tried once is to change the projectile to some kind of a vehicle ๐Ÿ˜€
      Imagine yourself in the battle & you need a tank! you just shoot it out of your gun and surprise your enemy :D.
      Unfortunately :(, the game crashes each time I shoot a vehicle from my gun.

  3. secret
    08/05/2011 at 2:31 pm

    i changed the projectile type of a handgun to “barrier_blocks_high_8m” (without the quotation marks) but it did not work… anyway thanks for all the useful info

    • Fuchs
      09/05/2011 at 12:52 pm

      Did you try other projectile types?
      What exactly happened?

  4. nick
    10/12/2011 at 9:45 pm

    I changed the projectile to agm65_maveric and my game lags up.. any help?

    • Fuchs
      10/12/2011 at 11:42 pm

      You mean the game crashes?

  5. pat
    10/12/2011 at 11:15 pm

    why wont the barrier_blocks_high_8m work in my game? I did everything the right way, the game doesnt shoot walls, it just shoots blanks.. any help?

    • Fuchs
      10/12/2011 at 11:44 pm

      That’s weird! what about other projectile types?
      Maybe the wall you’re shooting is very away from you, make sure the projectile start position is set right.

  6. 22/11/2012 at 6:26 pm

    Woah! I’m really enjoying the template/theme of this website. It’s simple, yet
    effective. A lot of times it’s difficult to get that “perfect balance” between user friendliness and visual appearance. I must say you have done a superb job with this. In addition, the blog loads extremely fast for me on Chrome. Superb Blog!

  7. ROBO22
    09/01/2013 at 4:02 pm

    where i can find this line rem โ€”BeginComp:SingleFireComp โ€” ????help me

    • Fuchs
      11/01/2013 at 6:26 am

      The process is explained in detail in the tutorial Part II.

  8. tonizuka
    19/12/2013 at 4:19 pm

    BF2 is also one of my favorite game, I’ve changed so much things in the game, like th speed of the HMW,add another zoom to rifle, the burst size of the M1A1 Abrams and many more. Currently I’m trying to add the ability of the HMW to float on water like the Lav 25 does. I think I’m close to my goal, the HMW doesn’t take any damage while dig in the water but doesn’t float (stay at the bottom of the water), do you have an idea?

    • Fuchs
      20/12/2013 at 8:56 pm

      Hi, I’m sorry but I no longer have the game, I think you should examine the Lav 25 files and then copy what ever makes it float to the HMW files.

  1. 04/10/2010 at 5:06 pm

Leave a Reply to Fuchs Cancel reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: