Jump to content
Sign in to follow this  
blacknight_pl

Weapon Replacements

Recommended Posts

I want to replace some Laser weapons from his packs with the SJB weapons. I dont know how to do this. A different config ?

A script that i could load ?

i dont wont to change the weapons one by one to each soldier every time.

Maybe some one could give me a advice

Thank You

Share this post


Link to post
Share on other sites

well you could edit the pbo. you can / should use it only for your private use then.

(winpbo - config.cpp - unit class - exchage weapon[]= and magazine[]= )

you could also write a new addon which inherits both addons.

(class new : laserclass

weapon[]= {SJB WEP};

magazine[]= {SJB MAGs};

dont forgot to mention both addons in cfgpatches)

Share this post


Link to post
Share on other sites

Thanks

I think i do it with the config.cpp

But one more question:

The new addon as a pbo file ?

Like HYK do it with his soldiers, one pbo for Lasers weapons and one for JAM weapons, and You can choose then ?

Share this post


Link to post
Share on other sites

The best way to replace weapons is to do it via the cfgweapons and not by using the "already defined" class in the "magazines & weapons" lines of the cfgvehicles.

-Advantages of a such method : you won't have any missing addon message while playing + less loading time once ofp's launched.

-Disadvantages : none.

E.G

///How do I replace BIS M16 by SJB M16A2 ?///

At first unpbo the addon which countains the wanted weapon intended to replace BIS one.

Then open its cpp and look for the following lines

"model=x" ;

"modeloptic=x" ;

SJB's config wanted lines :

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> model="\SJB_TOSM4\SJB_M16A2_proxy.p3d";

modelOptics="\FFUR_Optics\M16_optic.p3d"; -> (Use the authentic line coming with SJB config cuz this one belongs to the FFUR mod)

BIS config's lines intended to be replaced :

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> model="m16_proxy";

modelOptics="optika_m16";

then overwrite both BIS lines by SJB ones as showed above and don't forget to convert the cpp to bin that you'll move into your \modfolderX\bin.

This is a light replacement's method cuz it does replace only the weapon's model and the ironsight, nothing else.

Kind regards

Thunderbird84

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×