Forum

which QC file holds ammunition info?

Discuss programming in the QuakeC language.

Moderator: InsideQC Admins

which QC file holds ammunition info?

Postby ceriux » Wed Oct 08, 2008 8:43 am

hey, i was wanting to look into making new ammuntion types but im not exactly sure which .qc file holds the ammo types... i think its items.qc but im not 100% sure.

i might have found it, is this the line?

Code: Select all
void () bound_other_ammo =
{
   if ((other.ammo_shells > 100))
   {
      other.ammo_shells = 100;
   }
   if ((other.ammo_nails > 200))
   {
      other.ammo_nails = 200;
   }
   if ((other.ammo_rockets > 100))
   {
      other.ammo_rockets = 100;
   }
   if ((other.ammo_cells > 100))
   {
      other.ammo_cells = 100;
   }
};
User avatar
ceriux
 
Posts: 2223
Joined: Sat Sep 06, 2008 3:30 pm
Location: Indiana, USA

Postby Wazat » Wed Oct 08, 2008 6:46 pm

There's a lot of stuff to change for ammo:

Throughout items.qc are things like bound_other_ammo, the ammo item spawn functions, etc.

weapons.qc uses ammo when firing its guns and for determining which gun you can use.

client.qc spawns you with certain amounts of each ammo.

It's a good idea to do a text search through each of these files for the word ammo. Don't change anything yet, just browse around and see the places it's used.
When my computer inevitably explodes and kills me, my cat inherits everything I own. He may be the only one capable of continuing my work.
Wazat
 
Posts: 771
Joined: Fri Oct 15, 2004 9:50 pm
Location: Middle 'o the desert, USA

Postby ceriux » Thu Oct 09, 2008 3:14 am

ok thanks ! ^.^
User avatar
ceriux
 
Posts: 2223
Joined: Sat Sep 06, 2008 3:30 pm
Location: Indiana, USA


Return to QuakeC Programming

Who is online

Users browsing this forum: No registered users and 1 guest