[Help] PR->BF2 Weapon Transfering

Making or wanting help making your own asset? Check in here
Post Reply
Insanitypays
PR:BF2 Developer
Posts: 753
Joined: 2009-06-13 09:23

[Help] PR->BF2 Weapon Transfering

Post by Insanitypays »

(new to modding) For the past 5 hours I worked to move the m16a4 from PR to my personal single player mod for bf2 (not stealing, the mod is my own personal playground for modding practice) the mod is pretty much bf2 with some changed kits and maps. Anyway it all worked perfectly except for one thing, the weapon does absolutely no damage and there is no round coming out of the gun from what I see, I also have a wierd looking crossheir... I attached a screenshot :/ thanks for any help in advance
You do not have the required permissions to view the files attached to this post.
Rhino
Retired PR Developer
Posts: 47909
Joined: 2005-12-13 20:00

Re: PR->BF2 Weapon Transfering

Post by Rhino »

you need to recode the gun and its projectile to fit vBF2 standards, the projectile is also using custom PR materials rather than standard vbf2 ones hence why the bullet isn't doing any damage.

The simplest way to do this would be to copy the vBF2 M16A2 values over to the M16A4, things like deviation, projectiles, ROF etc but make sure you don't rename any of the title bits.
Image
Insanitypays
PR:BF2 Developer
Posts: 753
Joined: 2009-06-13 09:23

Re: PR->BF2 Weapon Transfering

Post by Insanitypays »

Thanks for the fast reply, im going to try that, maybe ill give it a bit of my own touch too >: ) OH btw, the A4 has 2 tweak files one normal and one has a 6 after it, whats up with that?

"Go to Heaven for the climate, Hell for the company." -Mark Twain
[/CENTER]
Rhino
Retired PR Developer
Posts: 47909
Joined: 2005-12-13 20:00

Re: PR->BF2 Weapon Transfering

Post by Rhino »

the 2nd one is the 6mag version, rather than 8 mags. Only difference as some kits like the medic have fewer mags than the rifleman in PR :)
Image
Insanitypays
PR:BF2 Developer
Posts: 753
Joined: 2009-06-13 09:23

Re: PR->BF2 Weapon Transfering

Post by Insanitypays »

Okay, so does that mean I can take it out? + im not very familiar with changing tweak files, i dont know what values control what within the tweak, im used to modding GTA:SA

"Go to Heaven for the climate, Hell for the company." -Mark Twain
[/CENTER]
Rhino
Retired PR Developer
Posts: 47909
Joined: 2005-12-13 20:00

Re: PR->BF2 Weapon Transfering

Post by Rhino »

Ye, just delete the "6" .con and .tweak files.
Image
Insanitypays
PR:BF2 Developer
Posts: 753
Joined: 2009-06-13 09:23

Re: PR->BF2 Weapon Transfering

Post by Insanitypays »

Ok, last thing, how do I get rid of the funny looking crossheir?

"Go to Heaven for the climate, Hell for the company." -Mark Twain
[/CENTER]
PatrickLA_CA
Posts: 2243
Joined: 2009-07-14 09:31

Re: PR->BF2 Weapon Transfering

Post by PatrickLA_CA »

I wanted to ask the same, but for vehicles, can anyone gimme a hint without starting a new thread?
In-game: Cobra-PR
Insanitypays
PR:BF2 Developer
Posts: 753
Joined: 2009-06-13 09:23

Re: PR->BF2 Weapon Transfering

Post by Insanitypays »

<DELETED>
Last edited by Insanitypays on 2011-02-01 00:03, edited 1 time in total.
clondicke
Posts: 64
Joined: 2010-06-19 09:04

Re: PR->BF2 Weapon Transfering

Post by clondicke »

For the Crosshair it is simple just like frank_beans said:


ObjectTemplate.weaponHud.guiIndex 4
ObjectTemplate.weaponHud.altGuiIndex 53

guiIndex is used for the weapon crosshair in normal mode
altGuiIndex is used what you see when the weapon is in scope/zoom mode

I don't remember all the numbers for the game it self as to which number is what but here it goes the one you have is for the shotguns what ever that number is.
4 = normal crosshair
6 = grenade launcher crosshair
53 = is the laser dot for the m4 with aim-point when you zoom in

That's how far I remember.
yy885
Posts: 4
Joined: 2011-02-07 00:46

Re: PR->BF2 Weapon Transfering

Post by yy885 »

sorry for asking here but dont want to start a new thread

can i put in the pr gun model(texture?) into BF2 and play the MP? the pr gun is look better than the original...
Amok@ndy
Retired PR Developer
Posts: 5144
Joined: 2008-11-27 22:13

Re: PR->BF2 Weapon Transfering

Post by Amok@ndy »

yy885 wrote:sorry for asking here but dont want to start a new thread

can i put in the pr gun model(texture?) into BF2 and play the MP? the pr gun is look better than the original...
no you cant
Image
Insanitypays
PR:BF2 Developer
Posts: 753
Joined: 2009-06-13 09:23

Re: PR->BF2 Weapon Transfering

Post by Insanitypays »

that would be like the GTA san andreas mp mod, you could replace the textures and models of any vehicles/players/weps and use them in game

"Go to Heaven for the climate, Hell for the company." -Mark Twain
[/CENTER]
Insanitypays
PR:BF2 Developer
Posts: 753
Joined: 2009-06-13 09:23

Re: PR->BF2 Weapon Transfering

Post by Insanitypays »

UPDATE: my friend told me you could actually do that if the files were similar enough or soething like that, i wouldnt know anything else though

"Go to Heaven for the climate, Hell for the company." -Mark Twain
[/CENTER]
Post Reply

Return to “PR:BF2 Community Modding”