[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
https://battlefieldmodding.com/ssm/phpBB3/

Weapon damage BF 2
https://battlefieldmodding.com/ssm/phpBB3/viewtopic.php?f=18&t=4197
Page 1 of 1

Author:  100fps [ Sun Jul 20, 2008 8:54 pm ]
Post subject:  Weapon damage BF 2

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

Author:  Archimonde0_0 [ Sun Jul 20, 2008 10:14 pm ]
Post subject:  Re: Weapon damage BF 2

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.

Author:  100fps [ Mon Jul 21, 2008 6:58 pm ]
Post subject:  Re: Weapon damage BF 2

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

Author:  Losnar [ Tue Jul 22, 2008 8:43 am ]
Post subject:  Re: Weapon damage BF 2

Good move, guns normally fire nerf balls in bf2.

Author:  Sondre [ Sun Jul 27, 2008 12:29 am ]
Post subject:  Re: Weapon damage BF 2

ugh ill stick to modding 42

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/