which QC file holds ammunition info?
Moderator: InsideQC Admins
3 posts
• Page 1 of 1
which QC file holds ammunition info?
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?
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;
}
};
-

ceriux - Posts: 2223
- Joined: Sat Sep 06, 2008 3:30 pm
- Location: Indiana, USA
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.
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
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest