Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Donate
Collapse

Plutonium

  1. Home
  2. BO1 Modding Releases & Resources
  3. [ZM] Function to check if the current held gun is a shotgun

[ZM] Function to check if the current held gun is a shotgun

Scheduled Pinned Locked Moved BO1 Modding Releases & Resources
2 Posts 2 Posters 1.1k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • bhfffundefined Offline
    bhfffundefined Offline
    bhfff
    wrote on last edited by bhfff
    #1

    Hello, bo1 doesn't seem to have a function specifically made to check for held shotguns (only semi-automatic weapons).

    Hopefully it will help your developent a little 🙂

    weaponIsShotGun(CurrentWeapon)
    {
    
    if(CurrentWeapon == "ithaca_zm" || CurrentWeapon == "spas_zm" || 
       CurrentWeapon == "rottweil72_zm" || CurrentWeapon == "hs10_zm")
       {
    	return true;
       }
    
    if(CurrentWeapon == "ithaca_upgraded_zm" || CurrentWeapon == "spas_upgraded_zm" || 
       CurrentWeapon == "rottweil72_upgraded_zm" || CurrentWeapon == "hs10_upgraded_zm")
       {
    	return true;
       }
    
    return false;
    }
    
    1 Reply Last reply
    1
    • 38mbundefined Offline
      38mbundefined Offline
      38mb
      wrote on last edited by
      #2

      legend, ty

      1 Reply Last reply
      0
      • bhfffundefined bhfff referenced this topic on

      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Donate