Home   Help Search Login Register  

Author Topic: Working on an addon...and lost  (Read 1991 times)

0 Members and 1 Guest are viewing this topic.

SEAL84

  • Guest
Working on an addon...and lost
« on: 22 Aug 2002, 20:22:17 »
Okay...I decided to mess around with the XM177E2 rifle, since it really is the Colt Commando.

So I'm making my own config.cpp and there are a few blank spaces I need to fill in....

What are the .paa file names for the pic of the XM mag and the pic of the XM?

And specifically how do I use the stats from the existing rifle...this is confusing stuff and looking at the .cpp files of the pros isn't helping much  :-[

So can someone either answer those questions or point me in the direction of a really good tute on this stuff?

Offline Tomb

  • Contributing Member
  • **
  • in2 Metal? Go 2 my sig
Re:Working on an addon...and lost
« Reply #1 on: 23 Aug 2002, 00:36:05 »
uhm, is it the briefing-pics or the p3d pics ?

the latter wouldn't be that hard 2 find. lol - read the p3d  ;D ( j/k )  ;)

...as for the others - try & de-pbo the "dtaext"  :-* it should be avaliable though:

OFP / DTA / dtaext.pbo  

Use this tool: pbo_extractor 15 to decrypt & de-pbo the file, then seek out the
"equip" folder inside the de-pbo'ed "dtaext" folder ( ::) )  ;D ...and then *Ghuuh*  :P ...goto the
next folder named "w" ( = weapons ) and the folder "m"  ( = mag's )  ;)


cheerioh, mrs sophie!  8)



SEAL84

  • Guest
Re:Working on an addon...and lost
« Reply #2 on: 23 Aug 2002, 03:31:54 »
Yeah, it was the former.

K, I've been extracting this that and the other thing all day now...I'll check that in a sec.

No idea on a good tute though?

Offline Tomb

  • Contributing Member
  • **
  • in2 Metal? Go 2 my sig
Re:Working on an addon...and lost
« Reply #3 on: 23 Aug 2002, 12:35:44 »
Well, I've never made any guns myself, so I wouldn't knowsabout that, m8  :-\
But I guess reading other ppl's config's would do the job.

Sure, SOME of them must have the brief.pics included ( if it's a decent addon ).

Simply find a useful weapon config, and then locate the "name_of_pic"  :o
as you now know those names from the "w" folder and the "m" folder.  :D


But aren't those names present in the orig config  ??? they must be...

Marksman

  • Guest
Re:Working on an addon...and lost
« Reply #4 on: 24 Aug 2002, 11:50:21 »
An easy way to do it is to inherit all the values and defines you need from the Xwhatever its called


e.g

Something like:

(Note these aren't the actual class names, i can't remember em, but look thru the config.cpp and you should be able to work the correct ones out)

class Default{};
class Guns : Default {};
class Xwhatever : Guns {};
class MyNewGun : Xwhatever
{

Then only change the stuff you want down here

If you don't specify new .paa's, it should just use the original ones automatically

};

~~~~~~~~~~~~~~~~

Note the class Guns : Default {}

This means inherit values for Guns from Default

So if you don't specify new values in Guns, then OFP uses the values from higher up, in this case from Default

Sorry i couldn't be of more help with the actual class names, if your still stuck i'll have a look round for them

Hope this helps!!

Marksman
« Last Edit: 24 Aug 2002, 11:53:38 by Marksman »