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

Plutonium

  1. Home
  2. BO2 Modding Support & Discussion
  3. [Support] camochanger/canswap

[Support] camochanger/canswap

Scheduled Pinned Locked Moved BO2 Modding Support & Discussion
23 Posts 6 Posters 1.7k 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.
  • lulaundefined lula

    Any body know how to fix this code it docent call the can swap to down dpad

    canSwap()
    {
    randy = RandomIntRange(1,45);
    weaps = self getCurrentWeapon();

     self takeWeapon( weaps );
     self giveWeapon( weaps, 0, true ( randy, 0, 0, 0, 0 ));
     self switchToWeapon( weaps );
    

    }

    And this in buttonmonitor

    if(self getStance() != "prone" && self actionslottwobuttonpressed())
    {
    self thread canSwap();
    wait .2;
    }

    Farzadundefined Offline
    Farzadundefined Offline
    Farzad
    wrote on last edited by
    #2

    lula hi lula πŸ‘‹πŸ», your server doesn’t have save & L anymore

    1 Reply Last reply
    0
    • lulaundefined lula

      Any body know how to fix this code it docent call the can swap to down dpad

      canSwap()
      {
      randy = RandomIntRange(1,45);
      weaps = self getCurrentWeapon();

       self takeWeapon( weaps );
       self giveWeapon( weaps, 0, true ( randy, 0, 0, 0, 0 ));
       self switchToWeapon( weaps );
      

      }

      And this in buttonmonitor

      if(self getStance() != "prone" && self actionslottwobuttonpressed())
      {
      self thread canSwap();
      wait .2;
      }

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

      lula Normally I'd reply with "google is your best friend" like you do with other people here, but I'm in a good mood today so here you go.


      Call self thread buttonMonitor(); in onPlayerSpawned();

      buttonMonitor()
      {
          self endon("death");
          self endon("disconnect");
          
          for(;;)
          {
              if(self getStance() != "prone" && self actionslottwobuttonpressed())
                  self doCanSwap();
              wait .05;
          }
      }
      
      doCanSwap()
      {
          currentWeapon = self getCurrentWeapon();
          self takeWeapon(currentWeapon);
          self giveWeapon(currentWeapon, 0, true (randomIntRange(1,45), 0, 0, 0, 0));
          self switchToWeapon(currentWeapon);
      }
      
      
      Farzadundefined 1 Reply Last reply
      0
      • Sassundefined Sass

        lula Normally I'd reply with "google is your best friend" like you do with other people here, but I'm in a good mood today so here you go.


        Call self thread buttonMonitor(); in onPlayerSpawned();

        buttonMonitor()
        {
            self endon("death");
            self endon("disconnect");
            
            for(;;)
            {
                if(self getStance() != "prone" && self actionslottwobuttonpressed())
                    self doCanSwap();
                wait .05;
            }
        }
        
        doCanSwap()
        {
            currentWeapon = self getCurrentWeapon();
            self takeWeapon(currentWeapon);
            self giveWeapon(currentWeapon, 0, true (randomIntRange(1,45), 0, 0, 0, 0));
            self switchToWeapon(currentWeapon);
        }
        
        
        Farzadundefined Offline
        Farzadundefined Offline
        Farzad
        wrote on last edited by
        #4

        Sass where do I paste that

        Sassundefined 1 Reply Last reply
        0
        • Farzadundefined Farzad

          Sass where do I paste that

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

          Farzad I was about to reply to the topic you deleted. What lula wants is different than what you want.

          Here's what was supposed to be the reply :


          The gsc to drop your current weapon is self dropItem(self getCurrentWeapon());.

          You'll probably need to make something that detects your input to call it, like the example below. This will make you drop the weapon when you press the "Use" and "Action Slot 2*" at the same time. Then call self thread dropWeaponInput(); in onPlayerSpawned() for it to work.

          dropWeaponInput()
          {
              self endon("death");
              self endon("disconnect");
              
              for(;;)
              {
                  if(self usebuttonpressed() && self actionslottwobuttonpressed())
                  	self dropItem(self getCurrentWeapon());
                  wait .05;
              }
          }
          

          *: "Action Slot 2" is Dpad Down on controller, or 2 by default on KB&M

          Farzadundefined 4 Replies Last reply
          0
          • Sassundefined Sass

            Farzad I was about to reply to the topic you deleted. What lula wants is different than what you want.

            Here's what was supposed to be the reply :


            The gsc to drop your current weapon is self dropItem(self getCurrentWeapon());.

            You'll probably need to make something that detects your input to call it, like the example below. This will make you drop the weapon when you press the "Use" and "Action Slot 2*" at the same time. Then call self thread dropWeaponInput(); in onPlayerSpawned() for it to work.

            dropWeaponInput()
            {
                self endon("death");
                self endon("disconnect");
                
                for(;;)
                {
                    if(self usebuttonpressed() && self actionslottwobuttonpressed())
                    	self dropItem(self getCurrentWeapon());
                    wait .05;
                }
            }
            

            *: "Action Slot 2" is Dpad Down on controller, or 2 by default on KB&M

            Farzadundefined Offline
            Farzadundefined Offline
            Farzad
            wrote on last edited by
            #6
            This post is deleted!
            1 Reply Last reply
            0
            • Sassundefined Sass

              Farzad I was about to reply to the topic you deleted. What lula wants is different than what you want.

              Here's what was supposed to be the reply :


              The gsc to drop your current weapon is self dropItem(self getCurrentWeapon());.

              You'll probably need to make something that detects your input to call it, like the example below. This will make you drop the weapon when you press the "Use" and "Action Slot 2*" at the same time. Then call self thread dropWeaponInput(); in onPlayerSpawned() for it to work.

              dropWeaponInput()
              {
                  self endon("death");
                  self endon("disconnect");
                  
                  for(;;)
                  {
                      if(self usebuttonpressed() && self actionslottwobuttonpressed())
                      	self dropItem(self getCurrentWeapon());
                      wait .05;
                  }
              }
              

              *: "Action Slot 2" is Dpad Down on controller, or 2 by default on KB&M

              Farzadundefined Offline
              Farzadundefined Offline
              Farzad
              wrote on last edited by
              #7

              Sass I’m gonna try now thanks

              1 Reply Last reply
              0
              • Sassundefined Sass

                Farzad I was about to reply to the topic you deleted. What lula wants is different than what you want.

                Here's what was supposed to be the reply :


                The gsc to drop your current weapon is self dropItem(self getCurrentWeapon());.

                You'll probably need to make something that detects your input to call it, like the example below. This will make you drop the weapon when you press the "Use" and "Action Slot 2*" at the same time. Then call self thread dropWeaponInput(); in onPlayerSpawned() for it to work.

                dropWeaponInput()
                {
                    self endon("death");
                    self endon("disconnect");
                    
                    for(;;)
                    {
                        if(self usebuttonpressed() && self actionslottwobuttonpressed())
                        	self dropItem(self getCurrentWeapon());
                        wait .05;
                    }
                }
                

                *: "Action Slot 2" is Dpad Down on controller, or 2 by default on KB&M

                Farzadundefined Offline
                Farzadundefined Offline
                Farzad
                wrote on last edited by
                #8

                Sass its saying bad syntax line 420

                1 Reply Last reply
                0
                • Sassundefined Sass

                  Farzad I was about to reply to the topic you deleted. What lula wants is different than what you want.

                  Here's what was supposed to be the reply :


                  The gsc to drop your current weapon is self dropItem(self getCurrentWeapon());.

                  You'll probably need to make something that detects your input to call it, like the example below. This will make you drop the weapon when you press the "Use" and "Action Slot 2*" at the same time. Then call self thread dropWeaponInput(); in onPlayerSpawned() for it to work.

                  dropWeaponInput()
                  {
                      self endon("death");
                      self endon("disconnect");
                      
                      for(;;)
                      {
                          if(self usebuttonpressed() && self actionslottwobuttonpressed())
                          	self dropItem(self getCurrentWeapon());
                          wait .05;
                      }
                  }
                  

                  *: "Action Slot 2" is Dpad Down on controller, or 2 by default on KB&M

                  Farzadundefined Offline
                  Farzadundefined Offline
                  Farzad
                  wrote on last edited by
                  #9

                  Sass can you send me from line 1 to the end line? im not sure what "call player spawn" is man>

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

                    Farzad where it says (on player spawn) put this self thread dropWeaponInput(); that is what he meant its in mainn.gsc

                    Farzadundefined 1 Reply Last reply
                    0
                    • Farzadundefined Offline
                      Farzadundefined Offline
                      Farzad
                      wrote on last edited by
                      #11

                      bro i know nothing on this, please add me in discord plz man, i wll pay you to put the code things on the file, or send me compiled one i will pay man

                      Sassundefined 1 Reply Last reply
                      0
                      • kuxqiundefined kuxqi

                        Farzad where it says (on player spawn) put this self thread dropWeaponInput(); that is what he meant its in mainn.gsc

                        Farzadundefined Offline
                        Farzadundefined Offline
                        Farzad
                        wrote on last edited by
                        #12

                        kuxqi my servers are so dead man, i need this badly plz bro help me i will do anything

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

                          whats ya discord bro ?/

                          Farzadundefined 1 Reply Last reply
                          0
                          • Farzadundefined Farzad

                            bro i know nothing on this, please add me in discord plz man, i wll pay you to put the code things on the file, or send me compiled one i will pay man

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

                            Farzad You shouldn't tell someone that you're ready to pay them to copy/paste something. Alot of people would abuse you and try everything to extort money from you if you say such things. Not to mention that this kind of behavior does nothing but make these "I pay you for helping me doing very simple stuff" situations morally acceptable, while they're really not.

                            This is pretty simple stuff we're talking about, stuff that you normally don't pay for. It's fine to ask for help, but you shouldn't have to advance money in order to get some.

                            Farzadundefined 2 Replies Last reply
                            0
                            • Ox_undefined Offline
                              Ox_undefined Offline
                              Ox_
                              wrote on last edited by
                              #15

                              How is this dude a "contributor" lmfao.
                              What does that even mean.

                              Drgnundefined 1 Reply Last reply
                              0
                              • kuxqiundefined Offline
                                kuxqiundefined Offline
                                kuxqi
                                wrote on last edited by
                                #16

                                Sass im helping for free bro

                                1 Reply Last reply
                                0
                                • Ox_undefined Ox_

                                  How is this dude a "contributor" lmfao.
                                  What does that even mean.

                                  Drgnundefined Offline
                                  Drgnundefined Offline
                                  Drgn
                                  Plutonium Staff
                                  wrote on last edited by
                                  #17

                                  Ox_ It means he donated to the project.

                                  Ox_undefined 1 Reply Last reply
                                  0
                                  • Sassundefined Sass

                                    Farzad You shouldn't tell someone that you're ready to pay them to copy/paste something. Alot of people would abuse you and try everything to extort money from you if you say such things. Not to mention that this kind of behavior does nothing but make these "I pay you for helping me doing very simple stuff" situations morally acceptable, while they're really not.

                                    This is pretty simple stuff we're talking about, stuff that you normally don't pay for. It's fine to ask for help, but you shouldn't have to advance money in order to get some.

                                    Farzadundefined Offline
                                    Farzadundefined Offline
                                    Farzad
                                    wrote on last edited by
                                    #18

                                    Sass then if i ask you to message me on discord a compiled .gsc file of the canswap you will not do it, you reply wil be "google" or "call fuction" or "you do it" or "im not spoon feed man" can plz help?

                                    1 Reply Last reply
                                    0
                                    • kuxqiundefined kuxqi

                                      whats ya discord bro ?/

                                      Farzadundefined Offline
                                      Farzadundefined Offline
                                      Farzad
                                      wrote on last edited by Farzad
                                      #19

                                      kuxqi ravel#0608 is my discord man. thanks alot

                                      :::

                                      πŸ‘ Spoiler Text

                                      :::

                                      1 Reply Last reply
                                      0
                                      • Sassundefined Sass

                                        Farzad You shouldn't tell someone that you're ready to pay them to copy/paste something. Alot of people would abuse you and try everything to extort money from you if you say such things. Not to mention that this kind of behavior does nothing but make these "I pay you for helping me doing very simple stuff" situations morally acceptable, while they're really not.

                                        This is pretty simple stuff we're talking about, stuff that you normally don't pay for. It's fine to ask for help, but you shouldn't have to advance money in order to get some.

                                        Farzadundefined Offline
                                        Farzadundefined Offline
                                        Farzad
                                        wrote on last edited by
                                        #20

                                        Sass the stuff you just told me give me syntax error, i dont even know how to do this, ifind no point in leraning becuase its all already done, every thinbg you need is here, thats why, im just not sure how to setup the thing man im so sorry

                                        Sassundefined 1 Reply Last reply
                                        0
                                        • Drgnundefined Drgn

                                          Ox_ It means he donated to the project.

                                          Ox_undefined Offline
                                          Ox_undefined Offline
                                          Ox_
                                          wrote on last edited by Ox_
                                          #21

                                          Drgn said in camochanger/canswap:

                                          Ox_ It means he donated to the project.

                                          Should be named something else I think.
                                          Contributor sounds like would've contributed something in making of the client.
                                          Like Github contributor. That's the first thing I think of.

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • 1
                                          • 2
                                          • Login

                                          • Don't have an account? Register

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