Skip to content
  • 0 Unread 0
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Collapse

Plutonium

  1. Home
  2. BO2 Modding Support & Discussion
  3. [Support] anti barrel

[Support] anti barrel

Scheduled Pinned Locked Moved BO2 Modding Support & Discussion
6 Posts 4 Posters 499 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.
  • kuxqiundefined Offline
    kuxqiundefined Offline
    kuxqi
    wrote on last edited by Mr. Android
    #1

    anyone got an anti barrel script ?

    Sassundefined 1 Reply Last reply
    0
    • kuxqiundefined kuxqi

      anyone got an anti barrel script ?

      Sassundefined Offline
      Sassundefined Offline
      Sass
      Plutonium Staff
      wrote on last edited by Sass
      #2

      Put this somewhere in your onplayerdamage() function, assuming you already have one :

          if( (distance(eattacker.origin, self.origin ) ) < 200 )
          {
              iDamage = 0;
              return iDamage;
          }
      

      You can change 200 to something higher/lower.

      rvertiqundefined 1 Reply Last reply
      0
      • kuxqiundefined Offline
        kuxqiundefined Offline
        kuxqi
        wrote on last edited by kuxqi
        #3

        Sass how do i do it so it pops up center screen saying too close ??

        Sassundefined 1 Reply Last reply
        0
        • kuxqiundefined kuxqi

          Sass how do i do it so it pops up center screen saying too close ??

          Sassundefined Offline
          Sassundefined Offline
          Sass
          Plutonium Staff
          wrote on last edited by
          #4

          kuxqi It looks super dumb and ugly but here you go I guess....

              if( (distance(eattacker.origin, self.origin ) ) < 200 )
              {
                  eattacker iPrintLnBold("bro ur 2 close bro wtf");
                  iDamage = 0;
                  return iDamage;
              }
          
          ретроundefined 1 Reply Last reply
          0
          • Sassundefined Sass

            kuxqi It looks super dumb and ugly but here you go I guess....

                if( (distance(eattacker.origin, self.origin ) ) < 200 )
                {
                    eattacker iPrintLnBold("bro ur 2 close bro wtf");
                    iDamage = 0;
                    return iDamage;
                }
            
            ретроundefined Offline
            ретроundefined Offline
            ретро
            Banned
            wrote on last edited by
            #5

            Sass lol agreed, just being extra

            1 Reply Last reply
            0
            • Sassundefined Sass

              Put this somewhere in your onplayerdamage() function, assuming you already have one :

                  if( (distance(eattacker.origin, self.origin ) ) < 200 )
                  {
                      iDamage = 0;
                      return iDamage;
                  }
              

              You can change 200 to something higher/lower.

              rvertiqundefined Offline
              rvertiqundefined Offline
              rvertiq
              wrote on last edited by
              #6

              Sass said in [Support] anti barrel:

              onplayerdamage()

              yo just looking back at this, can u give full script of it as i cant get this too work and its annoying af

              1 Reply Last reply
              0

              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
              • Unread 0
              • Recent
              • Tags
              • Popular
              • Users
              • Groups