Where are the "Projectile files" stored??

Ask questions, discuss ideas, get answers
Post Reply
User avatar
BotHunter
Posts: 480
Joined: Thu Jan 10, 2013 11:22 pm
Contact:

Where are the "Projectile files" stored??

Post 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!!
Last edited by BotHunter on Fri Jan 18, 2013 6:21 pm, edited 1 time in total.
Walk quietly and carry a sniper rifle
freddy
Posts: 1267
Joined: Sun Oct 18, 2009 4:58 pm

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

Post by freddy »

objects/handweapons/common/weapons.con
User avatar
Swaffy
Posts: 1715
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

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

Post 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.
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
User avatar
Senshi
Posts: 697
Joined: Sun Oct 18, 2009 1:14 pm
Location: Germany
Contact:

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

Post 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.
User avatar
BotHunter
Posts: 480
Joined: Thu Jan 10, 2013 11:22 pm
Contact:

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

Post by BotHunter »

Thank you all!
Walk quietly and carry a sniper rifle
User avatar
BotHunter
Posts: 480
Joined: Thu Jan 10, 2013 11:22 pm
Contact:

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

Post 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!!
Walk quietly and carry a sniper rifle
User avatar
Senshi
Posts: 697
Joined: Sun Oct 18, 2009 1:14 pm
Location: Germany
Contact:

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

Post 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.
Post Reply