Page 1 of 1

Where are the "Projectile files" stored??

Posted: Fri Jan 18, 2013 12:28 am
by BotHunter
Hey Guys! in the object file of a object, it usually says "game.addprojectiletemplate" or something like that. so you can type in Bazooka projectile or whatever you want and that's what it will fire :geek: . So what I'm wondering is: Where are the projectile files stored?? where is "Bazooka projectile" declared? Thanks!!

Re: Where are the "Projectile files" stored??

Posted: Fri Jan 18, 2013 3:42 am
by freddy
objects/handweapons/common/weapons.con

Re: Where are the "Projectile files" stored??

Posted: Fri Jan 18, 2013 4:43 am
by Swaffy
Usually it's the Weapons.con files that have the projectile declarations. Like the example Freddy posted. For some weapons such as the M1 Garand, they have their own Weapons.con with the projectile code in that.

Re: Where are the "Projectile files" stored??

Posted: Fri Jan 18, 2013 6:47 am
by Senshi
If you use a proper text editor like Notepad++, it usually has a function called "Search in files". I use that regularly when trying to track down declarations. Simple figure out the projectile name in the weapon file, then search for it in the entire objects.rfa (extracted folder). You'll get a summary of every file that uses this projectile in some way.

Re: Where are the "Projectile files" stored??

Posted: Fri Jan 18, 2013 6:22 pm
by BotHunter
Thank you all!

Re: Where are the "Projectile files" stored??

Posted: Fri Jan 18, 2013 6:26 pm
by BotHunter
BTW I'm using Programmers Notepad. (I know Small basic, Javascript and a little bit of Visual Basic :geek: :) ) You gotta get Programmers Notepad!!

Re: Where are the "Projectile files" stored??

Posted: Sat Jan 19, 2013 11:45 am
by Senshi
I have worked with Notepad++ which is a very good program for a long time. I recently was pointed towards "Sublime Text", which very quickly replaced NP++ for me. A huge set of smart features in that one that I absolutely adore.