]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/w_seeker.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_seeker.qc
index d53a567c7c54b7d768b5960d08e6233f39ff3cbb..45bfd240d0100dd41f35f12c16405c4dcf218ed0 100644 (file)
@@ -5,18 +5,6 @@ REGISTER_WEAPON(SEEKER, w_seeker, IT_ROCKETS, 8, WEP_FLAG_NORMAL | WEP_FLAG_RELO
 //.float proxytime; = autoswitch
 //.float tl; = wait
 
-void W_Seeker_SetAmmoCounter()
-{
-       // set clip_load to the weapon we have switched to, if the gun uses reloading
-       if(!autocvar_g_balance_seeker_reload_ammo)
-               self.clip_load = 0; // also keeps crosshair ammo from displaying
-       else
-       {
-               self.clip_load = self.weapon_load[WEP_SEEKER];
-               self.clip_size = autocvar_g_balance_seeker_reload_ammo; // for the crosshair ammo display
-       }
-}
-
 void W_Seeker_Reload()
 {
        self.reload_ammo_player = ammo_rockets;
@@ -504,7 +492,6 @@ float w_seeker(float req)
        else if (req == WR_SETUP)
        {
                weapon_setup(WEP_SEEKER);
-               W_Seeker_SetAmmoCounter();
        }
        else if (req == WR_CHECKAMMO1)
        {