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 854 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.
  • Sassundefined Offline
    Sassundefined Offline
    Sass Plutonium Staff
    replied to lula 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
    • Farzadundefined Offline
      Farzadundefined Offline
      Farzad
      replied to Sass on last edited by
      #4

      Sass where do I paste that

      Sassundefined 1 Reply Last reply
      0
      • Sassundefined Offline
        Sassundefined Offline
        Sass Plutonium Staff
        replied to Farzad 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
        • Farzadundefined Offline
          Farzadundefined Offline
          Farzad
          replied to Sass on last edited by
          #6
          This post is deleted!
          1 Reply Last reply
          0
          • Farzadundefined Offline
            Farzadundefined Offline
            Farzad
            replied to Sass on last edited by
            #7

            Sass I’m gonna try now thanks

            1 Reply Last reply
            0
            • Farzadundefined Offline
              Farzadundefined Offline
              Farzad
              replied to Sass on last edited by
              #8

              Sass its saying bad syntax line 420

              1 Reply Last reply
              0
              • Farzadundefined Offline
                Farzadundefined Offline
                Farzad
                replied to Sass 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
                    • Farzadundefined Offline
                      Farzadundefined Offline
                      Farzad
                      replied to kuxqi 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
                        • Sassundefined Offline
                          Sassundefined Offline
                          Sass Plutonium Staff
                          replied to Farzad 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
                              • Drgnundefined Offline
                                Drgnundefined Offline
                                Drgn Plutonium Staff
                                replied to Ox_ on last edited by
                                #17

                                Ox_ It means he donated to the project.

                                Ox_undefined 1 Reply Last reply
                                0
                                • Farzadundefined Offline
                                  Farzadundefined Offline
                                  Farzad
                                  replied to Sass 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
                                  • Farzadundefined Offline
                                    Farzadundefined Offline
                                    Farzad
                                    replied to kuxqi on last edited by Farzad
                                    #19

                                    kuxqi ravel#0608 is my discord man. thanks alot

                                    :::

                                    👍 Spoiler Text

                                    :::

                                    1 Reply Last reply
                                    0
                                    • Farzadundefined Offline
                                      Farzadundefined Offline
                                      Farzad
                                      replied to Sass 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
                                      • Ox_undefined Offline
                                        Ox_undefined Offline
                                        Ox_
                                        replied to Drgn 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
                                        • Sassundefined Offline
                                          Sassundefined Offline
                                          Sass Plutonium Staff
                                          replied to Farzad on last edited by Sass
                                          #22

                                          Farzad This is how the script looks like ON ITS OWN WITHOUT ANYTHING ESLE :

                                          alt text

                                          Of course yours will not look like that if there is more stuff in it, but you need to make sure everything is at the right place, so the game doesn't throw syntax errors.

                                          If you need help to set up a server with gsc scripts, I suggest you take a look in the forum and maybe create another topic if you need help with it. It seems the issues you're having are beyond the script itself...

                                          Farzadundefined 1 Reply Last reply
                                          0

                                          • 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