[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4668: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4670: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4671: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4672: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
Battlefield Modding Tutorials BFMODS • View topic - Weapon damage BF 2

Battlefield Modding Tutorials BFMODS

Battlefield Modding Tutorials
It is currently Wed Apr 24, 2024 9:17 pm

All times are UTC




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 
Author Message
 Post subject: Weapon damage BF 2
PostPosted: Sun Jul 20, 2008 8:54 pm 
Offline

Joined: Mon Jun 09, 2008 6:35 pm
Posts: 24
I want to change the damage of some weapons:

- i have the BF2 Editor version 1.3
- i found the projektile files
- for example: i changed the damage of the M24 projektile from 95 up to 250 but i still need 2 shots to kill the enemy.

So could anyone tell me, how to change the damage of the handheld weapons?

thanks in advance
- 100fps


Top
 Profile Send private message E-mail  
 
 Post subject: Re: Weapon damage BF 2
PostPosted: Sun Jul 20, 2008 10:14 pm 
Offline

Joined: Mon Oct 09, 2006 12:51 pm
Posts: 782
If you are trying this serverside It will not work like that. To apply a Damage mod you will need to save the modify weapon files into a seperate zip, you can name it weapons.zip and then you will need to add it to the ServerArchives.con in the main BF2 folder. Don't worry bout the editor you won't need it. Look for the Objects_Server.zip thats where the weapons folder is.

Simply Extract the Weapon files you want to modify

Modify them, make sure after modification to reset them to read-only files, or else BF2 will have problems with it.

Pack the "Weapons" folder into a seperate zip, and name is anything you want, and then add it on top of the ServerArchives.con file like this:

filemanager.mountArchive (YourMod.zip)
fileManager.mountArchive Objects_server.zip Objects
fileManager.mountArchive Menu_server.zip Menu
fileManager.mountArchive Common_server.zip Common
fileManager.mountArchive Booster_server.zip Objects

As for the actual code to change the weapon, there will be a thing underneath the Projectiles name that will say Damage, and that is what you need to change. Since all Vanilla soldiers have a health of 100, over 100 will be a one hit kill. After that, your weapons should be modified, either for singleplayer, or if you distribute the files, a LAN game, or your own mod.

ObjectTemplate.timeToLive CRD_NONE/0.5/0/0
ObjectTemplate.material 38
ObjectTemplate.minDamage 1
ObjectTemplate.damage 30

The Material will also determine its power, against vehicles this weapon will not damage it as much as say a anti-tank rocket.


Top
 Profile Send private message E-mail  
 
 Post subject: Re: Weapon damage BF 2
PostPosted: Mon Jul 21, 2008 6:58 pm 
Offline

Joined: Mon Jun 09, 2008 6:35 pm
Posts: 24
Many thanks for your help Archimonde! :)

- I extracted the M24 weapon files out of the Objects_Server.zip
- I modified the damage (from 95 up to 175)
- I set the "read-only" option for this file
- I packed the "weapons" folder into a file named "ModWeapons.zip"
- I added the "ModWeapons.zip" in the top of the ServerArchives.con

But it did not work :(

Now i just modified the M24, set the "read-only" option, packed it into the "Objects_server.zip" and it worked!

Since 5 weeks i tried to change the damage and now it works!
So once more a big thank you!

-100fps


Top
 Profile Send private message E-mail  
 
 Post subject: Re: Weapon damage BF 2
PostPosted: Tue Jul 22, 2008 8:43 am 
Offline
User avatar

Joined: Thu Oct 19, 2006 5:03 am
Posts: 1209
Good move, guns normally fire nerf balls in bf2.

_________________
Image

Image


Top
 Profile Send private message E-mail  
 
 Post subject: Re: Weapon damage BF 2
PostPosted: Sun Jul 27, 2008 12:29 am 
Offline

Joined: Sat Feb 09, 2008 5:10 pm
Posts: 43
ugh ill stick to modding 42


Top
 Profile Send private message E-mail  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 17 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
cron
Powered by phpBB® Forum Software © phpBB Group