]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/w_nex.qc
Share the final reload code that comes to mind. The reload code is for the most part...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / w_nex.qc
index 33fd922a97bde137d3a9e693820e59294edd4db8..ad73ec9e425489394216e428e2cf7f03b1246129 100644 (file)
@@ -3,18 +3,6 @@ REGISTER_WEAPON(NEX, w_nex, IT_CELLS, 7, WEP_FLAG_NORMAL | WEP_FLAG_RELOADABLE |
 #else
 #ifdef SVQC
 
-void W_Nex_SetAmmoCounter()
-{
-       // set clip_load to the weapon we have switched to, if the gun uses reloading
-       if(!autocvar_g_balance_nex_reload_ammo)
-               self.clip_load = 0; // also keeps crosshair ammo from displaying
-       else
-       {
-               self.clip_load = self.weapon_load[WEP_NEX];
-               self.clip_size = autocvar_g_balance_nex_reload_ammo; // for the crosshair ammo display
-       }
-}
-
 void W_Nex_Reload()
 {
        self.reload_ammo_player = ammo_cells;
@@ -253,7 +241,6 @@ float w_nex(float req)
        else if (req == WR_SETUP)
        {
                weapon_setup(WEP_NEX);
-               W_Nex_SetAmmoCounter();
        }
        else if (req == WR_CHECKAMMO1)
        {