Inside3D!
     

which QC file holds ammunition info?

 
Post new topic   Reply to topic    Inside3d Forums Forum Index -> QuakeC Programming
View previous topic :: View next topic  
Author Message
ceriux



Joined: 06 Sep 2008
Posts: 969
Location: Florida, USA

PostPosted: Wed Oct 08, 2008 8:43 am    Post subject: which QC file holds ammunition info? Reply with quote

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
View user's profile Send private message Yahoo Messenger
Wazat



Joined: 15 Oct 2004
Posts: 732
Location: Middle 'o the desert, USA

PostPosted: Wed Oct 08, 2008 6:46 pm    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
ceriux



Joined: 06 Sep 2008
Posts: 969
Location: Florida, USA

PostPosted: Thu Oct 09, 2008 3:14 am    Post subject: Reply with quote

ok thanks ! ^.^
_________________
QuakeDB - Quake ModDB Group
Back to top
View user's profile Send private message Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    Inside3d Forums Forum Index -> QuakeC Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2004 phpBB Group