Jump to content
Sign in to follow this  
miles teg

How to update old retextured bis models for pistol

Recommended Posts

I've been looking through the archives here but I've had no luck in finding any clear information on how to add the ability to use a pistol to older infantry addons that are just retextured BIS models.

Does anyone know what I need to add to the .cpp to do this?

Thanks,

Chris G.

aka-Miles Teg<GD>

Share this post


Link to post
Share on other sites

It is not something you add to the cpp, you need to add a pistol proxy to the model to enamble the model to show a pistol and to do the animations right.

Share this post


Link to post
Share on other sites

Hi,

You would have to extract the data3d.pbo file from Resistance, then select the p3d model of the type of soldier used and use a hex editor to change the path names to those of the retextured addon, then save it with the name of the figure used in that addon. Besides solving the pistol problem, this should also resolve a texturing problem with white patches appearing on the back of the legs above the boots. In the cpp file those units you wish to have a side arm sould have the weapon and magazines added.

Regards,

Sander

Share this post


Link to post
Share on other sites

Hmm... ok. I'll look into doing this.

Thanks guys.

Chris G.

aka-Miles Teg<GD>

Share this post


Link to post
Share on other sites

This is something I'd love to know how to do myself. I know they had a little blurb on it at ofpec at one point of time. I'm not knowedgable enough with oxygen to add the requisite proxies however.

Share this post


Link to post
Share on other sites

Hi,

Rereading my post I can see how it might lead to some confusion. Not to insult your knowledge about creating your addons I will try to describe the process with all the different steps.

- Copy the usermade addon you wish to convert to a folder of your choice

- Extract the usermade addon

- Determine the BIS model used as the basis for the fgure (eg western soldier, Soviet officer, resistance tanker)

- Extract the data3d.pbo from the Resistance expansion (from the folder ...\OperationFlashpoint\Res\Dta)

- Use a hexadecimal editor to open the BIS model

- Change the path, and if applicable the texture names

- Save the BIS model as the usermade addon model in the folder into which you have extracted the addon, allowing it to overwrite the original

- Open the config.cpp file with a text editor of choice

- Add pistol bearing troops under extra classnames. This is absolutely necessary when you might wish to retain the original usermade addon file in the ...\OperationFlashpoint\Addons directory (it will cause an error if you add handgun definitions to units under the same classnames in the ...\Res\Addons folder) and just good practice when deleting this original in favour of your own version in the ...OperationFlashpoint\Res\Addons or ...\OperationFlashpoint\yourmodfolder\Addons folders

- Add the definitions of these new classnames inheriting all characteristics of the original definition, except for changed weapons and magazines characteristics, to which the handgun and its ammunition must be added

- Use a tool like StuffPbo to create the adapted usermade addon under the same name

- Place the file in the the ...OperationFlashpoint\Res\Addons or ...\OperationFlashpoint\yourmodfolder\Addons directory

- Delete if applicable the original usermade addon in the OperationFlashpoint\Addons directory

Hope this helps or post if you discover a step has been omitted or unclearly described (English is not my native tongue).

Regards,

Sander

Share this post


Link to post
Share on other sites

I'm confused....he is trying to add a pistol to a older model ,but your instructing him to extract Resistance models?

If thats the case he is very smart and would use just use Res models to begin with and apply the textures.

I believe he would need to add a pistol proxy to the older addon,will work somewhat without it but I have seen reports of the pistol not showing in MP and such.In the end ...the model needs the proxy added

The method Sander describes would add new retextured resistance models,with old textures

Share this post


Link to post
Share on other sites

Hi,

That is correct. Applying the textures to the BIS Resistance models would seem less trouble than working on the model in O2 and adding the proxy (but that might ofcourse just be my limited skills in editing in that program). It was the method I used to update my retextured BIS model Dutch army troops to carry pistols when Resistance was installed. This use of Resistance models also solved the undocumented feature of white spots appearing at the back of the legs of these troops when playing under Resistance instead of OFP version 1.46. From experience (repeated errors and CTD's) I found that it was necessary either to define additional classes of soldiers with handguns instead of assigning them to the existing range of classes or delete the version residing in the ..\ OperationFlashpoint\Addons folder.

Regards,

Sander

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  

×