void TechnoClass::Update_Reloading() {
  MaxAmmo = this->GetType()->Ammo;
  curAmmo = this->currentAmmo;
  if ( curAmmo < MaxAmmo ) {
    if ( curAmmo || this->GetType()->EmptyReload == -1 ) {
      if ( this->GetType()->PipWrap )
        v4 = this->currentAmmo / this->GetType()->PipWrap;//  "/" in this case is an integer divisor, so 5/2 = 2 , not 2.5
      else
        v4 = 1;
      v6 = v4 * v4 * this->GetType()->ReloadIncrement;
      reloadDuration = v6 + this->GetType()->Reload;
      this->ReloadTimer.StartingFrame = CurrentFrame;
      this->ReloadTimer.Duration = reloadDuration;
    } else {
      reloadDuration = this->GetType()->EmptyReload;
      this->ReloadTimer.StartingFrame = CurrentFrame;
      this->ReloadTimer.Duration = reloadDuration;
    }
  }
}