View previous topic :: View next topic |
Author |
Message |
ceriux

Joined: 06 Sep 2008 Posts: 969 Location: Florida, USA
|
Posted: Wed Oct 08, 2008 8:43 am Post subject: 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?
Code: | 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;
}
}; |
_________________ QuakeDB - Quake ModDB Group |
|
Back to top |
|
 |
Wazat
Joined: 15 Oct 2004 Posts: 732 Location: Middle 'o the desert, USA
|
Posted: Wed Oct 08, 2008 6:46 pm Post subject: |
|
|
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. |
|
Back to top |
|
 |
ceriux

Joined: 06 Sep 2008 Posts: 969 Location: Florida, USA
|
|
Back to top |
|
 |
|