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.5k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
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

      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

      With your input, this post could be even better 💗

      Register Login
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

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