Quoting Neonic <[EMAIL PROTECTED]>:

> Basically I am trying to make a system where you reload using
> magazines.  So instead of showing 30 - 120 ammo down at the bottom I
> want it to say 30 - 4 or whatever.  I also wanted to make it to where
> if you reload with 4 ammo in the magazine that when you reload, you
> recycle the magazines so if you have 4 clips, you shoot 15 bullets,
> then reload 4 times, your back to a clip with 15/30 bullets in it.  To
> do this I started by making a structure like so:

I think your making it too complicated. How about when you hit reload it
discards any ammo left in the magazine, and then on the hud divide the ammo
reserve by magazine size?

> Also what file is the code that controls the Ammo display on the hud
> modified? hud_numericdisplay.cpp?.

Mod hud_ammo.cpp or whatever it's called not hud_numericdisplay.cpp(which is
used for things like health as well).

> P.S. When I add a DevMsg("test.\n"); in the CWeaponMP5::PrimaryAttack,
> it always prints out the message twice... why is that?

It gets called on both client and server.

--
www.neotokyohq.com

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to