[Question] Adding weapons?

Making or wanting help making your own asset? Check in here
Post Reply
Ryan3215
Posts: 185
Joined: 2007-08-10 02:20

[Question] Adding weapons?

Post by Ryan3215 »

My question is: How do I add weapons to PR or BF2. I want to mod my BF2 singleplayer and add the mk12 as the USMC's sniper rifle. How do I add this in? Ive put the object_client and object_server files in their places in BF2 but still have no clue where to go from there
J.F.Leusch69
Retired PR Developer
Posts: 2988
Joined: 2008-04-23 16:37

Post by J.F.Leusch69 »

thsts a damn difficult task... the only tip i can get quickly is you should go in the object server file and look in the tweak an con files of your weapon... there is listed what you need and you can make in the tweak files some changes on the weapon like the magazine size and how this weapon should work

i can send you a modificated tweak file.... send me a message or post it!

good luck
nedlands1
Posts: 1467
Joined: 2006-05-28 09:50

Post by nedlands1 »

To force the US sniper to use the Mk12 go to: C:\Program Files\EA GAMES\Battlefield 2\mods\bf2\Objects_server.zip\Kits\US\US_Sniper.con
Replace this: ObjectTemplate.addTemplate USRIF_M24
With: ObjectTemplate.addTemplate usrif_mk12

Copying across the "usrif_mk12" folders may not be enough. Often weapons use sounds and animations from other sources. If you run BF2 in a window and try the Mk12 you will probably get a CTD with an error message if you are missing these critical files. What you do then is go hunting for those missing files in PR then incorporate them into the appropriate location in the BF2 files.

Alternatively you can look through the usrif_mk12.tweak to see what additions it requires.
Image
Ryan3215
Posts: 185
Joined: 2007-08-10 02:20

Post by Ryan3215 »

1 question: where do I put the PR files into BF2? I put in the object_client and onject_server files for the mk12. is there any other location i need to place something?
Ryan3215
Posts: 185
Joined: 2007-08-10 02:20

Post by Ryan3215 »

Image I got this error, how do I solve it?
ministanners
Posts: 110
Joined: 2007-05-06 17:05

Post by ministanners »

Ok to do this is quite simple, In the PR files go into Object_Server.zip and find the folder for usrif_mk12, take that and put it somewhere safe.
Then go to the PR objects_client folder, this contains the textures and sounds, again put them somewhere safe, now last but not least the icon - I've had trouble with this before, two ways: If you ain't bothered what the icon looks like you can change it to something in Vanilla (Dragunov etc..), if you are then take the usrif_mk12(.dds?) file and put it somewhere safe.
Now you'll have to edit the tweak file from the object_server.zip, you'll have to change some of the projectile names, basically use the m24 as a guide, you will need to change somethings, when you're done stick that in vBF2 objects_server.zip, now go and put the other files you took in their Vanilla equivalents, If all goes well and according to plan, you should have a working Mk12 :)
[RIGHT]Image

[/RIGHT]
J.F.Leusch69
Retired PR Developer
Posts: 2988
Joined: 2008-04-23 16:37

Post by J.F.Leusch69 »

1 question of me... is it the same way if i want to put vehicles?! because i wanted the huey in vanilla but it crashs all the time and the bug that is coming in window modus i thought i already had it fixxst....
ministanners
Posts: 110
Joined: 2007-05-06 17:05

Post by ministanners »

Iirc then in theory yes, although it'd be much more difficult with much more tweaking required
[RIGHT]Image

[/RIGHT]
Ryan3215
Posts: 185
Joined: 2007-08-10 02:20

Post by Ryan3215 »

Ok, I did everything you said except im not sure what to change in the tweak. I still get the error and CTD.
nedlands1
Posts: 1467
Joined: 2006-05-28 09:50

Post by nedlands1 »

Ryan3215 wrote:Image I got this error, how do I solve it?
Find the file in question (from PR's menu_client/server.zip in this case) and put it in the specified place.
Image
Ryan3215
Posts: 185
Joined: 2007-08-10 02:20

Post by Ryan3215 »

Ive done that, ive checked and double checked, but it wont work
ministanners
Posts: 110
Joined: 2007-05-06 17:05

Post by ministanners »

A workaround would be to change the icon it's looking for to say the Dragunov or something that is already in Vanilla, that has in the past solved it for me.
[RIGHT]Image

[/RIGHT]
Ryan3215
Posts: 185
Joined: 2007-08-10 02:20

Post by Ryan3215 »

i changed it to the M4 but it still wont work...
kishkumen
Posts: 16
Joined: 2008-06-01 12:36

Re: [Question] Adding weapons?

Post by kishkumen »

ok i have kind of the same question, instead of remodeling the weapon into another from PR or i think thats what your trying to do not sure, i want to take a weapon from PR and add it to BF2, for example the binoculars, or the GLTD.
is there anyway i can do that?
Post Reply

Return to “PR:BF2 Community Modding”