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
to
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 π
Hey! Thanks for all this info, this series has been really helpful to me!
Thanks for reading π
Battlefield 2 is one of my most favorite games π
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 π
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.
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
Did you try other projectile types?
What exactly happened?
I changed the projectile to agm65_maveric and my game lags up.. any help?
You mean the game crashes?
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?
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.
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!
where i can find this line rem βBeginComp:SingleFireComp β ????help me
The process is explained in detail in the tutorial Part II.
Hi!
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?
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.